public final class PassManager extends Object
The parsing passes are a collection of operations that mutate/rewrite parts of the parse tree in trivial/obvious ways. These passes are logically part of parsing the literal text of the soy file and each one could theoretically be done as part of the parser, but for maintainability it is easier to pull them out into separate passes. It is expected that each of these passes will mutate the AST in critical ways.
The default initial parsing passes are:
RewriteGenderMsgsVisitor
RewriteRemaindersVisitor
SetFullCalleeNamesVisitor
ResolveExpressionTypesVisitor
ResolveNamesVisitor
ResolvePackageRelativeCssNamesVisitor
VerifyPhnameAttrOnlyOnPlaceholdersVisitor
SubstituteGlobalsVisitorPass
| Modifier and Type | Class and Description |
|---|---|
static class |
PassManager.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
runSingleFilePasses(SoyFileNode file,
IdGenerator nodeIdGen) |
void |
runWholeFilesetPasses(TemplateRegistry registry,
SoyFileSetNode soyTree) |
public void runSingleFilePasses(SoyFileNode file, IdGenerator nodeIdGen)
public void runWholeFilesetPasses(TemplateRegistry registry, SoyFileSetNode soyTree)