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 && IsEscapeCategoryChar(this.CurrentChar))
263
if (Position ==
Text
.Length)
274
while (Position <
Text
.Length && this.CurrentChar is var ch && IsDecimalDigit(ch))
311
if (Position ==
Text
.Length)
317
while (Position <
Text
.Length && RegexCharClass.IsBoundaryWordChar(this.CurrentChar))
338
while (Position <
Text
.Length && IsOptionChar(this.CurrentChar))
376
Debug.Assert(
Text
[beforeSlash] == '\\');
377
Debug.Assert(
Text
[beforeSlash + 1].Value is 'x' or 'u');
381
if (Position <
Text
.Length && IsHexChar(this.CurrentChar))
419
Debug.Assert(
Text
[beforeSlash] == '\\');
420
Debug.Assert(IsOctalDigit(
Text
[start]));
427
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)
972
if (_lexer.Position == _lexer.
Text
.Length)
1471
if (_currentToken.Kind == RegexKind.BackslashToken && _lexer.Position < _lexer.
Text
.Length)
1564
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1610
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1648
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1663
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1668
while (_lexer.Position < _lexer.
Text
.Length &&
1669
_lexer.
Text
[_lexer.Position] is var ch &&
1702
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1724
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1725
Debug.Assert(_lexer.
Text
[_lexer.Position].Value is '<' or '\'');
1777
if (_lexer.Position < _lexer.
Text
.Length &&
1807
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] == '\\');
1931
Debug.Assert(_lexer.
Text
[_lexer.Position - 1] is var ch && (ch == 'P' || ch == 'p'));
1964
if (_lexer.
Text
.Length - _lexer.Position < "{x}".Length)