83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
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);
1501
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1535
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
1926
if ((ch = TextWindow.
PeekChar
(1)) == '/')
1928
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
1948
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
1949
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
1970
if ((ch = TextWindow.
PeekChar
(1)) == '*')
2230
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2241
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2650
if (TextWindow.
PeekChar
(1) == '&')
2660
if (TextWindow.
PeekChar
(1) == '|')
2780
if (TextWindow.
PeekChar
(1) == '/')
2927
if (TextWindow.
PeekChar
(1) == '!')
2929
if (TextWindow.
PeekChar
(2) == '-'
2930
&& TextWindow.
PeekChar
(3) == '-')
2935
else if (TextWindow.
PeekChar
(2) == '['
2936
&& TextWindow.
PeekChar
(3) == 'C'
2937
&& TextWindow.
PeekChar
(4) == 'D'
2938
&& TextWindow.
PeekChar
(5) == 'A'
2939
&& TextWindow.
PeekChar
(6) == 'T'
2940
&& TextWindow.
PeekChar
(7) == 'A'
2941
&& TextWindow.
PeekChar
(8) == '[')
2953
else if (TextWindow.
PeekChar
(1) == '/')
2958
else if (TextWindow.
PeekChar
(1) == '?')
3142
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3171
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3181
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3254
if (TextWindow.
PeekChar
(1) == '>')
3298
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3519
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4042
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4087
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4110
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4164
if (TextWindow.
PeekChar
(1) == '-')
4166
if (TextWindow.
PeekChar
(2) == '>')
4217
if (TextWindow.
PeekChar
(1) == '-')
4240
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4295
if (TextWindow.
PeekChar
(1) == '>')
4341
if (TextWindow.
PeekChar
(1) == '>')
4364
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4401
&& TextWindow.
PeekChar
(1) == '*'
4402
&& TextWindow.
PeekChar
(2) == '*'
4403
&& TextWindow.
PeekChar
(3) != '*')
4432
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4446
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4461
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4509
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4566
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4594
var ch2 = TextWindow.
PeekChar
(1);
4635
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)
300
return GetNewLineWidth(this.PeekChar(), this.
PeekChar
(1));
402
if (
PeekChar
(i) != desired[i])