15 writes to Position
Microsoft.CodeAnalysis.Features (15)
EmbeddedLanguages\Json\JsonLexer.cs (15)
88
Position
++;
95
Position
++;
131
Position
++;
147
Position
++;
171
Position
++;
190
Position
++;
240
Position
+= 2;
245
Position
++;
265
Position
++;
279
Position
+= 2;
282
Position
++;
300
Position
+= 2;
303
Position
++;
307
Position
+= 2;
337
Position
++;
29 references to Position
Microsoft.CodeAnalysis.Features (29)
EmbeddedLanguages\Json\JsonLexer.cs (28)
31
public readonly VirtualChar CurrentChar => Text[
Position
];
34
=> GetSubSequence(start,
Position
);
42
if (
Position
== Text.Length)
62
Debug.Assert(
Position
< Text.Length);
86
var start =
Position
;
91
while (
Position
< Text.Length)
106
var escapeDiag = AdvanceToEndOfEscape(start, escapeStart:
Position
- 1);
124
if (this.
Position
== Text.Length)
136
'u' => ScanUnicodeChars(escapeStart,
Position
),
144
for (var i = 0; this.
Position
< Text.Length && i < 4; i++)
152
if (invalid || (
Position
- unicodeCharStart != 4))
168
var start =
Position
;
170
while (
Position
< Text.Length && !IsNotPartOfText(this.CurrentChar))
189
var chars = this.Text.GetSubSequence(new TextSpan(
Position
, 1));
198
while (
Position
< Text.Length)
237
var start =
Position
;
264
var start =
Position
;
278
var start =
Position
;
281
while (
Position
< Text.Length && this.CurrentChar.Value is not '\r' and not '\n')
285
if (
Position
== start + 2)
299
var start =
Position
;
302
while (
Position
< Text.Length && !IsAt("*/"))
311
Debug.Assert(
Position
== Text.Length);
313
new EmbeddedDiagnostic(FeaturesResources.Unterminated_comment, GetTextSpan(start,
Position
)));
320
=> TextAt(this.
Position
, val);
335
var start =
Position
;
336
while (
Position
< Text.Length && this.CurrentChar.IsWhiteSpace)
339
if (
Position
> start)
EmbeddedLanguages\Json\JsonParser.cs (1)
124
Debug.Assert(_lexer.
Position
== _lexer.Text.Length);