public final class CheckEscapingSanityVisitor extends AbstractSoyNodeVisitor<Void>
{param} and {let} nodes only appear in contextually
autoescaped templates.
Checks that internal-only directives such as |text are not used.
Important: Do not use outside of Soy code (treat as superpackage-private).
AbstractNodeVisitor.exec(N) should be called on a full parse tree.
errorReporter| Constructor and Description |
|---|
CheckEscapingSanityVisitor(ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
visitCallParamContentNode(CallParamContentNode node) |
protected void |
visitLetContentNode(LetContentNode node) |
protected void |
visitPrintDirectiveNode(PrintDirectiveNode node) |
protected void |
visitSoyNode(SoyNode node) |
protected void |
visitTemplateNode(TemplateNode node) |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitGoogMsgDefNode, visitGoogMsgRefNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgPluralRemainderNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintNode, visitRawTextNode, visitSoyFileNode, visitSoyFileSetNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitXidNodeexec, visitChildren, visitChildrenAllowingConcurrentModificationpublic CheckEscapingSanityVisitor(ErrorReporter errorReporter)
protected void visitTemplateNode(TemplateNode node)
visitTemplateNode in class AbstractSoyNodeVisitor<Void>protected void visitPrintDirectiveNode(PrintDirectiveNode node)
visitPrintDirectiveNode in class AbstractSoyNodeVisitor<Void>protected void visitLetContentNode(LetContentNode node)
visitLetContentNode in class AbstractSoyNodeVisitor<Void>protected void visitCallParamContentNode(CallParamContentNode node)
visitCallParamContentNode in class AbstractSoyNodeVisitor<Void>protected void visitSoyNode(SoyNode node)
visitSoyNode in class AbstractSoyNodeVisitor<Void>node - the visited node.