1 instantiation of SlidingTextWindow
Microsoft.CodeAnalysis.CSharp (1)
Parser\AbstractLexer.cs (1)
21
this.TextWindow = new
SlidingTextWindow
(text);
51 references to SlidingTextWindow
Microsoft.CodeAnalysis.CSharp (51)
Parser\AbstractLexer.cs (1)
16
internal readonly
SlidingTextWindow
TextWindow;
Parser\LanguageParser_InterpolatedString.cs (2)
144
var afterNewLine =
SlidingTextWindow
.GetNewLineWidth(closeQuoteText[0], closeQuoteText[1]);
343
currentIndex +=
SlidingTextWindow
.GetNewLineWidth(ch, currentIndex + 1 < text.Length ? text[currentIndex + 1] : '\0');
Parser\Lexer.cs (40)
689
case
SlidingTextWindow
.InvalidCharacter:
1461
char surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
1485
case
SlidingTextWindow
.InvalidCharacter:
1598
if (surrogateCharacter !=
SlidingTextWindow
.InvalidCharacter)
1697
consumedSurrogate =
SlidingTextWindow
.InvalidCharacter;
1719
Debug.Assert(consumedSurrogate ==
SlidingTextWindow
.InvalidCharacter, "Since consumedChar == '\\'");
1765
case
SlidingTextWindow
.InvalidCharacter:
1800
if (consumedSurrogate !=
SlidingTextWindow
.InvalidCharacter)
2153
if (ch ==
SlidingTextWindow
.InvalidCharacter)
2206
if (ch ==
SlidingTextWindow
.InvalidCharacter || SyntaxFacts.IsNewLine(ch))
2241
if ((ch = TextWindow.PeekChar()) ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd())
2263
(ch !=
SlidingTextWindow
.InvalidCharacter || !TextWindow.IsReallyAtEnd()))
2359
private static SyntaxTrivia CreateWhitespaceTrivia(
SlidingTextWindow
textWindow)
2456
case
SlidingTextWindow
.InvalidCharacter:
2526
else if (ch is
SlidingTextWindow
.InvalidCharacter && this.TextWindow.IsReallyAtEnd())
2563
case
SlidingTextWindow
.InvalidCharacter:
2812
Debug.Assert(this.LocationIs(XmlDocCommentLocation.End) || TextWindow.PeekChar() ==
SlidingTextWindow
.InvalidCharacter);
2873
case
SlidingTextWindow
.InvalidCharacter:
3042
char highSurrogate =
SlidingTextWindow
.GetCharsFromUtf32(charValue, out lowSurrogate);
3045
if (lowSurrogate !=
SlidingTextWindow
.InvalidCharacter)
3137
case
SlidingTextWindow
.InvalidCharacter:
3270
case
SlidingTextWindow
.InvalidCharacter:
3435
case
SlidingTextWindow
.InvalidCharacter:
3491
case
SlidingTextWindow
.InvalidCharacter:
3561
case
SlidingTextWindow
.InvalidCharacter:
3617
char consumedSurrogate =
SlidingTextWindow
.InvalidCharacter;
3646
case
SlidingTextWindow
.InvalidCharacter:
3919
&& nextChar == ch && nextSurrogate ==
SlidingTextWindow
.InvalidCharacter)
4038
case
SlidingTextWindow
.InvalidCharacter:
4082
case
SlidingTextWindow
.InvalidCharacter:
4169
case
SlidingTextWindow
.InvalidCharacter:
4212
case
SlidingTextWindow
.InvalidCharacter:
4291
case
SlidingTextWindow
.InvalidCharacter:
4336
case
SlidingTextWindow
.InvalidCharacter:
4594
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4614
Debug.Assert(ch !=
SlidingTextWindow
.InvalidCharacter, "Precondition established by all callers; required for correctness of AdvanceChar() call.");
4624
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4637
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
4751
surrogate =
SlidingTextWindow
.InvalidCharacter;
4855
lowSurrogate =
SlidingTextWindow
.InvalidCharacter;
Parser\Lexer_RawStringLiteral.cs (1)
55
=> currentChar ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd();
Parser\Lexer_StringLiteral.cs (7)
47
if (c2 !=
SlidingTextWindow
.InvalidCharacter)
58
(ch ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd()))
91
info.CharValue =
SlidingTextWindow
.InvalidCharacter;
132
surrogateCharacter =
SlidingTextWindow
.InvalidCharacter;
229
if (ch ==
SlidingTextWindow
.InvalidCharacter && TextWindow.IsReallyAtEnd())
364
(ch ==
SlidingTextWindow
.InvalidCharacter && _lexer.TextWindow.IsReallyAtEnd());
414
var
window = _lexer.TextWindow;