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