public void Visit(CommandLineVariable variable, CommonTree tree) { Parent(tree).Children.Add(variable); SetLine(variable, tree); variable.Id = tree.Text; }
public void Visit(CommandLineVariable variable) { _codeStack.Peek().Scope = new ScopeData <Type> { Type = typeof(string), CodeDomReference = new CodeTypeReference(typeof(string)) }; _codeStack.Peek().CodeExpression = new CodeIndexerExpression(new CodeThisReferenceExpression(), new CodePrimitiveExpression(variable.Id)); }