28 writes to currentIndex
Microsoft.Build (28)
Evaluation\ExpressionShredder.cs (28)
117currentIndex = expression.IndexOf('@', start, end - start); 120currentIndex = int.MaxValue; 128for (; currentIndex < end; currentIndex++) 130if (!Sink(expression, ref currentIndex, end, '@', '(')) 144SinkWhitespace(expression, ref currentIndex); 148if (!SinkValidName(expression, ref currentIndex, end)) 150currentIndex = restartPoint; 159currentIndex--; 166SinkWhitespace(expression, ref currentIndex); 171while (Sink(expression, ref currentIndex, end, '-', '>') && transformOrFunctionFound) 173SinkWhitespace(expression, ref currentIndex); 176bool isQuotedTransform = SinkSingleQuotedExpression(expression, ref currentIndex, end); 188SinkWhitespace(expression, ref currentIndex); 193ItemExpressionCapture? functionCapture = SinkItemFunctionExpression(expression, startTransform, ref currentIndex, end); 203SinkWhitespace(expression, ref currentIndex); 209currentIndex = restartPoint; 219SinkWhitespace(expression, ref currentIndex); 225if (Sink(expression, ref currentIndex, ',')) 227SinkWhitespace(expression, ref currentIndex); 229if (!Sink(expression, ref currentIndex, '\'')) 231currentIndex = restartPoint; 238currentIndex = restartPoint; 245currentIndex = closingQuote + 1; 248SinkWhitespace(expression, ref currentIndex); 250if (!Sink(expression, ref currentIndex, ')')) 252currentIndex = restartPoint; 257currentIndex--; 265++currentIndex;
17 references to currentIndex
Microsoft.Build (17)
Evaluation\ExpressionShredder.cs (17)
118if (currentIndex < 0) 128for (; currentIndex < end; currentIndex++) 139int restartPoint = currentIndex - 1; 142int startPoint = currentIndex - 2; 146int startOfName = currentIndex; 157if (end > currentIndex && expression[currentIndex - 1] == '-' && expression[currentIndex] == '>') 164string itemName = Strings.WeakIntern(expression.AsSpan(startOfName, currentIndex - startOfName)); 174int startTransform = currentIndex; 180int endQuoted = currentIndex - 1; 192startTransform = currentIndex; 235int closingQuote = expression.IndexOf('\'', currentIndex); 242separatorStart = currentIndex - startPoint; 243separator = expression.Substring(currentIndex, closingQuote - currentIndex); 256int endPoint = currentIndex;