public class OptimizeBidiCodeGenVisitor extends AbstractSoyNodeVisitor<Void>
PrintNode whose expression is a single call to
bidiMark(), bidiStartEdge(), or bidiEndEdge() with an equivalent
RawTextNode. If these replacements cause the resulting tree to contain any sequences of
consecutive RawTextNodes, they will each be simplified to a single RawTextNode.
This pass does not replace PrintNodes containing directives other than |id,
|noAutoescape, and |escapeHtml.
AbstractNodeVisitor.exec(N) must be called on a full parse tree.
| Constructor and Description |
|---|
OptimizeBidiCodeGenVisitor(BidiGlobalDir bidiGlobalDir) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
visitPrintNode(PrintNode node) |
protected void |
visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
visitSoyNode(SoyNode node) |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintDirectiveNode, visitRawTextNode, visitSoyFileNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitTemplateNode, visitXidNodeexec, visitChildren, visitChildrenAllowingConcurrentModification@Inject public OptimizeBidiCodeGenVisitor(BidiGlobalDir bidiGlobalDir)
bidiGlobalDir - The bidi global directionality.protected void visitSoyFileSetNode(SoyFileSetNode node)
visitSoyFileSetNode in class AbstractSoyNodeVisitor<Void>protected void visitPrintNode(PrintNode node)
visitPrintNode in class AbstractSoyNodeVisitor<Void>protected void visitSoyNode(SoyNode node)
visitSoyNode in class AbstractSoyNodeVisitor<Void>node - the visited node.