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