31 writes to _parsePoint
Microsoft.Build (31)
Evaluation\Conditionals\Scanner.cs (31)
66
_parsePoint
= 0;
160
_parsePoint
++;
164
_parsePoint
++;
168
_parsePoint
++;
208
_parsePoint
+= 2;
213
_parsePoint
++;
221
_parsePoint
+= 2;
226
_parsePoint
++;
234
_parsePoint
+= 2;
239
_parsePoint
++;
246
_parsePoint
+= 2;
261
_parsePoint
++;
295
_parsePoint
++;
306
var result = ScanForPropertyExpressionEnd(_expression,
_parsePoint
++, out int indexResult);
316
_parsePoint
= indexResult;
328
_parsePoint
++;
505
_parsePoint
++;
516
_parsePoint
++;
539
_parsePoint
++;
558
_parsePoint
++;
579
_parsePoint
++;
640
_parsePoint
++;
655
_parsePoint
++;
724
_parsePoint
+= 2;
733
_parsePoint
++;
737
_parsePoint
++;
744
_parsePoint
++;
768
_parsePoint
++;
777
_parsePoint
++;
786
_parsePoint
++;
795
_parsePoint
++;
85 references to _parsePoint
Microsoft.Build (85)
Evaluation\Conditionals\Scanner.cs (85)
148
_errorPosition =
_parsePoint
+ 1;
150
if (
_parsePoint
>= _expression.Length)
156
switch (_expression[
_parsePoint
])
185
int start =
_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] == '=')
250
_errorPosition =
_parsePoint
+ 2; // expression[parsePoint + 1], counting from 1
252
if ((
_parsePoint
+ 1) < _expression.Length)
255
_unexpectedlyFound = Convert.ToString(_expression[
_parsePoint
+ 1], CultureInfo.InvariantCulture);
294
int start =
_parsePoint
; // set start so that we include "$(" or "%("
297
if (
_parsePoint
< _expression.Length && _expression[
_parsePoint
] != '(')
302
_unexpectedlyFound = Convert.ToString(_expression[
_parsePoint
], CultureInfo.InvariantCulture);
319
if (
_parsePoint
>= _expression.Length)
329
return _expression.Substring(start,
_parsePoint
- start);
482
_errorPosition =
_parsePoint
;
492
_errorPosition =
_parsePoint
;
504
int start =
_parsePoint
;
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)
564
int start =
_parsePoint
;
569
_lookahead = new Token(Token.TokenType.ItemList, _expression.Substring(start,
_parsePoint
- start));
580
int start =
_parsePoint
;
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;
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);
661
int start =
_parsePoint
;
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))
705
int end =
_parsePoint
;
707
if (
_parsePoint
< _expression.Length && _expression[
_parsePoint
] == '(')
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
]))