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