1 write to _lexer
Microsoft.Build (1)
Evaluation\Conditionals\Parser.cs (1)
108
_lexer
= new Scanner(expression, _options);
36 references to _lexer
Microsoft.Build (36)
Evaluation\Conditionals\Parser.cs (36)
109
if (!
_lexer
.Advance())
111
errorPosition =
_lexer
.GetErrorPosition();
112
ProjectErrorUtilities.ThrowInvalidProject(elementLocation,
_lexer
.GetErrorResource(), expression, errorPosition,
_lexer
.UnexpectedlyFound);
115
if (!
_lexer
.IsNext(Token.TokenType.EndOfInput))
117
errorPosition =
_lexer
.GetErrorPosition();
118
ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
131
if (!
_lexer
.IsNext(Token.TokenType.EndOfInput))
181
errorPosition =
_lexer
.GetErrorPosition();
182
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
185
if (!
_lexer
.IsNext(Token.TokenType.EndOfInput))
194
if (
_lexer
.IsNext(Token.TokenType.EndOfInput))
203
errorPosition =
_lexer
.GetErrorPosition();
204
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
225
errorPosition =
_lexer
.GetErrorPosition();
226
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
283
Token current =
_lexer
.CurrentToken;
288
errorPosition =
_lexer
.GetErrorPosition();
289
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition",
_lexer
.IsNextString(), errorPosition);
296
errorPosition =
_lexer
.GetErrorPosition();
297
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
311
errorPosition =
_lexer
.GetErrorPosition();
312
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
321
errorPosition =
_lexer
.GetErrorPosition();
322
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
329
errorPosition =
_lexer
.GetErrorPosition();
330
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation, "UnexpectedTokenInCondition", expression,
_lexer
.IsNextString(), errorPosition);
337
if (!
_lexer
.IsNext(Token.TokenType.RightParenthesis))
355
Token current =
_lexer
.CurrentToken;
384
if (
_lexer
.IsNext(token))
386
if (!
_lexer
.Advance())
388
errorPosition =
_lexer
.GetErrorPosition();
389
if (
_lexer
.UnexpectedlyFound != null)
391
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation,
_lexer
.GetErrorResource(), expression, errorPosition,
_lexer
.UnexpectedlyFound);
395
ProjectErrorUtilities.ThrowInvalidProject(_elementLocation,
_lexer
.GetErrorResource(), expression, errorPosition);