1 write to Text
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
45=> Text = text;
49 references to Text
Microsoft.CodeAnalysis.Features (49)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (31)
47public readonly VirtualChar CurrentChar => Position < Text.Length ? Text[Position] : default; 53=> Text.GetSubSequence(TextSpan.FromBounds(start, end)); 58if (Position == Text.Length) 66return CreateToken(GetKind(ch), trivia, Text.GetSubSequence(new TextSpan(Position - 1, 1))); 106while (Position < Text.Length) 130if (Position >= Text.Length) 137if (Text[Position] == '#') 142while (Position < Text.Length && 143Text[Position] != '\n') 155while (Position < Text.Length && 156Text[Position] != ')') 161if (Position == Text.Length) 177=> TextSpan.FromBounds(Text[startInclusive].Span.Start, Text[endExclusive - 1].Span.End); 186if (position + i >= Text.Length || 187Text[position + i] != val[i]) 201while (Position < Text.Length && IsBlank(Text[Position])) 234while (Position < Text.Length && IsEscapeCategoryChar(this.CurrentChar)) 261if (Position == Text.Length) 272while (Position < Text.Length && this.CurrentChar is var ch && IsDecimalDigit(ch)) 309if (Position == Text.Length) 315while (Position < Text.Length && RegexCharClass.IsBoundaryWordChar(this.CurrentChar)) 336while (Position < Text.Length && IsOptionChar(this.CurrentChar)) 374Debug.Assert(Text[beforeSlash] == '\\'); 375Debug.Assert(Text[beforeSlash + 1].Value is 'x' or 'u'); 379if (Position < Text.Length && IsHexChar(this.CurrentChar)) 417Debug.Assert(Text[beforeSlash] == '\\'); 418Debug.Assert(IsOctalDigit(Text[start])); 425if (Position < Text.Length && IsOctalDigit(this.CurrentChar))
EmbeddedLanguages\RegularExpressions\RegexParser.cs (18)
168Debug.Assert(_lexer.Position == _lexer.Text.Length); 178_lexer.Text, root, diagnostics.ToImmutable(), 711? new TextSpan(_lexer.Text.Last().Span.End, 0) 971if (_lexer.Position == _lexer.Text.Length) 1470if (_currentToken.Kind == RegexKind.BackslashToken && _lexer.Position < _lexer.Text.Length) 1563Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1609Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1647Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1662Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1667while (_lexer.Position < _lexer.Text.Length && 1668_lexer.Text[_lexer.Position] is var ch && 1701Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1723Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1724Debug.Assert(_lexer.Text[_lexer.Position].Value is '<' or '\''); 1776if (_lexer.Position < _lexer.Text.Length && 1806Debug.Assert(_lexer.Text[_lexer.Position - 1] == '\\'); 1930Debug.Assert(_lexer.Text[_lexer.Position - 1] is var ch && (ch == 'P' || ch == 'p')); 1963if (_lexer.Text.Length - _lexer.Position < "{x}".Length)