51 references to InvalidCharacter
Microsoft.CodeAnalysis.CSharp (51)
Parser\Lexer.cs (38)
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()))
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
:
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 (6)
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());
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
323
if (c !=
InvalidCharacter
)
342
return
InvalidCharacter
;
365
ch =
InvalidCharacter
;
473
lowSurrogate =
InvalidCharacter
;