83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
Parser\Lexer.cs (65)
938
while (TextWindow.
PeekChar
(index) == '@')
943
if (TextWindow.
PeekChar
(index) == '"')
949
else if (TextWindow.
PeekChar
(index) == '$')
963
if (TextWindow.
PeekChar
(1) == '$')
969
else if (TextWindow.
PeekChar
(1) == '@' && TextWindow.
PeekChar
(2) == '@')
975
else if (TextWindow.
PeekChar
(1) == '"')
980
else if (TextWindow.
PeekChar
(1) == '@')
1074
ch = TextWindow.
PeekChar
(1);
1131
var ch2 = TextWindow.
PeekChar
(1);
1806
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1848
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
2309
if ((ch = TextWindow.
PeekChar
(1)) == '/')
2311
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
2333
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
2334
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
2563
if (TextWindow.PeekChar() == '/' && TextWindow.
PeekChar
(1) == '*')
2575
else if (ch == '*' && TextWindow.
PeekChar
(1) == '/')
2958
if (TextWindow.
PeekChar
(1) == '&')
2968
if (TextWindow.
PeekChar
(1) == '|')
3092
if (TextWindow.
PeekChar
(1) == '/')
3247
if (TextWindow.
PeekChar
(1) == '!')
3249
if (TextWindow.
PeekChar
(2) == '-'
3250
&& TextWindow.
PeekChar
(3) == '-')
3255
else if (TextWindow.
PeekChar
(2) == '['
3256
&& TextWindow.
PeekChar
(3) == 'C'
3257
&& TextWindow.
PeekChar
(4) == 'D'
3258
&& TextWindow.
PeekChar
(5) == 'A'
3259
&& TextWindow.
PeekChar
(6) == 'T'
3260
&& TextWindow.
PeekChar
(7) == 'A'
3261
&& TextWindow.
PeekChar
(8) == '[')
3273
else if (TextWindow.
PeekChar
(1) == '/')
3278
else if (TextWindow.
PeekChar
(1) == '?')
3462
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3491
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3501
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3574
if (TextWindow.
PeekChar
(1) == '>')
3618
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3839
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4362
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4407
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4430
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4484
if (TextWindow.
PeekChar
(1) == '-')
4486
if (TextWindow.
PeekChar
(2) == '>')
4537
if (TextWindow.
PeekChar
(1) == '-')
4560
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4615
if (TextWindow.
PeekChar
(1) == '>')
4661
if (TextWindow.
PeekChar
(1) == '>')
4684
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4721
&& TextWindow.
PeekChar
(1) == '*'
4722
&& TextWindow.
PeekChar
(2) == '*'
4723
&& TextWindow.
PeekChar
(3) != '*')
4752
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4766
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4781
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4829
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4886
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
Parser\Lexer_StringLiteral.cs (14)
20
TextWindow.
PeekChar
(1) == '"' &&
21
TextWindow.
PeekChar
(2) == '"')
120
if (TextWindow.PeekChar() is ('u' or 'U') && TextWindow.
PeekChar
(1) == '8')
410
if ((window.
PeekChar
(0), window.
PeekChar
(1), window.
PeekChar
(2)) is ('$', '@', '"') or ('@', '$', '"'))
424
if ((window.
PeekChar
(0), window.
PeekChar
(1), window.
PeekChar
(2), window.
PeekChar
(3)) is
764
if (_lexer.TextWindow.
PeekChar
(1) != '"')
844
if (_lexer.TextWindow.
PeekChar
(1) == '{')
963
if (kind is InterpolatedStringKind.Verbatim && _lexer.TextWindow.
PeekChar
(1) == '"')
1077
switch (_lexer.TextWindow.
PeekChar
(1))
Parser\SlidingTextWindow.cs (4)
291
return GetNewLineWidth(this.PeekChar(), this.
PeekChar
(1));
368
var ch2 = this.
PeekChar
(1);
409
var ch2 = this.
PeekChar
(1);
646
if (
PeekChar
(i) != desired[i])