Examples of GoogMsgNode


Examples of com.google.template.soy.soytree.jssrc.GoogMsgNode

    int googMsgNodeId = nodeIdGen.genId();
    String googMsgVarName = jsSrcOptions.googMsgsAreExternal() ?
        "MSG_EXTERNAL_" + MsgUtils.computeMsgIdForDualFormat(msgNode) :
        "MSG_UNNAMED_" + googMsgNodeId;

    GoogMsgNode googMsgNode = new GoogMsgNode(googMsgNodeId, msgNode, googMsgVarName);
    GoogMsgRefNode googMsgRefNode =
        new GoogMsgRefNode(nodeIdGen.genId(), googMsgNode.getRenderedGoogMsgVarName());

    BlockNode parent = msgNode.getParent();
    int msgNodeIndex = parent.getChildIndex(msgNode);
    parent.replaceChild(msgNodeIndex, googMsgNode);
    parent.addChild(msgNodeIndex + 1, googMsgRefNode);
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.