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)
685case SlidingTextWindow.InvalidCharacter: 1457char surrogateCharacter = SlidingTextWindow.InvalidCharacter; 1481case SlidingTextWindow.InvalidCharacter: 1594if (surrogateCharacter != SlidingTextWindow.InvalidCharacter) 1693consumedSurrogate = SlidingTextWindow.InvalidCharacter; 1715Debug.Assert(consumedSurrogate == SlidingTextWindow.InvalidCharacter, "Since consumedChar == '\\'"); 1761case SlidingTextWindow.InvalidCharacter: 1796if (consumedSurrogate != SlidingTextWindow.InvalidCharacter) 2123if (ch == SlidingTextWindow.InvalidCharacter) 2176if (ch == SlidingTextWindow.InvalidCharacter || SyntaxFacts.IsNewLine(ch)) 2211if ((ch = TextWindow.PeekChar()) == SlidingTextWindow.InvalidCharacter && TextWindow.IsReallyAtEnd()) 2233(ch != SlidingTextWindow.InvalidCharacter || !TextWindow.IsReallyAtEnd())) 2329private static SyntaxTrivia CreateWhitespaceTrivia(SlidingTextWindow textWindow) 2419case SlidingTextWindow.InvalidCharacter: 2489else if (ch is SlidingTextWindow.InvalidCharacter && this.TextWindow.IsReallyAtEnd()) 2526case SlidingTextWindow.InvalidCharacter: 2775Debug.Assert(this.LocationIs(XmlDocCommentLocation.End) || TextWindow.PeekChar() == SlidingTextWindow.InvalidCharacter); 2836case SlidingTextWindow.InvalidCharacter: 3005char highSurrogate = SlidingTextWindow.GetCharsFromUtf32(charValue, out lowSurrogate); 3008if (lowSurrogate != SlidingTextWindow.InvalidCharacter) 3100case SlidingTextWindow.InvalidCharacter: 3233case SlidingTextWindow.InvalidCharacter: 3398case SlidingTextWindow.InvalidCharacter: 3454case SlidingTextWindow.InvalidCharacter: 3524case SlidingTextWindow.InvalidCharacter: 3580char consumedSurrogate = SlidingTextWindow.InvalidCharacter; 3609case SlidingTextWindow.InvalidCharacter: 3882&& nextChar == ch && nextSurrogate == SlidingTextWindow.InvalidCharacter) 4001case SlidingTextWindow.InvalidCharacter: 4045case SlidingTextWindow.InvalidCharacter: 4132case SlidingTextWindow.InvalidCharacter: 4175case SlidingTextWindow.InvalidCharacter: 4254case SlidingTextWindow.InvalidCharacter: 4299case SlidingTextWindow.InvalidCharacter: 4557surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4577Debug.Assert(ch != SlidingTextWindow.InvalidCharacter, "Precondition established by all callers; required for correctness of AdvanceChar() call."); 4587surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4600surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4714surrogate = SlidingTextWindow.InvalidCharacter; 4818lowSurrogate = 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;