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