104 references to TokenId
System.Data.Services (104)
System\Data\Services\KeyInstance.cs (7)
205if (currentToken.Id == TokenId.End) 214if (currentToken.Id == TokenId.Identifier && allowNamedValues) 225if (lexer.CurrentToken.Id != TokenId.Equal) 246else if (currentToken.IsKeyValueToken || (allowNull && currentToken.Id == TokenId.NullLiteral)) 267if (currentToken.Id == TokenId.Comma) 271if (currentToken.Id == TokenId.End) 278while (currentToken.Id != TokenId.End);
System\Data\Services\Parsing\ExpressionLexer.cs (45)
105internal static bool IsNumeric(TokenId id) 108id == TokenId.IntegerLiteral || id == TokenId.DecimalLiteral || 109id == TokenId.DoubleLiteral || id == TokenId.Int64Literal || 110id == TokenId.SingleLiteral; 121TokenId t; 127t = TokenId.OpenParen; 131t = TokenId.CloseParen; 135t = TokenId.Comma; 160t = TokenId.DoubleLiteral; 165t = TokenId.SingleLiteral; 174t = TokenId.Minus; 178t = TokenId.Equal; 182t = TokenId.Slash; 186t = TokenId.Question; 190t = TokenId.Dot; 210t = TokenId.StringLiteral; 214t = TokenId.Star; 220t = TokenId.Identifier; 232t = TokenId.End; 247if (this.token.Id == TokenId.Identifier) 251this.token.Id = TokenId.DoubleLiteral; 255this.token.Id = TokenId.SingleLiteral; 259this.token.Id = TokenId.BooleanLiteral; 263this.token.Id = TokenId.NullLiteral; 276this.ValidateToken(TokenId.Identifier); 280while (this.CurrentToken.Id == TokenId.Dot) 283this.ValidateToken(TokenId.Identifier); 322internal void ValidateToken(TokenId t) 412TokenId id = this.token.Id; 413if (id != TokenId.Identifier) 427id = TokenId.DateTimeLiteral; 431id = TokenId.GuidLiteral; 435id = TokenId.BinaryLiteral; 472private TokenId ParseFromDigit() 475TokenId result; 480result = TokenId.BinaryLiteral; 489result = TokenId.IntegerLiteral; 497result = TokenId.DoubleLiteral; 510result = TokenId.DoubleLiteral; 527result = TokenId.DecimalLiteral; 533result = TokenId.DoubleLiteral; 538result = TokenId.Int64Literal; 543result = TokenId.SingleLiteral;
System\Data\Services\Parsing\RequestQueryParser.cs (33)
265this.lexer.ValidateToken(TokenId.End); 326if (this.CurrentToken.Id != TokenId.Comma) 334this.ValidateToken(TokenId.End); 1325return token.Id == TokenId.Identifier && String.Equals(id, token.Text, StringComparison.OrdinalIgnoreCase); 1351Debug.Assert(l.CurrentToken.Id == TokenId.NullLiteral, "l.CurrentToken.Id == TokenId.NullLiteral"); 1586Debug.Assert(op.Id == TokenId.Identifier, "op.id == TokenId.Identifier"); 1707if (this.CurrentToken.Id == TokenId.Minus || this.CurrentToken.IdentifierIs(ExpressionConstants.KeywordNot)) 1711if (op.Id == TokenId.Minus && (ExpressionLexer.IsNumeric(this.CurrentToken.Id))) 1722if (op.Id == TokenId.Minus) 1749if (this.CurrentToken.Id == TokenId.Slash) 1771case TokenId.BooleanLiteral: 1773case TokenId.DateTimeLiteral: 1775case TokenId.DecimalLiteral: 1777case TokenId.NullLiteral: 1779case TokenId.Identifier: 1782case TokenId.StringLiteral: 1784case TokenId.Int64Literal: 1786case TokenId.IntegerLiteral: 1788case TokenId.DoubleLiteral: 1790case TokenId.SingleLiteral: 1792case TokenId.GuidLiteral: 1794case TokenId.BinaryLiteral: 1796case TokenId.OpenParen: 1808if (this.CurrentToken.Id != TokenId.OpenParen) 1815if (this.CurrentToken.Id != TokenId.CloseParen) 1828this.ValidateToken(TokenId.Identifier); 1831bool identifierIsFunction = this.lexer.PeekNextToken().Id == TokenId.OpenParen; 1996Debug.Assert(this.CurrentToken.Id == TokenId.BooleanLiteral, "this.CurrentToken.Id == TokenId.BooleanLiteral"); 2127if (this.CurrentToken.Id != TokenId.OpenParen) 2133Expression[] args = this.CurrentToken.Id != TokenId.CloseParen ? this.ParseArguments() : emptyExpressions; 2134if (this.CurrentToken.Id != TokenId.CloseParen) 2151if (this.CurrentToken.Id != TokenId.Comma) 2573private void ValidateToken(TokenId t)
System\Data\Services\Parsing\Token.cs (13)
22internal static readonly Token GreaterThan = new Token { Text = ExpressionConstants.KeywordGreaterThan, Id = TokenId.Identifier, Position = 0 }; 25internal static readonly Token EqualsTo = new Token { Text = ExpressionConstants.KeywordEqual, Id = TokenId.Identifier, Position = 0 }; 28internal static readonly Token LessThan = new Token { Text = ExpressionConstants.KeywordLessThan, Id = TokenId.Identifier, Position = 0 }; 31internal TokenId Id; 44if (this.Id != TokenId.Identifier) 65this.Id == TokenId.Identifier && 77this.Id == TokenId.BinaryLiteral || 78this.Id == TokenId.BooleanLiteral || 79this.Id == TokenId.DateTimeLiteral || 80this.Id == TokenId.GuidLiteral || 81this.Id == TokenId.StringLiteral || 97if (this.Id != TokenId.Identifier) 110return this.Id == TokenId.Identifier && this.Text == id;
System\Data\Services\RequestQueryProcessor.cs (6)
323while (lexer.CurrentToken.Id != TokenId.End) 327if (select && lexer.CurrentToken.Id == TokenId.Star) 348TokenId tokenId = lexer.CurrentToken.Id; 349if (tokenId != TokenId.End) 351if (lastSegment || tokenId != TokenId.Slash) 353lexer.ValidateToken(TokenId.Comma);