public final class SoyFileSetParser extends Object
SoyFileSetNode.
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Class and Description |
|---|---|
static class |
SoyFileSetParser.ParseResult
A simple tuple for the result of a parse operation.
|
| Constructor and Description |
|---|
SoyFileSetParser(SoyTypeRegistry typeRegistry,
SoyAstCache astCache,
com.google.common.collect.ImmutableMap<String,? extends SoyFileSupplier> soyFileSuppliers,
PassManager passManager,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
SoyFileSetParser.ParseResult |
parse()
Parses a set of Soy files, returning a structure containing the parse tree and any errors.
|
public SoyFileSetParser(SoyTypeRegistry typeRegistry, @Nullable SoyAstCache astCache, com.google.common.collect.ImmutableMap<String,? extends SoyFileSupplier> soyFileSuppliers, @Nullable PassManager passManager, ErrorReporter errorReporter)
typeRegistry - The type registry to resolve type names.astCache - The AST cache to use, if any.soyFileSuppliers - The suppliers for the Soy files. Each must have a unique file name.public SoyFileSetParser.ParseResult parse()