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