Package com.google.template.soy.soytree

Examples of com.google.template.soy.soytree.ForNode.numChildren()


    List<ExprRootNode<?>> rangeArgs = fn.getRangeArgs();
    assertEquals(2, rangeArgs.size());
    assertTrue(rangeArgs.get(0).getChild(0) instanceof IntegerNode);
    assertTrue(rangeArgs.get(1).getChild(0) instanceof PlusOpNode);

    assertEquals(1, fn.numChildren());
    MsgNode mn = (MsgNode) fn.getChild(0);
    assertEquals(4, mn.numChildren());
    assertEquals("$i",
        ((PrintNode) ((MsgPlaceholderNode) mn.getChild(0)).getChild(0)).getExprText());
    assertEquals("$items[$i - 1]",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.