83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
Parser\Lexer.cs (66)
462
if (this.TextWindow.
PeekChar
(1) is >= '0' and <= '9')
632
if (TextWindow.
PeekChar
(1) == ':')
757
while (TextWindow.
PeekChar
(index) == '@')
762
if (TextWindow.
PeekChar
(index) == '"')
768
else if (TextWindow.
PeekChar
(index) == '$')
782
if (TextWindow.
PeekChar
(1) is '$' or '@' or '"')
880
ch = TextWindow.
PeekChar
(1);
937
var ch2 = TextWindow.
PeekChar
(1);
1502
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1536
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
1927
if ((ch = TextWindow.
PeekChar
(1)) == '/')
1929
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
1949
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
1950
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
1971
if ((ch = TextWindow.
PeekChar
(1)) == '*')
2205
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2216
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2595
if (TextWindow.
PeekChar
(1) == '&')
2605
if (TextWindow.
PeekChar
(1) == '|')
2725
if (TextWindow.
PeekChar
(1) == '/')
2872
if (TextWindow.
PeekChar
(1) == '!')
2874
if (TextWindow.
PeekChar
(2) == '-'
2875
&& TextWindow.
PeekChar
(3) == '-')
2880
else if (TextWindow.
PeekChar
(2) == '['
2881
&& TextWindow.
PeekChar
(3) == 'C'
2882
&& TextWindow.
PeekChar
(4) == 'D'
2883
&& TextWindow.
PeekChar
(5) == 'A'
2884
&& TextWindow.
PeekChar
(6) == 'T'
2885
&& TextWindow.
PeekChar
(7) == 'A'
2886
&& TextWindow.
PeekChar
(8) == '[')
2898
else if (TextWindow.
PeekChar
(1) == '/')
2903
else if (TextWindow.
PeekChar
(1) == '?')
3087
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3116
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3126
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3199
if (TextWindow.
PeekChar
(1) == '>')
3243
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3464
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3987
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4032
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4055
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4109
if (TextWindow.
PeekChar
(1) == '-')
4111
if (TextWindow.
PeekChar
(2) == '>')
4162
if (TextWindow.
PeekChar
(1) == '-')
4185
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4240
if (TextWindow.
PeekChar
(1) == '>')
4286
if (TextWindow.
PeekChar
(1) == '>')
4309
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4346
&& TextWindow.
PeekChar
(1) == '*'
4347
&& TextWindow.
PeekChar
(2) == '*'
4348
&& TextWindow.
PeekChar
(3) != '*')
4377
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4391
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4406
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4454
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4511
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4539
var ch2 = TextWindow.
PeekChar
(1);
4580
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 (2)
304
return GetNewLineWidth(this.PeekChar(), this.
PeekChar
(1));
387
if (
PeekChar
(i) != desired[i])