150 references to PeekChar
Microsoft.CodeAnalysis.CSharp (150)
Parser\Lexer.cs (100)
443
character = TextWindow.
PeekChar
();
453
if (TextWindow.
PeekChar
() == '=')
469
if (TextWindow.
PeekChar
() == '.')
472
if (TextWindow.
PeekChar
() == '.')
497
if (TextWindow.
PeekChar
() == ':')
521
if (TextWindow.
PeekChar
() == '=')
535
if ((character = TextWindow.
PeekChar
()) == '=')
554
if (TextWindow.
PeekChar
() == '=')
598
if (TextWindow.
PeekChar
() == '?')
602
if (TextWindow.
PeekChar
() == '=')
621
if ((character = TextWindow.
PeekChar
()) == '=')
640
if ((character = TextWindow.
PeekChar
()) == '=')
664
if (TextWindow.
PeekChar
() == '=')
678
if ((character = TextWindow.
PeekChar
()) == '=')
683
else if (TextWindow.
PeekChar
() == '&')
697
if (TextWindow.
PeekChar
() == '=')
711
if (TextWindow.
PeekChar
() == '=')
716
else if (TextWindow.
PeekChar
() == '|')
730
if (TextWindow.
PeekChar
() == '=')
735
else if (TextWindow.
PeekChar
() == '<')
738
if (TextWindow.
PeekChar
() == '=')
757
if (TextWindow.
PeekChar
() == '=')
773
Debug.Assert(TextWindow.
PeekChar
() == '@');
935
Debug.Assert(TextWindow.
PeekChar
() == '@');
961
Debug.Assert(TextWindow.
PeekChar
() == '$');
1002
while ((ch = TextWindow.
PeekChar
()) >= '0' && ch <= '9')
1013
if (TextWindow.
PeekChar
() == '_')
1028
char ch = TextWindow.
PeekChar
();
1071
ch = TextWindow.
PeekChar
();
1094
if ((ch = TextWindow.
PeekChar
()) == 'L' || ch == 'l')
1098
if ((ch = TextWindow.
PeekChar
()) == 'u' || ch == 'U')
1104
else if ((ch = TextWindow.
PeekChar
()) == 'u' || ch == 'U')
1108
if ((ch = TextWindow.
PeekChar
()) == 'L' || ch == 'l')
1119
if (this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.
PeekChar
() == '#')
1129
if ((ch = TextWindow.
PeekChar
()) == '.')
1148
if ((ch = TextWindow.
PeekChar
()) == 'E' || ch == 'e')
1153
if ((ch = TextWindow.
PeekChar
()) == '-' || ch == '+')
1159
if (!(((ch = TextWindow.
PeekChar
()) >= '0' && ch <= '9') || ch == '_'))
1174
if ((ch = TextWindow.
PeekChar
()) == 'f' || ch == 'F')
1194
else if ((ch = TextWindow.
PeekChar
()) == 'f' || ch == 'F')
1213
if ((ch = TextWindow.
PeekChar
()) == 'u' || ch == 'U')
1223
if ((ch = TextWindow.
PeekChar
()) == 'L' || ch == 'l')
1699
while (TextWindow.
PeekChar
() == '@')
1712
char ch = TextWindow.
PeekChar
();
2003
if (TextWindow.
PeekChar
() == '&')
2035
(TextWindow.
PeekChar
() == 'u' || TextWindow.
PeekChar
() == 'U'))
2281
char ch = TextWindow.
PeekChar
();
2455
var startCh = this.TextWindow.
PeekChar
();
2481
var ch = this.TextWindow.
PeekChar
();
2519
while (SyntaxFacts.IsNewLine(this.TextWindow.
PeekChar
()))
2534
var ch = this.TextWindow.
PeekChar
();
2563
if (TextWindow.
PeekChar
() == '/' && TextWindow.PeekChar(1) == '*')
2570
if ((ch = TextWindow.
PeekChar
()) == SlidingTextWindow.InvalidCharacter && TextWindow.IsReallyAtEnd())
2599
while (!SyntaxFacts.IsNewLine(ch = TextWindow.
PeekChar
()) &&
2613
switch (ch = TextWindow.
PeekChar
())
2617
if (TextWindow.
PeekChar
() == '\n')
2653
char ch = TextWindow.
PeekChar
();
2764
if (SyntaxFacts.IsWhitespace(TextWindow.
PeekChar
()))
2795
char ch = TextWindow.
PeekChar
();
2853
var ch = this.TextWindow.
PeekChar
();
2887
switch (character = TextWindow.
PeekChar
())
2931
if (TextWindow.
PeekChar
() == '=')
2945
if (TextWindow.
PeekChar
() == '=')
3088
char ch = TextWindow.
PeekChar
();
3150
Debug.Assert(this.LocationIs(XmlDocCommentLocation.End) || TextWindow.
PeekChar
() == SlidingTextWindow.InvalidCharacter);
3195
switch (ch = TextWindow.
PeekChar
())
3245
Debug.Assert(TextWindow.
PeekChar
() == '<');
3294
Debug.Assert(TextWindow.
PeekChar
() == '&');
3301
if (IsXmlNameStartChar(ch = TextWindow.
PeekChar
()))
3303
while (IsXmlNameChar(ch = TextWindow.
PeekChar
()))
3341
bool isHex = TextWindow.
PeekChar
() == 'x';
3347
while (SyntaxFacts.IsHexDigit(ch = TextWindow.
PeekChar
()))
3360
while (SyntaxFacts.IsDecDigit(ch = TextWindow.
PeekChar
()))
3372
if (TextWindow.
PeekChar
() != ';')
3417
ch = TextWindow.
PeekChar
();
3462
if (TextWindow.
PeekChar
() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>')
3472
var ch = TextWindow.
PeekChar
();
3562
switch (ch = TextWindow.
PeekChar
())
3659
char ch = TextWindow.
PeekChar
();
3736
switch (ch = TextWindow.
PeekChar
())
3801
var ch = TextWindow.
PeekChar
();
3893
switch (TextWindow.
PeekChar
())
4059
if (TextWindow.
PeekChar
() == '.')
4190
if (TextWindow.
PeekChar
() == '@')
4203
else if (TextWindow.
PeekChar
() == '&')
4241
char peekCh = TextWindow.
PeekChar
();
4359
switch (ch = TextWindow.
PeekChar
())
4403
var ch = TextWindow.
PeekChar
();
4481
switch (ch = TextWindow.
PeekChar
())
4533
var ch = TextWindow.
PeekChar
();
4612
switch (ch = TextWindow.
PeekChar
())
4657
var ch = TextWindow.
PeekChar
();
4720
if (TextWindow.
PeekChar
() == '/'
4741
char ch = TextWindow.
PeekChar
();
4766
while (TextWindow.
PeekChar
() == '*' && TextWindow.PeekChar(1) != '/')
4781
if (TextWindow.
PeekChar
() == '*' && TextWindow.PeekChar(1) == '/')
4829
if (TextWindow.
PeekChar
() == '*' && TextWindow.PeekChar(1) == '/')
4845
char ch = TextWindow.
PeekChar
();
4867
char ch = TextWindow.
PeekChar
();
Parser\Lexer_RawStringLiteral.cs (11)
20
while (TextWindow.
PeekChar
() == ch)
45
var ch = TextWindow.
PeekChar
();
68
if (SyntaxFacts.IsNewLine(TextWindow.
PeekChar
()))
132
var currentChar = TextWindow.
PeekChar
();
197
Debug.Assert(SyntaxFacts.IsNewLine(TextWindow.
PeekChar
()));
224
Debug.Assert(SyntaxFacts.IsNewLine(TextWindow.
PeekChar
()));
282
var currentChar = TextWindow.
PeekChar
();
317
Debug.Assert(SyntaxFacts.IsNewLine(TextWindow.
PeekChar
()));
324
_builder.Append(TextWindow.
PeekChar
());
341
var isBlankLine = SyntaxFacts.IsNewLine(TextWindow.
PeekChar
());
380
var currentChar = TextWindow.
PeekChar
();
Parser\Lexer_StringLiteral.cs (23)
16
var quoteCharacter = TextWindow.
PeekChar
();
19
if (TextWindow.
PeekChar
() == '"' &&
40
char ch = TextWindow.
PeekChar
();
120
if (TextWindow.
PeekChar
() is ('u' or 'U') && TextWindow.PeekChar(1) == '8')
187
Debug.Assert(TextWindow.
PeekChar
() == '@');
191
while (TextWindow.
PeekChar
() == '@')
201
Debug.Assert(TextWindow.
PeekChar
() == '"');
206
var ch = TextWindow.
PeekChar
();
210
if (TextWindow.
PeekChar
() == '"')
354
char ch = _lexer.TextWindow.
PeekChar
();
481
if (SyntaxFacts.IsNewLine(window.
PeekChar
()))
524
if (_lexer.TextWindow.
PeekChar
() != '"')
547
if (_lexer.TextWindow.
PeekChar
() != '"')
591
else if (_lexer.TextWindow.
PeekChar
() == '"')
651
switch (_lexer.TextWindow.
PeekChar
())
722
if (SyntaxFacts.IsNewLine(_lexer.TextWindow.
PeekChar
()))
800
if (_lexer.TextWindow.
PeekChar
() == '}')
854
if (_lexer.TextWindow.
PeekChar
() == '}')
946
Debug.Assert(_lexer.TextWindow.
PeekChar
() == ':');
950
char ch = _lexer.TextWindow.
PeekChar
();
1001
char ch = _lexer.TextWindow.
PeekChar
();
1124
Debug.Assert(start == _lexer.TextWindow.
PeekChar
());
1127
if (_lexer.TextWindow.
PeekChar
() == end)
Parser\SlidingTextWindow.cs (16)
290
Debug.Assert(SyntaxFacts.IsNewLine(this.
PeekChar
()));
291
return GetNewLineWidth(this.
PeekChar
(), this.PeekChar(1));
309
char c =
PeekChar
();
366
if (this.
PeekChar
() == '\\')
387
return this.
PeekChar
();
405
var ch = this.
PeekChar
();
433
char character = this.
PeekChar
();
437
character = this.
PeekChar
();
443
if (!SyntaxFacts.IsHexDigit(this.
PeekChar
()))
454
character = this.
PeekChar
();
488
if (!SyntaxFacts.IsHexDigit(this.
PeekChar
()))
499
char ch2 = this.
PeekChar
();
538
Debug.Assert(this.
PeekChar
() == '&');
545
switch (this.
PeekChar
())
589
while (SyntaxFacts.IsHexDigit(digit = this.
PeekChar
()))
607
while (SyntaxFacts.IsDecDigit(digit = this.
PeekChar
()))