private StyleVariable ParseVariable(ITree tree) { var name = tree.GetChild(0).Text; var variable = new StyleVariable { Name = name }; switch (tree.GetChild(1).Text) { case "LITERAL": variable.Value = new LiteralExpression(tree.GetChild(1)); break; default: variable.Value = ParseExpression(tree.GetChild(1).GetChild(0)); break; } return variable; }
public VariableInfo(StyleVariable styleVariable, string description = null) { this.styleVariable = styleVariable; this.description = description; this.m_Name = null; }