public void Visit(TakeAttributeStatement statement) { var expression = new CodeMethodInvokeExpression(); expression.Method.MethodName = "TakeAttribute"; expression.Parameters.Add(new CodePrimitiveExpression(statement.Attriute)); _codeStack.Peek().CodeExpression = expression; }
public void Visit(TakeAttributeStatement statement, CommonTree tree) { Parent(tree).Children.Add(statement); statement.Attriute = ParseLiteral(tree.GetChild(0).Text); }