public final class CheckSoyDocVisitor extends AbstractSoyNodeVisitor<Void>
Important: Do not use outside of Soy code (treat as superpackage-private).
Precondition: All template and callee names should be full names (i.e. you must execute
SetFullCalleeNamesVisitor before executing this visitor).
Note this visitor only works for code in Soy V2 syntax.
AbstractNodeVisitor.exec(N) should be called on a full parse tree. There is no return value. However, a
SoySyntaxException is thrown if the parameters declared in some template's SoyDoc do not
match the data keys referenced in that template.
errorReporter| Constructor and Description |
|---|
CheckSoyDocVisitor(SyntaxVersion declaredSyntaxVersion,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
visitCallNode(CallNode node) |
protected void |
visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
visitSoyNode(SoyNode node) |
protected void |
visitTemplateNode(TemplateNode node) |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitGoogMsgDefNode, visitGoogMsgRefNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgPluralRemainderNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyFileNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitXidNodeexec, visitChildren, visitChildrenAllowingConcurrentModificationpublic CheckSoyDocVisitor(SyntaxVersion declaredSyntaxVersion, ErrorReporter errorReporter)
declaredSyntaxVersion - User-declared syntax version,protected void visitSoyFileSetNode(SoyFileSetNode node)
visitSoyFileSetNode in class AbstractSoyNodeVisitor<Void>SoySyntaxException - If the parameters declared in some template's SoyDoc do not match
the data keys referenced in that template.protected void visitTemplateNode(TemplateNode node)
visitTemplateNode in class AbstractSoyNodeVisitor<Void>SoySyntaxException - If the parameters declared in some template's SoyDoc do not match
the data keys referenced in that template.protected void visitCallNode(CallNode node)
visitCallNode in class AbstractSoyNodeVisitor<Void>protected void visitSoyNode(SoyNode node)
visitSoyNode in class AbstractSoyNodeVisitor<Void>node - the visited node.