15 writes to Position
Microsoft.CodeAnalysis.Features (15)
EmbeddedLanguages\Json\JsonLexer.cs (15)
89
Position
++;
96
Position
++;
132
Position
++;
148
Position
++;
172
Position
++;
191
Position
++;
241
Position
+= 2;
246
Position
++;
266
Position
++;
280
Position
+= 2;
283
Position
++;
301
Position
+= 2;
304
Position
++;
308
Position
+= 2;
338
Position
++;
29 references to Position
Microsoft.CodeAnalysis.Features (29)
EmbeddedLanguages\Json\JsonLexer.cs (28)
32
public readonly VirtualChar CurrentChar => Text[
Position
];
35
=> GetSubSequence(start,
Position
);
43
if (
Position
== Text.Length)
63
Debug.Assert(
Position
< Text.Length);
87
var start =
Position
;
92
while (
Position
< Text.Length)
107
var escapeDiag = AdvanceToEndOfEscape(start, escapeStart:
Position
- 1);
125
if (this.
Position
== Text.Length)
137
'u' => ScanUnicodeChars(escapeStart,
Position
),
145
for (var i = 0; this.
Position
< Text.Length && i < 4; i++)
153
if (invalid || (
Position
- unicodeCharStart != 4))
169
var start =
Position
;
171
while (
Position
< Text.Length && !IsNotPartOfText(this.CurrentChar))
190
var chars = this.Text.GetSubSequence(new TextSpan(
Position
, 1));
199
while (
Position
< Text.Length)
238
var start =
Position
;
265
var start =
Position
;
279
var start =
Position
;
282
while (
Position
< Text.Length && this.CurrentChar.Value is not '\r' and not '\n')
286
if (
Position
== start + 2)
300
var start =
Position
;
303
while (
Position
< Text.Length && !IsAt("*/"))
312
Debug.Assert(
Position
== Text.Length);
314
new EmbeddedDiagnostic(FeaturesResources.Unterminated_comment, GetTextSpan(start,
Position
)));
321
=> TextAt(this.
Position
, val);
336
var start =
Position
;
337
while (
Position
< Text.Length && this.CurrentChar.IsWhiteSpace)
340
if (
Position
> start)
EmbeddedLanguages\Json\JsonParser.cs (1)
124
Debug.Assert(_lexer.
Position
== _lexer.Text.Length);