Esempio n. 1
0
 public void Visit(ExpandIterationVariable variable, CommonTree tree)
 {
     Parent(tree).Children.Add(variable);
 }
Esempio n. 2
0
        public void Visit(ExpandExpression expression, CommonTree tree)
        {
            Parent(tree).Children.Add(expression);
            SetLine(expression, tree);
            VisitChildren(tree);

            if (tree.ChildCount < 3) //if no expand expression we just add the default iteration variable
            {
                var iterationVariable = new ExpandIterationVariable();
                expression.Children.Add(iterationVariable);
            }
        }