84 references to PeekChar
Microsoft.CodeAnalysis.CSharp (84)
Parser\Lexer.cs (66)
466if (this.TextWindow.PeekChar(1) is >= '0' and <= '9') 631if (TextWindow.PeekChar(1) == ':') 756while (TextWindow.PeekChar(index) == '@') 761if (TextWindow.PeekChar(index) == '"') 767else if (TextWindow.PeekChar(index) == '$') 781if (TextWindow.PeekChar(1) is '$' or '@' or '"') 879ch = TextWindow.PeekChar(1); 936var ch2 = TextWindow.PeekChar(1); 1497(char.ToLower(TextWindow.PeekChar(1)) == 'x')) 1531if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.PeekChar(1) == '>') 1922if ((ch = TextWindow.PeekChar(1)) == '/') 1924if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 1944if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '*' && 1945TextWindow.PeekChar(3) != '*' && TextWindow.PeekChar(3) != '/') 1966if ((ch = TextWindow.PeekChar(1)) == '*') 2226Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2237else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2642if (TextWindow.PeekChar(1) == '&') 2652if (TextWindow.PeekChar(1) == '|') 2772if (TextWindow.PeekChar(1) == '/') 2919if (TextWindow.PeekChar(1) == '!') 2921if (TextWindow.PeekChar(2) == '-' 2922&& TextWindow.PeekChar(3) == '-') 2927else if (TextWindow.PeekChar(2) == '[' 2928&& TextWindow.PeekChar(3) == 'C' 2929&& TextWindow.PeekChar(4) == 'D' 2930&& TextWindow.PeekChar(5) == 'A' 2931&& TextWindow.PeekChar(6) == 'T' 2932&& TextWindow.PeekChar(7) == 'A' 2933&& TextWindow.PeekChar(8) == '[') 2945else if (TextWindow.PeekChar(1) == '/') 2950else if (TextWindow.PeekChar(1) == '?') 3134if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3163if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3173if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3246if (TextWindow.PeekChar(1) == '>') 3290if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3511if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4034if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4079if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4102if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4156if (TextWindow.PeekChar(1) == '-') 4158if (TextWindow.PeekChar(2) == '>') 4209if (TextWindow.PeekChar(1) == '-') 4232if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4287if (TextWindow.PeekChar(1) == '>') 4333if (TextWindow.PeekChar(1) == '>') 4356if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4393&& TextWindow.PeekChar(1) == '*' 4394&& TextWindow.PeekChar(2) == '*' 4395&& TextWindow.PeekChar(3) != '*') 4424if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4438while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4453if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4501if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4558if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4586var ch2 = TextWindow.PeekChar(1); 4627var 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])