public void Visit(ExpandIterationVariable variable, CommonTree tree) { Parent(tree).Children.Add(variable); }
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); } }