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)) == '*')
2231
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2242
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2628
if (TextWindow.
PeekChar
(1) == '&')
2638
if (TextWindow.
PeekChar
(1) == '|')
2758
if (TextWindow.
PeekChar
(1) == '/')
2905
if (TextWindow.
PeekChar
(1) == '!')
2907
if (TextWindow.
PeekChar
(2) == '-'
2908
&& TextWindow.
PeekChar
(3) == '-')
2913
else if (TextWindow.
PeekChar
(2) == '['
2914
&& TextWindow.
PeekChar
(3) == 'C'
2915
&& TextWindow.
PeekChar
(4) == 'D'
2916
&& TextWindow.
PeekChar
(5) == 'A'
2917
&& TextWindow.
PeekChar
(6) == 'T'
2918
&& TextWindow.
PeekChar
(7) == 'A'
2919
&& TextWindow.
PeekChar
(8) == '[')
2931
else if (TextWindow.
PeekChar
(1) == '/')
2936
else if (TextWindow.
PeekChar
(1) == '?')
3120
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3149
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3159
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3232
if (TextWindow.
PeekChar
(1) == '>')
3276
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3497
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4020
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4065
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4088
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4142
if (TextWindow.
PeekChar
(1) == '-')
4144
if (TextWindow.
PeekChar
(2) == '>')
4195
if (TextWindow.
PeekChar
(1) == '-')
4218
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4273
if (TextWindow.
PeekChar
(1) == '>')
4319
if (TextWindow.
PeekChar
(1) == '>')
4342
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4379
&& TextWindow.
PeekChar
(1) == '*'
4380
&& TextWindow.
PeekChar
(2) == '*'
4381
&& TextWindow.
PeekChar
(3) != '*')
4410
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4424
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4439
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4487
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4544
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4572
var ch2 = TextWindow.
PeekChar
(1);
4613
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])