Package com.google.template.soy.soytree

Examples of com.google.template.soy.soytree.SwitchDefaultNode


        javaCodeBuilder.increaseIndent();
        visit(scn);
        javaCodeBuilder.decreaseIndent();

      } else if (child instanceof SwitchDefaultNode) {
        SwitchDefaultNode sdn = (SwitchDefaultNode) child;

        javaCodeBuilder.appendLine("} else {");

        javaCodeBuilder.increaseIndent();
        visit(sdn);
View Full Code Here


          int caseIndex = node.getChildIndex(caseNode);
          for (int i = node.numChildren() - 1; i > caseIndex; i--) {
            node.removeChild(i);
          }
          // Replace this child with a new SwitchDefaultNode.
          SwitchDefaultNode newDefaultNode = new SwitchDefaultNode(nodeIdGen.genId());
          newDefaultNode.addChildren(caseNode.getChildren());
          node.replaceChild(caseIndex, newDefaultNode);
          // Stop processing.
          break;

        } else if (hasAllNonmatchingConstants) {
View Full Code Here

        visit(scn);
        jsCodeBuilder.appendLine("break;");
        jsCodeBuilder.decreaseIndent();

      } else if (child instanceof SwitchDefaultNode) {
        SwitchDefaultNode sdn = (SwitchDefaultNode) child;

        jsCodeBuilder.appendLine("default:");

        jsCodeBuilder.increaseIndent();
        visit(sdn);
View Full Code Here

TOP

Related Classes of com.google.template.soy.soytree.SwitchDefaultNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.