84 references to PeekChar
Microsoft.CodeAnalysis.CSharp (84)
Parser\Lexer.cs (66)
451
if (this.TextWindow.
PeekChar
(1) is >= '0' and <= '9')
616
if (TextWindow.
PeekChar
(1) == ':')
741
while (TextWindow.
PeekChar
(index) == '@')
746
if (TextWindow.
PeekChar
(index) == '"')
752
else if (TextWindow.
PeekChar
(index) == '$')
766
if (TextWindow.
PeekChar
(1) is '$' or '@' or '"')
864
ch = TextWindow.
PeekChar
(1);
921
var ch2 = TextWindow.
PeekChar
(1);
1482
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1516
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
1907
if ((ch = TextWindow.
PeekChar
(1)) == '/')
1909
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
1929
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
1930
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
1951
if ((ch = TextWindow.
PeekChar
(1)) == '*')
2211
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2222
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2627
if (TextWindow.
PeekChar
(1) == '&')
2637
if (TextWindow.
PeekChar
(1) == '|')
2757
if (TextWindow.
PeekChar
(1) == '/')
2904
if (TextWindow.
PeekChar
(1) == '!')
2906
if (TextWindow.
PeekChar
(2) == '-'
2907
&& TextWindow.
PeekChar
(3) == '-')
2912
else if (TextWindow.
PeekChar
(2) == '['
2913
&& TextWindow.
PeekChar
(3) == 'C'
2914
&& TextWindow.
PeekChar
(4) == 'D'
2915
&& TextWindow.
PeekChar
(5) == 'A'
2916
&& TextWindow.
PeekChar
(6) == 'T'
2917
&& TextWindow.
PeekChar
(7) == 'A'
2918
&& TextWindow.
PeekChar
(8) == '[')
2930
else if (TextWindow.
PeekChar
(1) == '/')
2935
else if (TextWindow.
PeekChar
(1) == '?')
3119
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3148
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3158
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3231
if (TextWindow.
PeekChar
(1) == '>')
3275
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3496
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4019
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4064
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4087
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4141
if (TextWindow.
PeekChar
(1) == '-')
4143
if (TextWindow.
PeekChar
(2) == '>')
4194
if (TextWindow.
PeekChar
(1) == '-')
4217
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4272
if (TextWindow.
PeekChar
(1) == '>')
4318
if (TextWindow.
PeekChar
(1) == '>')
4341
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4378
&& TextWindow.
PeekChar
(1) == '*'
4379
&& TextWindow.
PeekChar
(2) == '*'
4380
&& TextWindow.
PeekChar
(3) != '*')
4409
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4423
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4438
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4486
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4543
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4571
var ch2 = TextWindow.
PeekChar
(1);
4612
var ch2 = TextWindow.
PeekChar
(1);
Parser\Lexer_StringLiteral.cs (15)
20
TextWindow.
PeekChar
(1) == '"' &&
21
TextWindow.
PeekChar
(2) == '"')
120
if (TextWindow.PeekChar() is ('u' or 'U') && TextWindow.
PeekChar
(1) == '8')
417
if ((window.
PeekChar
(0), window.
PeekChar
(1), window.
PeekChar
(2)) is ('$', '@', '"') or ('@', '$', '"'))
431
if ((window.
PeekChar
(0), window.
PeekChar
(1), window.
PeekChar
(2), window.
PeekChar
(3)) is
771
if (_lexer.TextWindow.
PeekChar
(1) != '"')
851
if (_lexer.TextWindow.
PeekChar
(1) == '{')
970
if (kind is InterpolatedStringKind.Verbatim && _lexer.TextWindow.
PeekChar
(1) == '"')
1080
if (_lexer.TextWindow.
PeekChar
(1) == '*')
1092
switch (_lexer.TextWindow.
PeekChar
(1))
Parser\SlidingTextWindow.cs (3)
291
return GetNewLineWidth(this.PeekChar(), this.
PeekChar
(1));
356
=>
PeekChar
(-1);
368
if (
PeekChar
(i) != desired[i])