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)
2648
if (TextWindow.
PeekChar
(1) == '&')
2658
if (TextWindow.
PeekChar
(1) == '|')
2778
if (TextWindow.
PeekChar
(1) == '/')
2925
if (TextWindow.
PeekChar
(1) == '!')
2927
if (TextWindow.
PeekChar
(2) == '-'
2928
&& TextWindow.
PeekChar
(3) == '-')
2933
else if (TextWindow.
PeekChar
(2) == '['
2934
&& TextWindow.
PeekChar
(3) == 'C'
2935
&& TextWindow.
PeekChar
(4) == 'D'
2936
&& TextWindow.
PeekChar
(5) == 'A'
2937
&& TextWindow.
PeekChar
(6) == 'T'
2938
&& TextWindow.
PeekChar
(7) == 'A'
2939
&& TextWindow.
PeekChar
(8) == '[')
2951
else if (TextWindow.
PeekChar
(1) == '/')
2956
else if (TextWindow.
PeekChar
(1) == '?')
3140
if (TextWindow.PeekChar() == ']' && TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3169
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3179
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
3252
if (TextWindow.
PeekChar
(1) == '>')
3296
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
3517
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4040
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4085
if (TextWindow.
PeekChar
(1) == ']' && TextWindow.
PeekChar
(2) == '>')
4108
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4162
if (TextWindow.
PeekChar
(1) == '-')
4164
if (TextWindow.
PeekChar
(2) == '>')
4215
if (TextWindow.
PeekChar
(1) == '-')
4238
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4293
if (TextWindow.
PeekChar
(1) == '>')
4339
if (TextWindow.
PeekChar
(1) == '>')
4362
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4399
&& TextWindow.
PeekChar
(1) == '*'
4400
&& TextWindow.
PeekChar
(2) == '*'
4401
&& TextWindow.
PeekChar
(3) != '*')
4430
if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.
PeekChar
(1) == '/' && TextWindow.
PeekChar
(2) == '/' && TextWindow.
PeekChar
(3) != '/')
4444
while (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) != '/')
4459
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4507
if (TextWindow.PeekChar() == '*' && TextWindow.
PeekChar
(1) == '/')
4564
if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.
PeekChar
(1) == '/')
4592
var ch2 = TextWindow.
PeekChar
(1);
4633
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])