| Package | Description |
|---|---|
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.msgs.internal | |
| com.google.template.soy.parseinfo.passes | |
| com.google.template.soy.parsepasses |
Compiler passes used in parsing.
|
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| com.google.template.soy.pysrc.internal | |
| com.google.template.soy.shared.internal | |
| com.google.template.soy.sharedpasses |
Compiler passes shared between multiple backends or between frontend and backend.
|
| com.google.template.soy.sharedpasses.opti | |
| com.google.template.soy.sharedpasses.render |
| Modifier and Type | Class and Description |
|---|---|
class |
GenJsExprsVisitor
Visitor for generating JS expressions for parse tree nodes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExtractMsgsVisitor
Visitor for extracting messages from a Soy parse tree.
|
class |
InsertMsgsVisitor
Visitor for inserting translated messages into Soy tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenerateParseInfoVisitor
Visitor for generating Java classes containing the parse info.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeCallsToPassAllDataVisitor
Visitor to change
calls to use data="all" whenever possible. |
class |
CheckCallsVisitor
Visitor for running some sanity checks on calls.
|
class |
CheckDelegatesVisitor
Checks various rules regarding the use of delegates (including delegate packages, delegate
templates, and delegate calls).
|
class |
CheckFunctionCallsVisitor
Checks the signatures of functions.
|
class |
HandleCssCommandVisitor
Visitor for handling 'css' commands.
|
class |
InferRequiredSyntaxVersionVisitor
Visitor to infer the required syntax version of a Soy file due to features used.
|
class |
PerformAutoescapeVisitor
Visitor for performing autoescape (for templates that have autoescape turned on, ensure there is
HTML-escaping on all 'print' nodes).
|
class |
ReplaceHasDataFunctionVisitor
Visitor for replacing hasData() function with boolean 'true'.
|
class |
RewriteGenderMsgsVisitor
Visitor for rewriting 'msg' nodes with 'genders' attribute into 'msg' nodes with one or more
levels of 'select'.
|
class |
RewriteRemainderNodesVisitor
Visitor for finding 'print' nodes that are actually 'remainder' nodes, and replacing them with
the appropriate expression.
|
class |
SetDefaultForDelcallAllowsEmptyDefaultVisitor
Visitor for setting the default value of CallDelegateNode.allowsEmptyDefault for all 'delcall's
where it is not specified by the user.
|
class |
SetFullCalleeNamesVisitor
Visitor for setting the full callee name on each CallBasicNode whose callee name in the source
code either (a) is a partial template name or (b) starts with an alias.
|
class |
VerifyPhnameAttrOnlyOnPlaceholdersVisitor
Visitor to verify that all occurrences of the 'phname' attribute are on message placeholders.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CheckEscapingSanityVisitor
Visitor performing escaping sanity checks over all input -- not just input affected by the
contextual autoescaping inference engine.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenPyExprsVisitor
Visitor for generating Python expressions for parse tree nodes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FindCalleesNotInFileVisitor
Visitor for finding the templates called in a file that are not defined in the file.
|
class |
HasNodeTypesVisitor
Visitor for searching for nodes of any of the given types within a template file.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AssertNoExternalCallsVisitor
Visitor to check that there are no external calls.
|
class |
AssertStrictAutoescapingVisitor
Visitor that ensures files and templates use strict autoescaping.
|
class |
BuildAllDependeesMapVisitor
Visitor for building a map from each node to its list of dependees (ordered by nearest dependee
first).
|
class |
CheckCallingParamTypesVisitor
Visitor for checking that calling arguments match the declared parameter types
of the called template.
|
class |
CheckSoyDocVisitor
Visitor for checking that in each template, the parameters declared in the SoyDoc match the data
keys referenced in the template.
|
class |
CheckTemplateVisibility
Visitor for checking the visibility of a template.
|
class |
ClearSoyDocStringsVisitor
Visitor for removing SoyDoc strings from
TemplateNodes (saves memory when they're not
needed). |
class |
CombineConsecutiveRawTextNodesVisitor
Visitor for combining any consecutive sequences of
RawTextNodes into one equivalent
RawTextNode. |
class |
FindIndirectParamsVisitor
Visitor for finding the indirect params of a given template.
|
class |
FindTransitiveDepTemplatesVisitor
Visitor for finding the set of templates transitively called by a given template.
|
class |
RemoveHtmlCommentsVisitor
Visitor for removing HTML comments from raw text.
|
class |
RenameCssVisitor
Visitor for renaming CSS selector text in a Soy parse tree.
|
class |
ReportSyntaxVersionErrorsVisitor
Visitor for asserting that all the nodes in a parse tree or subtree conform to the user-declared
syntax version.
|
class |
ResolveExpressionTypesVisitor
Visitor which resolves all expression types.
|
class |
ResolveNamesVisitor
Visitor which resolves all variable and parameter references to point to
the corresponding declaration object.
|
class |
ResolvePackageRelativeCssNamesVisitor
Visitor class which converts package-relative CSS class names to absolute names.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimplifyVisitor
Visitor for simplifying subtrees based on constant values known at compile time.
|
| Modifier and Type | Class and Description |
|---|---|
class |
RenderVisitor
Visitor for rendering the template subtree rooted at a given SoyNode.
|