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