1 write to Text
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
47
=>
Text
= text;
49 references to Text
Microsoft.CodeAnalysis.Features (49)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (31)
49
public readonly VirtualChar CurrentChar => Position <
Text
.Length ?
Text
[Position] : default;
55
=>
Text
.GetSubSequence(TextSpan.FromBounds(start, end));
60
if (Position ==
Text
.Length)
68
return CreateToken(GetKind(ch), trivia,
Text
.GetSubSequence(new TextSpan(Position - 1, 1)));
108
while (Position <
Text
.Length)
132
if (Position >=
Text
.Length)
139
if (
Text
[Position] == '#')
144
while (Position <
Text
.Length &&
145
Text
[Position] != '\n')
157
while (Position <
Text
.Length &&
158
Text
[Position] != ')')
163
if (Position ==
Text
.Length)
179
=> TextSpan.FromBounds(
Text
[startInclusive].Span.Start,
Text
[endExclusive - 1].Span.End);
188
if (position + i >=
Text
.Length ||
189
Text
[position + i] != val[i])
203
while (Position <
Text
.Length && IsBlank(
Text
[Position]))
236
while (Position <
Text
.Length &&
267
if (Position ==
Text
.Length)
278
while (Position <
Text
.Length && this.CurrentChar is var ch && IsDecimalDigit(ch))
315
if (Position ==
Text
.Length)
321
while (Position <
Text
.Length && RegexCharClass.IsBoundaryWordChar(this.CurrentChar))
342
while (Position <
Text
.Length && IsOptionChar(this.CurrentChar))
380
Debug.Assert(
Text
[beforeSlash] == '\\');
381
Debug.Assert(
Text
[beforeSlash + 1].Value is 'x' or 'u');
385
if (Position <
Text
.Length && IsHexChar(this.CurrentChar))
423
Debug.Assert(
Text
[beforeSlash] == '\\');
424
Debug.Assert(IsOctalDigit(
Text
[start]));
431
if (Position <
Text
.Length && IsOctalDigit(this.CurrentChar))
EmbeddedLanguages\RegularExpressions\RegexParser.cs (18)
169
Debug.Assert(_lexer.Position == _lexer.
Text
.Length);
179
_lexer.
Text
, root, diagnostics.ToImmutable(),
712
? new TextSpan(_lexer.
Text
.Last().Span.End, 0)
969
if (_lexer.Position == _lexer.
Text
.Length)
1474
if (_currentToken.Kind == RegexKind.BackslashToken && _lexer.Position < _lexer.
Text
.Length)
1597
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1643
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1681
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1696
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1701
while (_lexer.Position < _lexer.
Text
.Length &&
1702
_lexer.
Text
[_lexer.Position] is var ch &&
1735
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1757
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1758
Debug.Assert(_lexer.
Text
[_lexer.Position].Value is '<' or '\'');
1810
if (_lexer.Position < _lexer.
Text
.Length &&
1840
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1964
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] is var ch && (ch == 'P' || ch == 'p'));
1997
if (_lexer.
Text
.Length - _lexer.Position < "{x}".Length)