use of com.google.devtools.build.lib.syntax.BuildFileAST in project bazel by bazelbuild.
the class PackageFactory method parseBuildFile.
public static BuildFileAST parseBuildFile(PackageIdentifier packageId, ParserInputSource in, List<Statement> preludeStatements, EventHandler eventHandler) {
// Logged messages are used as a testability hook tracing the parsing progress
LOG.fine("Starting to parse " + packageId);
BuildFileAST buildFileAST = BuildFileAST.parseBuildFile(in, preludeStatements, eventHandler);
LOG.fine("Finished parsing of " + packageId);
return buildFileAST;
}
Aggregations