84 references to PeekChar
Microsoft.CodeAnalysis.CSharp (84)
Parser\Lexer.cs (66)
451if (this.TextWindow.PeekChar(1) is >= '0' and <= '9') 616if (TextWindow.PeekChar(1) == ':') 741while (TextWindow.PeekChar(index) == '@') 746if (TextWindow.PeekChar(index) == '"') 752else if (TextWindow.PeekChar(index) == '$') 766if (TextWindow.PeekChar(1) is '$' or '@' or '"') 864ch = TextWindow.PeekChar(1); 921var ch2 = TextWindow.PeekChar(1); 1482(char.ToLower(TextWindow.PeekChar(1)) == 'x')) 1516if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.PeekChar(1) == '>') 1907if ((ch = TextWindow.PeekChar(1)) == '/') 1909if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 1929if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '*' && 1930TextWindow.PeekChar(3) != '*' && TextWindow.PeekChar(3) != '/') 1951if ((ch = TextWindow.PeekChar(1)) == '*') 2211Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2222else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2627if (TextWindow.PeekChar(1) == '&') 2637if (TextWindow.PeekChar(1) == '|') 2757if (TextWindow.PeekChar(1) == '/') 2904if (TextWindow.PeekChar(1) == '!') 2906if (TextWindow.PeekChar(2) == '-' 2907&& TextWindow.PeekChar(3) == '-') 2912else if (TextWindow.PeekChar(2) == '[' 2913&& TextWindow.PeekChar(3) == 'C' 2914&& TextWindow.PeekChar(4) == 'D' 2915&& TextWindow.PeekChar(5) == 'A' 2916&& TextWindow.PeekChar(6) == 'T' 2917&& TextWindow.PeekChar(7) == 'A' 2918&& TextWindow.PeekChar(8) == '[') 2930else if (TextWindow.PeekChar(1) == '/') 2935else if (TextWindow.PeekChar(1) == '?') 3119if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3148if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3158if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3231if (TextWindow.PeekChar(1) == '>') 3275if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3496if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4019if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4064if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4087if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4141if (TextWindow.PeekChar(1) == '-') 4143if (TextWindow.PeekChar(2) == '>') 4194if (TextWindow.PeekChar(1) == '-') 4217if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4272if (TextWindow.PeekChar(1) == '>') 4318if (TextWindow.PeekChar(1) == '>') 4341if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4378&& TextWindow.PeekChar(1) == '*' 4379&& TextWindow.PeekChar(2) == '*' 4380&& TextWindow.PeekChar(3) != '*') 4409if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4423while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4438if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4486if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4543if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4571var ch2 = TextWindow.PeekChar(1); 4612var ch2 = TextWindow.PeekChar(1);
Parser\Lexer_StringLiteral.cs (15)
20TextWindow.PeekChar(1) == '"' && 21TextWindow.PeekChar(2) == '"') 120if (TextWindow.PeekChar() is ('u' or 'U') && TextWindow.PeekChar(1) == '8') 417if ((window.PeekChar(0), window.PeekChar(1), window.PeekChar(2)) is ('$', '@', '"') or ('@', '$', '"')) 431if ((window.PeekChar(0), window.PeekChar(1), window.PeekChar(2), window.PeekChar(3)) is 771if (_lexer.TextWindow.PeekChar(1) != '"') 851if (_lexer.TextWindow.PeekChar(1) == '{') 970if (kind is InterpolatedStringKind.Verbatim && _lexer.TextWindow.PeekChar(1) == '"') 1080if (_lexer.TextWindow.PeekChar(1) == '*') 1092switch (_lexer.TextWindow.PeekChar(1))
Parser\SlidingTextWindow.cs (3)
291return GetNewLineWidth(this.PeekChar(), this.PeekChar(1)); 356=> PeekChar(-1); 368if (PeekChar(i) != desired[i])