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