private static StatementGrammarNode GetFindUsagesCompatibleTerminal(StatementCollection statements, int currentPosition) { return(statements.GetTerminalAtPosition(currentPosition, t => t.Id.In(Terminals.Identifier, Terminals.ObjectIdentifier, Terminals.SchemaIdentifier, Terminals.BindVariableIdentifier, Terminals.ColumnAlias, Terminals.ObjectAlias, Terminals.Count) || t.Id.IsLiteral() || t.ParentNode.Id.In(NonTerminals.AnalyticFunction, NonTerminals.AggregateFunction))); }
private static StatementGrammarNode GetFindUsagesCompatibleTerminal(StatementCollection statements, int currentPosition) { return statements.GetTerminalAtPosition(currentPosition, t => t.Id.In(Terminals.Identifier, Terminals.ObjectIdentifier, Terminals.SchemaIdentifier, Terminals.BindVariableIdentifier, Terminals.ColumnAlias, Terminals.ObjectAlias, Terminals.Count) || t.Id.IsLiteral() || t.ParentNode.Id.In(NonTerminals.AnalyticFunction, NonTerminals.AggregateFunction)); }