public final class SoyFileSetParser extends Object
SoyFileSetNode.
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
SyntaxVersion declaredSyntaxVersion,
List<SoyFileSupplier> soyFileSuppliers,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSetNode |
parse()
Parses a set of Soy files, returning a structure containing the parse tree and any errors.
|
public SoyFileSetParser(SoyTypeRegistry typeRegistry, @Nullable SoyAstCache astCache, SyntaxVersion declaredSyntaxVersion, List<SoyFileSupplier> soyFileSuppliers, ErrorReporter errorReporter)
typeRegistry - The type registry to resolve type names.astCache - The AST cache to use, if any.declaredSyntaxVersion - User-declared syntax version.soyFileSuppliers - The suppliers for the Soy files. Each must have a unique file name.public SoyFileSetNode parse()