1 write to Text
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\Json\JsonLexer.cs (1)
29
Text
= text;
22 references to Text
Microsoft.CodeAnalysis.Features (22)
EmbeddedLanguages\Json\JsonLexer.cs (18)
32
public readonly VirtualChar CurrentChar =>
Text
[Position];
38
=>
Text
.GetSubSequence(TextSpan.FromBounds(start, end));
43
if (Position ==
Text
.Length)
63
Debug.Assert(Position <
Text
.Length);
92
while (Position <
Text
.Length)
125
if (this.Position ==
Text
.Length)
145
for (var i = 0; this.Position <
Text
.Length && i < 4; i++)
171
while (Position <
Text
.Length && !IsNotPartOfText(this.CurrentChar))
190
var chars = this.
Text
.GetSubSequence(new TextSpan(Position, 1));
199
while (Position <
Text
.Length)
282
while (Position <
Text
.Length && this.CurrentChar.Value is not '\r' and not '\n')
303
while (Position <
Text
.Length && !IsAt("*/"))
312
Debug.Assert(Position ==
Text
.Length);
318
=> TextSpan.FromBounds(
Text
[startInclusive].Span.Start,
Text
[endExclusive - 1].Span.End);
327
if (position + i >=
Text
.Length ||
Text
[position + i] != val[i])
337
while (Position <
Text
.Length && this.CurrentChar.IsWhiteSpace)
EmbeddedLanguages\Json\JsonParser.cs (4)
124
Debug.Assert(_lexer.Position == _lexer.
Text
.Length);
135
var diagnostic2 = CheckTopLevel(_lexer.
Text
, root);
142
return new JsonTree(_lexer.
Text
, root, diagnostic == null
592
? new TextSpan(_lexer.
Text
.Last().Span.End, 0)