Search in sources :

Example 11 with BuildFileAST

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;
}
Also used : BuildFileAST(com.google.devtools.build.lib.syntax.BuildFileAST)

Aggregations

BuildFileAST (com.google.devtools.build.lib.syntax.BuildFileAST)11 StoredEventHandler (com.google.devtools.build.lib.events.StoredEventHandler)3 Path (com.google.devtools.build.lib.vfs.Path)3 PathFragment (com.google.devtools.build.lib.vfs.PathFragment)3 RootedPath (com.google.devtools.build.lib.vfs.RootedPath)3 SkyKey (com.google.devtools.build.skyframe.SkyKey)3 IOException (java.io.IOException)3 ImmutableList (com.google.common.collect.ImmutableList)2 Label (com.google.devtools.build.lib.cmdline.Label)2 BuildFileContainsErrorsException (com.google.devtools.build.lib.packages.BuildFileContainsErrorsException)2 NoSuchPackageException (com.google.devtools.build.lib.packages.NoSuchPackageException)2 Package (com.google.devtools.build.lib.packages.Package)2 AstAfterPreprocessing (com.google.devtools.build.lib.packages.Preprocessor.AstAfterPreprocessing)2 Mutability (com.google.devtools.build.lib.syntax.Mutability)2 ValidationEnvironment (com.google.devtools.build.lib.syntax.ValidationEnvironment)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 BuildFileNotFoundException (com.google.devtools.build.lib.packages.BuildFileNotFoundException)1 NameConflictException (com.google.devtools.build.lib.packages.Package.NameConflictException)1 LegacyGlobber (com.google.devtools.build.lib.packages.PackageFactory.LegacyGlobber)1 Preprocessor (com.google.devtools.build.lib.packages.Preprocessor)1