public void Visit(SelectAll all) { all.Parent.Parent.Children.Remove(all.Parent); var tableMatches = Scope.Current.FindAll(); foreach(var match in tableMatches) { var tableReferance = new TableMemberReference { Member = match.TableVariable.Variable, RowReference = new TableVariableRowReference { Id = match.TableAlias } }; var arg = new SelectArg(); arg.Children.Add(tableReferance); all.Parent.Parent.Children.Add(arg); } }
public void Visit(SelectAll all, CommonTree tree) { Parent(tree).Children.Add(all); }