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