internal static RunNode RunNode(StyleASTNode command) { RunNode result = s_RunNodePool.Get(); result.command = command; return(result); }
internal static ParenNode ParenNode(StyleASTNode expression) { ParenNode parenNode = s_ParenPool.Get(); parenNode.expression = expression; return(parenNode); }
internal static UrlNode UrlNode(StyleASTNode url, StyleASTNode spriteName) { UrlNode retn = s_UrlNodePool.Get(); retn.url = url; retn.spriteName = spriteName; return(retn); }
internal static ConstNode ConstNode(string name, StyleASTNode value) { ConstNode constNode = s_ConstNodePool.Get(); constNode.constName = name; constNode.value = value; return(constNode); }
internal static AnimationOptionNode AnimationOptionNode(string optionName, StyleASTNode value) { AnimationOptionNode retn = s_AnimationOptionNodePool.Get(); retn.optionName = optionName; retn.value = value; return(retn); }
internal static RgbNode RgbNode(StyleASTNode red, StyleASTNode green, StyleASTNode blue) { RgbNode retn = s_RgbNodePool.Get(); retn.red = red; retn.green = green; retn.blue = blue; return(retn); }
internal static SoundCommandNode SoundCommandNode(StyleASTNode name, RunCommandType cmdType, RunAction runAction) { SoundCommandNode soundCommandNode = s_SoundCommandNodePool.Get(); soundCommandNode.name = name; soundCommandNode.cmdType = cmdType; soundCommandNode.runAction = runAction; return(soundCommandNode); }
internal static SoundPropertyNode SoundPropertyNode(string name, StyleASTNode value) { SoundPropertyNode retn = s_SoundPropertyNodePool.Get(); retn.name = name; retn.value = value; retn.type = StyleASTNodeType.Property; return(retn); }
internal static AnimationCommandNode AnimationCommandNode(StyleASTNode animationName, RunCommandType cmdType, RunAction runAction) { AnimationCommandNode animationCommandNode = s_AnimationCommandNodePool.Get(); animationCommandNode.animationName = animationName; animationCommandNode.cmdType = cmdType; animationCommandNode.runAction = runAction; return(animationCommandNode); }
public static UnaryExpressionNode UnaryExpressionNode(StyleASTNodeType nodeType, StyleASTNode expr) { UnaryExpressionNode unaryNode = s_UnaryNodePool.Get(); unaryNode.type = nodeType; unaryNode.expression = expr; return(unaryNode); }
public void AddChildNode(StyleASTNode child) { children.Add(child); }