public static bool Accept(IVisitor v) { if (query != null && query.status != TokenStatus.Error) { lock (query) { query.Accept(v); } return(true); } return(false); }
public void UpdateTree(lib.sqlparser.Query q) { int prevExpandedLevel = maxExpandedLevel; maxLevels = 0; maxExpandedLevel = -1; minExpandedLevel = 99; nodesAdded.Clear(); Nodes.Clear(); q.Accept(this); this.ExpandToLevel(T.MinMax(0, maxLevels, prevExpandedLevel)); }