83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
Parser\Lexer.cs (66)
466
if (this.TextWindow.
PeekChar
(1) is >= '0' and <= '9')
636
if (TextWindow.
PeekChar
(1) == ':')
761
while (TextWindow.
PeekChar
(index) == '@')
766
if (TextWindow.
PeekChar
(index) == '"')
772
else if (TextWindow.
PeekChar
(index) == '$')
786
if (TextWindow.
PeekChar
(1) is '$' or '@' or '"')
884
ch = TextWindow.
PeekChar
(1);
941
var ch2 = TextWindow.
PeekChar
(1);
1506
(char.ToLower(TextWindow.
PeekChar
(1)) == 'x'))
1540
if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
(1) == '>')
1931
if ((ch = TextWindow.
PeekChar
(1)) == '/')
1933
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
1953
if (!this.SuppressDocumentationCommentParse && TextWindow.
PeekChar
(2) == '*' &&
1954
TextWindow.
PeekChar
(3) != '*' && TextWindow.
PeekChar
(3) != '/')
1975
if ((ch = TextWindow.
PeekChar
(1)) == '*')
2235
Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.
PeekChar
(1) == '*');
2246
else if (ch == '*' && TextWindow.
PeekChar
(1) == delimiter)
2632
if (TextWindow.
PeekChar
(1) == '&')
2642
if (TextWindow.
PeekChar
(1) == '|')
2762
if (TextWindow.
PeekChar
(1) == '/')
2909
if (TextWindow.
PeekChar
(1) == '!')
2911
if (TextWindow.
PeekChar
(2) == '-'
2912
&& TextWindow.
PeekChar
(3) == '-')
2917
else if (TextWindow.
PeekChar
(2) == '['
2918
&& TextWindow.
PeekChar
(3) == 'C'
2919
&& TextWindow.
PeekChar
(4) == 'D'
2920
&& TextWindow.
PeekChar
(5) == 'A'
2921
&& TextWindow.
PeekChar
(6) == 'T'
2922
&& TextWindow.
PeekChar
(7) == 'A'
2923
&& TextWindow.
PeekChar
(8) == '[')
2935
else if (TextWindow.
PeekChar
(1) == '/')
2940
else if (TextWindow.
PeekChar
(1) == '?')
3124
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3153
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3163
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3236
if (TextWindow.
PeekChar
(1) == '>')
3280
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3501
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4024
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4069
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4092
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4146
if (TextWindow.
PeekChar
(1) == '-')
4148
if (TextWindow.
PeekChar
(2) == '>')
4199
if (TextWindow.
PeekChar
(1) == '-')
4222
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4277
if (TextWindow.
PeekChar
(1) == '>')
4323
if (TextWindow.
PeekChar
(1) == '>')
4346
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4383
&& TextWindow.
PeekChar
(1) == '*'
4384
&& TextWindow.
PeekChar
(2) == '*'
4385
&& TextWindow.
PeekChar
(3) != '*')
4414
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4428
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4443
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4491
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4548
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4576
var ch2 = TextWindow.
PeekChar
(1);
4617
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])