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