51 references to InvalidCharacter
Microsoft.CodeAnalysis.CSharp (51)
Parser\Lexer.cs (38)
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) 2149if (ch == SlidingTextWindow.InvalidCharacter) 2202if (ch == SlidingTextWindow.InvalidCharacter || SyntaxFacts.IsNewLine(ch)) 2237if ((ch = TextWindow.PeekChar()) == SlidingTextWindow.InvalidCharacter && TextWindow.IsReallyAtEnd()) 2259(ch != SlidingTextWindow.InvalidCharacter || !TextWindow.IsReallyAtEnd())) 2452case SlidingTextWindow.InvalidCharacter: 2522else if (ch is SlidingTextWindow.InvalidCharacter && this.TextWindow.IsReallyAtEnd()) 2559case SlidingTextWindow.InvalidCharacter: 2808Debug.Assert(this.LocationIs(XmlDocCommentLocation.End) || TextWindow.PeekChar() == SlidingTextWindow.InvalidCharacter); 2869case SlidingTextWindow.InvalidCharacter: 3041if (lowSurrogate != SlidingTextWindow.InvalidCharacter) 3133case SlidingTextWindow.InvalidCharacter: 3266case SlidingTextWindow.InvalidCharacter: 3431case SlidingTextWindow.InvalidCharacter: 3487case SlidingTextWindow.InvalidCharacter: 3557case SlidingTextWindow.InvalidCharacter: 3613char consumedSurrogate = SlidingTextWindow.InvalidCharacter; 3642case SlidingTextWindow.InvalidCharacter: 3915&& nextChar == ch && nextSurrogate == SlidingTextWindow.InvalidCharacter) 4034case SlidingTextWindow.InvalidCharacter: 4078case SlidingTextWindow.InvalidCharacter: 4165case SlidingTextWindow.InvalidCharacter: 4208case SlidingTextWindow.InvalidCharacter: 4287case SlidingTextWindow.InvalidCharacter: 4332case SlidingTextWindow.InvalidCharacter: 4590surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4610Debug.Assert(ch != SlidingTextWindow.InvalidCharacter, "Precondition established by all callers; required for correctness of AdvanceChar() call."); 4620surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4633surrogateCharacter = SlidingTextWindow.InvalidCharacter; 4747surrogate = SlidingTextWindow.InvalidCharacter; 4851lowSurrogate = 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;