26 writes to currentIndex
Microsoft.Build (26)
Evaluation\ExpressionShredder.cs (26)
116currentIndex = expression.IndexOf('@', start, end - start); 119currentIndex = int.MaxValue; 127for (; currentIndex < end; currentIndex++) 129if (!Sink(expression, ref currentIndex, end, '@', '(')) 143SinkWhitespace(expression, ref currentIndex); 147if (!SinkValidName(expression, ref currentIndex, end)) 149currentIndex = restartPoint; 158currentIndex--; 165SinkWhitespace(expression, ref currentIndex); 170while (Sink(expression, ref currentIndex, end, '-', '>') && transformOrFunctionFound) 172SinkWhitespace(expression, ref currentIndex); 175bool isQuotedTransform = SinkSingleQuotedExpression(expression, ref currentIndex, end); 190ItemExpressionCapture? functionCapture = SinkItemFunctionExpression(expression, startTransform, ref currentIndex, end); 204currentIndex = restartPoint; 214SinkWhitespace(expression, ref currentIndex); 220if (Sink(expression, ref currentIndex, ',')) 222SinkWhitespace(expression, ref currentIndex); 224if (!Sink(expression, ref currentIndex, '\'')) 226currentIndex = restartPoint; 233currentIndex = restartPoint; 240currentIndex = closingQuote + 1; 243SinkWhitespace(expression, ref currentIndex); 245if (!Sink(expression, ref currentIndex, ')')) 247currentIndex = restartPoint; 252currentIndex--; 260++currentIndex;
17 references to currentIndex
Microsoft.Build (17)
Evaluation\ExpressionShredder.cs (17)
117if (currentIndex < 0) 127for (; currentIndex < end; currentIndex++) 138int restartPoint = currentIndex - 1; 141int startPoint = currentIndex - 2; 145int startOfName = currentIndex; 156if (end > currentIndex && expression[currentIndex - 1] == '-' && expression[currentIndex] == '>') 163string itemName = Microsoft.NET.StringTools.Strings.WeakIntern(expression.AsSpan(startOfName, currentIndex - startOfName)); 173int startTransform = currentIndex; 179int endQuoted = currentIndex - 1; 189startTransform = currentIndex; 230int closingQuote = expression.IndexOf('\'', currentIndex); 237separatorStart = currentIndex - startPoint; 238separator = expression.Substring(currentIndex, closingQuote - currentIndex); 251int endPoint = currentIndex;