51 references to InvalidCharacter
Microsoft.CodeAnalysis.CSharp (51)
Parser\Lexer.cs (38)
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())) 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: 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 (6)
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());
Parser\SlidingTextWindow.cs (6)
245/// After reading <see cref=" InvalidCharacter"/>, a consumer can determine 317/// The next character, <see cref="InvalidCharacter" /> if there were no characters 323if (c != InvalidCharacter) 342return InvalidCharacter; 365ch = InvalidCharacter; 473lowSurrogate = InvalidCharacter;