Exemple #1
0
            public override void VisitCustomCommand(CustomCommand node)
            {
                var nearestTableRef = node.GetDescendants <NameReference>(nr => nr.ReferencedSymbol is TableSymbol)
                                      .Where(nr => nr.End <= _position)
                                      .LastOrDefault();

                if (nearestTableRef != null)
                {
                    _binder._rowScope = (TableSymbol)nearestTableRef.ReferencedSymbol;
                }
            }