42 references to ExpressionConstants
System.Data.Services (42)
System\Data\Services\Parsing\ExpressionLexer.cs (3)
257
else if (this.token.Text ==
ExpressionConstants
.KeywordTrue || this.token.Text ==
ExpressionConstants
.KeywordFalse)
261
else if (this.token.Text ==
ExpressionConstants
.KeywordNull)
System\Data\Services\Parsing\RequestQueryParser.cs (27)
315
if (this.TokenIdentifierIs(
ExpressionConstants
.KeywordAscending))
319
else if (this.TokenIdentifierIs(
ExpressionConstants
.KeywordDescending))
1372
while (this.TokenIdentifierIs(
ExpressionConstants
.KeywordOr))
1391
while (this.TokenIdentifierIs(
ExpressionConstants
.KeywordAnd))
1448
op.Text ==
ExpressionConstants
.KeywordGreaterThan || op.Text ==
ExpressionConstants
.KeywordLessThan,
1475
case
ExpressionConstants
.KeywordGreaterThan:
1494
case
ExpressionConstants
.KeywordLessThan:
1617
case
ExpressionConstants
.KeywordEqual:
1620
case
ExpressionConstants
.KeywordNotEqual:
1623
case
ExpressionConstants
.KeywordGreaterThan:
1626
case
ExpressionConstants
.KeywordGreaterThanOrEqual:
1629
case
ExpressionConstants
.KeywordLessThan:
1632
case
ExpressionConstants
.KeywordLessThanOrEqual:
1646
while (this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordAdd) ||
1647
this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordSub))
1652
if (op.IdentifierIs(
ExpressionConstants
.KeywordAdd))
1659
Debug.Assert(ExpressionParser.TokenIdentifierIs(op,
ExpressionConstants
.KeywordSub), "ExpressionParser.TokenIdentifierIs(op, ExpressionConstants.KeywordSub)");
1675
while (this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordMultiply) ||
1676
this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordDivide) ||
1677
this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordModulo))
1683
if (op.IdentifierIs(
ExpressionConstants
.KeywordMultiply))
1687
else if (op.IdentifierIs(
ExpressionConstants
.KeywordDivide))
1693
Debug.Assert(op.IdentifierIs(
ExpressionConstants
.KeywordModulo), "op.IdentifierIs(ExpressionConstants.KeywordModulo)");
1707
if (this.CurrentToken.Id == TokenId.Minus || this.CurrentToken.IdentifierIs(
ExpressionConstants
.KeywordNot))
1999
if (originalText ==
ExpressionConstants
.KeywordTrue)
2005
Debug.Assert(originalText ==
ExpressionConstants
.KeywordFalse, "originalText == ExpressionConstants.KeywordFalse");
System\Data\Services\Parsing\Token.cs (11)
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 };
50
this.Text ==
ExpressionConstants
.KeywordEqual ||
51
this.Text ==
ExpressionConstants
.KeywordNotEqual ||
52
this.Text ==
ExpressionConstants
.KeywordLessThan ||
53
this.Text ==
ExpressionConstants
.KeywordGreaterThan ||
54
this.Text ==
ExpressionConstants
.KeywordLessThanOrEqual ||
55
this.Text ==
ExpressionConstants
.KeywordGreaterThanOrEqual;
66
(this.Text ==
ExpressionConstants
.KeywordEqual ||
67
this.Text ==
ExpressionConstants
.KeywordNotEqual);
System\Data\Services\Serializers\Serializer.cs (1)
1140
stringValue = Parsing.
ExpressionConstants
.KeywordNull;