Exemple #1
0
        public void Visit(TakeAttributeStatement statement)
        {
            var expression = new CodeMethodInvokeExpression();

            expression.Method.MethodName = "TakeAttribute";
            expression.Parameters.Add(new CodePrimitiveExpression(statement.Attriute));

            _codeStack.Peek().CodeExpression = expression;
        }
Exemple #2
0
 public void Visit(TakeAttributeStatement statement, CommonTree tree)
 {
     Parent(tree).Children.Add(statement);
     statement.Attriute = ParseLiteral(tree.GetChild(0).Text);
 }