83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
Parser\Lexer.cs (66)
466if (this.TextWindow.PeekChar(1) is >= '0' and <= '9') 636if (TextWindow.PeekChar(1) == ':') 761while (TextWindow.PeekChar(index) == '@') 766if (TextWindow.PeekChar(index) == '"') 772else if (TextWindow.PeekChar(index) == '$') 786if (TextWindow.PeekChar(1) is '$' or '@' or '"') 884ch = TextWindow.PeekChar(1); 941var ch2 = TextWindow.PeekChar(1); 1506(char.ToLower(TextWindow.PeekChar(1)) == 'x')) 1540if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.PeekChar(1) == '>') 1931if ((ch = TextWindow.PeekChar(1)) == '/') 1933if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 1953if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '*' && 1954TextWindow.PeekChar(3) != '*' && TextWindow.PeekChar(3) != '/') 1975if ((ch = TextWindow.PeekChar(1)) == '*') 2235Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2246else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2655if (TextWindow.PeekChar(1) == '&') 2665if (TextWindow.PeekChar(1) == '|') 2785if (TextWindow.PeekChar(1) == '/') 2932if (TextWindow.PeekChar(1) == '!') 2934if (TextWindow.PeekChar(2) == '-' 2935&& TextWindow.PeekChar(3) == '-') 2940else if (TextWindow.PeekChar(2) == '[' 2941&& TextWindow.PeekChar(3) == 'C' 2942&& TextWindow.PeekChar(4) == 'D' 2943&& TextWindow.PeekChar(5) == 'A' 2944&& TextWindow.PeekChar(6) == 'T' 2945&& TextWindow.PeekChar(7) == 'A' 2946&& TextWindow.PeekChar(8) == '[') 2958else if (TextWindow.PeekChar(1) == '/') 2963else if (TextWindow.PeekChar(1) == '?') 3147if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3176if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3186if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3259if (TextWindow.PeekChar(1) == '>') 3303if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3524if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4047if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4092if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4115if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4169if (TextWindow.PeekChar(1) == '-') 4171if (TextWindow.PeekChar(2) == '>') 4222if (TextWindow.PeekChar(1) == '-') 4245if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4300if (TextWindow.PeekChar(1) == '>') 4346if (TextWindow.PeekChar(1) == '>') 4369if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4406&& TextWindow.PeekChar(1) == '*' 4407&& TextWindow.PeekChar(2) == '*' 4408&& TextWindow.PeekChar(3) != '*') 4437if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4451while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4466if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4514if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4571if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4599var ch2 = TextWindow.PeekChar(1); 4640var 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 (2)
304return GetNewLineWidth(this.PeekChar(), this.PeekChar(1)); 387if (PeekChar(i) != desired[i])