validateDirectives(getContext(), source, unit, errorListener);
//
// Use the ConstantVerifier to verify the use of constants. This needs to happen before using
// the ErrorVerifier because some error codes need the computed constant values.
//
ConstantVerifier constantVerifier = new ConstantVerifier(
errorReporter,
libraryElement,
typeProvider);
unit.accept(constantVerifier);
//