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); 191ItemExpressionCapture? functionCapture = SinkItemFunctionExpression(expression, startTransform, ref currentIndex, end); 206currentIndex = restartPoint; 216SinkWhitespace(expression, ref currentIndex); 222if (Sink(expression, ref currentIndex, ',')) 224SinkWhitespace(expression, ref currentIndex); 226if (!Sink(expression, ref currentIndex, '\'')) 228currentIndex = restartPoint; 235currentIndex = restartPoint; 242currentIndex = closingQuote + 1; 245SinkWhitespace(expression, ref currentIndex); 247if (!Sink(expression, ref currentIndex, ')')) 249currentIndex = restartPoint; 254currentIndex--; 262++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; 190startTransform = currentIndex; 232int closingQuote = expression.IndexOf('\'', currentIndex); 239separatorStart = currentIndex - startPoint; 240separator = expression.Substring(currentIndex, closingQuote - currentIndex); 253int endPoint = currentIndex;