84 references to PeekChar
Microsoft.CodeAnalysis.CSharp (84)
Parser\Lexer.cs (66)
466
if (this.TextWindow.
PeekChar
(1) is >= '0' and <= '9')
631
if (TextWindow.
PeekChar
(1) == ':')
756
while (TextWindow.
PeekChar
(index) == '@')
761
if (TextWindow.
PeekChar
(index) == '"')
767
else if (TextWindow.
PeekChar
(index) == '$')
781
if (TextWindow.
PeekChar
(1) is '$' or '@' or '"')
879
ch = TextWindow.
PeekChar
(1);
936
var ch2 = TextWindow.
PeekChar
(1);
1497
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1531
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
1922
if ((ch = TextWindow.
PeekChar
(1)) == '/')
1924
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
1944
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
1945
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
1966
if ((ch = TextWindow.
PeekChar
(1)) == '*')
2226
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2237
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2642
if (TextWindow.
PeekChar
(1) == '&')
2652
if (TextWindow.
PeekChar
(1) == '|')
2772
if (TextWindow.
PeekChar
(1) == '/')
2919
if (TextWindow.
PeekChar
(1) == '!')
2921
if (TextWindow.
PeekChar
(2) == '-'
2922
&& TextWindow.
PeekChar
(3) == '-')
2927
else if (TextWindow.
PeekChar
(2) == '['
2928
&& TextWindow.
PeekChar
(3) == 'C'
2929
&& TextWindow.
PeekChar
(4) == 'D'
2930
&& TextWindow.
PeekChar
(5) == 'A'
2931
&& TextWindow.
PeekChar
(6) == 'T'
2932
&& TextWindow.
PeekChar
(7) == 'A'
2933
&& TextWindow.
PeekChar
(8) == '[')
2945
else if (TextWindow.
PeekChar
(1) == '/')
2950
else if (TextWindow.
PeekChar
(1) == '?')
3134
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3163
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3173
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3246
if (TextWindow.
PeekChar
(1) == '>')
3290
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3511
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4034
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4079
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4102
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4156
if (TextWindow.
PeekChar
(1) == '-')
4158
if (TextWindow.
PeekChar
(2) == '>')
4209
if (TextWindow.
PeekChar
(1) == '-')
4232
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4287
if (TextWindow.
PeekChar
(1) == '>')
4333
if (TextWindow.
PeekChar
(1) == '>')
4356
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4393
&& TextWindow.
PeekChar
(1) == '*'
4394
&& TextWindow.
PeekChar
(2) == '*'
4395
&& TextWindow.
PeekChar
(3) != '*')
4424
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4438
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4453
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4501
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4558
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4586
var ch2 = TextWindow.
PeekChar
(1);
4627
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])