6 writes to Text
System.Data.Services (6)
System\Data\Services\Parsing\ExpressionLexer.cs (2)
240
this.token.
Text
= this.text.Substring(tokenPos, this.textPos - tokenPos);
456
this.token.
Text
= this.text.Substring(tokenPos, this.textPos - tokenPos);
System\Data\Services\Parsing\RequestQueryParser.cs (1)
1714
numberLiteral.
Text
= "-" + numberLiteral.Text;
System\Data\Services\Parsing\Token.cs (3)
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 };
51 references to Text
System.Data.Services (51)
System\Data\Services\KeyInstance.cs (2)
236
string namedValue = lexer.CurrentToken.
Text
;
256
positionalValues.Add(lexer.CurrentToken.
Text
);
System\Data\Services\Parsing\ExpressionLexer.cs (9)
249
if (IsInfinityOrNaNDouble(this.token.
Text
))
253
else if (IsInfinityOrNanSingle(this.token.
Text
))
257
else if (this.token.
Text
== ExpressionConstants.KeywordTrue || this.token.
Text
== ExpressionConstants.KeywordFalse)
261
else if (this.token.
Text
== ExpressionConstants.KeywordNull)
278
string result = this.CurrentToken.
Text
;
286
builder = new StringBuilder(result, result.Length + 1 + this.CurrentToken.
Text
.Length);
290
builder.Append(this.CurrentToken.
Text
);
424
string tokenText = this.token.
Text
;
System\Data\Services\Parsing\RequestQueryParser.cs (28)
1325
return token.Id == TokenId.Identifier && String.Equals(id, token.
Text
, StringComparison.OrdinalIgnoreCase);
1377
this.CheckAndPromoteOperands(typeof(OperationSignatures.ILogicalSignatures), op.
Text
, ref left, ref right, op.Position);
1396
this.CheckAndPromoteOperands(typeof(OperationSignatures.ILogicalSignatures), op.
Text
, ref left, ref right, op.Position);
1448
op.
Text
== ExpressionConstants.KeywordGreaterThan || op.
Text
== ExpressionConstants.KeywordLessThan,
1473
switch (op.
Text
)
1516
Strings.RequestQueryParser_NullOperatorUnsupported(op.
Text
, op.Position, this.lexer.ExpressionText));
1553
throw ExpressionParser.IncompatibleOperandsError(op.
Text
, left, right, op.Position);
1562
Strings.RequestQueryParser_NullOperatorUnsupported(op.
Text
, op.Position, this.lexer.ExpressionText));
1583
this.CheckAndPromoteOperands(signatures, op.
Text
, ref left, ref right, op.Position);
1615
switch (op.
Text
)
1654
this.CheckAndPromoteOperands(typeof(OperationSignatures.IAddSignatures), op.
Text
, ref left, ref right, op.Position);
1660
this.CheckAndPromoteOperands(typeof(OperationSignatures.ISubtractSignatures), op.
Text
, ref left, ref right, op.Position);
1682
this.CheckAndPromoteOperands(typeof(OperationSignatures.IArithmeticSignatures), op.
Text
, ref left, ref right, op.Position);
1714
numberLiteral.Text = "-" + numberLiteral.
Text
;
1724
this.CheckAndPromoteOperand(typeof(OperationSignatures.INegationSignatures), op.
Text
, ref expr, op.Position);
1729
this.CheckAndPromoteOperand(typeof(OperationSignatures.INotSignatures), op.
Text
, ref expr, op.Position);
1849
if (!functions.TryGetValue(functionToken.
Text
, out functionDescriptions))
1851
throw ParseError(Strings.RequestQueryParser_UnknownFunction(functionToken.
Text
, functionToken.Position));
1856
throw ParseError(Strings.RequestQueryParser_UnknownFunction(functionToken.
Text
, functionToken.Position));
1910
functionToken.
Text
,
1912
FunctionDescription.BuildSignatureList(functionToken.
Text
, functionDescriptions));
1924
functionToken.
Text
,
1926
FunctionDescription.BuildSignatureList(functionToken.
Text
, functionDescriptions));
1997
string originalText = this.CurrentToken.
Text
;
2018
if (!WebConvert.TryKeyStringToPrimitive(l.CurrentToken.
Text
, targetType, out targetValue))
2020
string message = Strings.RequestQueryParser_UnrecognizedLiteral(targetTypeName, l.CurrentToken.
Text
, l.CurrentToken.Position);
2024
Expression result = this.CreateLiteral(targetValue, l.CurrentToken.
Text
);
System\Data\Services\Parsing\Token.cs (11)
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);
90
return String.Format(System.Globalization.CultureInfo.InvariantCulture, "{0} @ {1}: [{2}]", this.Id, this.Position, this.
Text
);
102
return this.
Text
;
110
return this.Id == TokenId.Identifier && this.
Text
== id;
System\Data\Services\RequestQueryProcessor.cs (1)
329
identifier = lexer.CurrentToken.
Text
;