1 write to _expression
Microsoft.Build (1)
Evaluation\Conditionals\Scanner.cs (1)
65
_expression
= expressionToParse;
79 references to _expression
Microsoft.Build (79)
Evaluation\Conditionals\Scanner.cs (79)
84
Debug.Assert(false, "What code path did not set an appropriate error resource? Expression: " +
_expression
);
150
if (_parsePoint >=
_expression
.Length)
156
switch (
_expression
[_parsePoint])
189
if ((_parsePoint + 1) <
_expression
.Length &&
_expression
[_parsePoint + 1] == '(')
205
if ((_parsePoint + 1) <
_expression
.Length &&
_expression
[_parsePoint + 1] == '=')
218
if ((_parsePoint + 1) <
_expression
.Length &&
_expression
[_parsePoint + 1] == '=')
231
if ((_parsePoint + 1) <
_expression
.Length &&
_expression
[_parsePoint + 1] == '=')
243
if ((_parsePoint + 1) <
_expression
.Length &&
_expression
[_parsePoint + 1] == '=')
252
if ((_parsePoint + 1) <
_expression
.Length)
255
_unexpectedlyFound = Convert.ToString(
_expression
[_parsePoint + 1], CultureInfo.InvariantCulture);
297
if (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] != '(')
302
_unexpectedlyFound = Convert.ToString(
_expression
[_parsePoint], CultureInfo.InvariantCulture);
306
var result = ScanForPropertyExpressionEnd(
_expression
, _parsePoint++, out int indexResult);
312
_unexpectedlyFound = Convert.ToString(
_expression
[indexResult], CultureInfo.InvariantCulture);
319
if (_parsePoint >=
_expression
.Length)
329
return
_expression
.Substring(start, _parsePoint - start);
507
if (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] != '(')
521
while (_parsePoint <
_expression
.Length)
523
if (
_expression
[_parsePoint] == '\'')
527
else if (
_expression
[_parsePoint] == '(' && !fInReplacement)
531
else if (
_expression
[_parsePoint] == ')' && !fInReplacement)
541
if (_parsePoint >=
_expression
.Length)
569
_lookahead = new Token(Token.TokenType.ItemList,
_expression
.Substring(start, _parsePoint - start));
582
while (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] != '\'')
588
if ((
_expression
[_parsePoint] == '%') && ((_parsePoint + 1) <
_expression
.Length) && (
_expression
[_parsePoint + 1] == '('))
593
int endOfName =
_expression
.IndexOf(')', _parsePoint) - 1;
596
endOfName =
_expression
.Length - 1;
600
if (_parsePoint + 3 <
_expression
.Length)
602
name =
_expression
.Substring(_parsePoint + 2, endOfName - _parsePoint - 2 + 1);
610
else if (
_expression
[_parsePoint] == '@' && ((_parsePoint + 1) <
_expression
.Length) && (
_expression
[_parsePoint + 1] == '('))
631
else if (
_expression
[_parsePoint] == '$' && ((_parsePoint + 1) <
_expression
.Length) && (
_expression
[_parsePoint + 1] == '('))
635
else if (
_expression
[_parsePoint] == '%')
643
if (_parsePoint >=
_expression
.Length)
652
string originalTokenString =
_expression
.Substring(start, _parsePoint - start);
662
if (CharacterUtilities.IsNumberStart(
_expression
[_parsePoint])) // numeric
669
else if (CharacterUtilities.IsSimpleStringStart(
_expression
[_parsePoint])) // simple string (handle 'and' and 'or')
682
_unexpectedlyFound = Convert.ToString(
_expression
[_parsePoint], CultureInfo.InvariantCulture);
695
if (string.Equals(
_expression
.Substring(start, _parsePoint - start), "and", StringComparison.OrdinalIgnoreCase))
699
else if (string.Equals(
_expression
.Substring(start, _parsePoint - start), "or", StringComparison.OrdinalIgnoreCase))
707
if (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] == '(')
709
_lookahead = new Token(Token.TokenType.Function,
_expression
.Substring(start, end - start));
713
string tokenValue =
_expression
.Substring(start, end - start);
721
if ((
_expression
.Length - _parsePoint) > 2 &&
_expression
[_parsePoint] == '0' && (
_expression
[_parsePoint + 1] == 'x' ||
_expression
[_parsePoint + 1] == 'X'))
726
_lookahead = new Token(Token.TokenType.Numeric,
_expression
.Substring(start, _parsePoint - start));
728
else if (CharacterUtilities.IsNumberStart(
_expression
[_parsePoint]))
731
if (
_expression
[_parsePoint] == '+')
735
else if (
_expression
[_parsePoint] == '-')
742
if (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] == '.')
746
if (_parsePoint <
_expression
.Length)
750
} while (_parsePoint <
_expression
.Length &&
_expression
[_parsePoint] == '.');
753
_lookahead = new Token(Token.TokenType.Numeric,
_expression
.Substring(start, _parsePoint - start));
766
while (_parsePoint <
_expression
.Length && char.IsWhiteSpace(
_expression
[_parsePoint]))
775
while (_parsePoint <
_expression
.Length && char.IsDigit(
_expression
[_parsePoint]))
784
while (_parsePoint <
_expression
.Length && CharacterUtilities.IsHexDigit(
_expression
[_parsePoint]))
793
while (_parsePoint <
_expression
.Length && CharacterUtilities.IsSimpleStringChar(
_expression
[_parsePoint]))