83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
Parser\Lexer.cs (66)
462if (this.TextWindow.PeekChar(1) is >= '0' and <= '9') 632if (TextWindow.PeekChar(1) == ':') 757while (TextWindow.PeekChar(index) == '@') 762if (TextWindow.PeekChar(index) == '"') 768else if (TextWindow.PeekChar(index) == '$') 782if (TextWindow.PeekChar(1) is '$' or '@' or '"') 880ch = TextWindow.PeekChar(1); 937var ch2 = TextWindow.PeekChar(1); 1502(char.ToLower(TextWindow.PeekChar(1)) == 'x')) 1536if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.PeekChar(1) == '>') 1927if ((ch = TextWindow.PeekChar(1)) == '/') 1929if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 1949if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '*' && 1950TextWindow.PeekChar(3) != '*' && TextWindow.PeekChar(3) != '/') 1971if ((ch = TextWindow.PeekChar(1)) == '*') 2231Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2242else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2628if (TextWindow.PeekChar(1) == '&') 2638if (TextWindow.PeekChar(1) == '|') 2758if (TextWindow.PeekChar(1) == '/') 2905if (TextWindow.PeekChar(1) == '!') 2907if (TextWindow.PeekChar(2) == '-' 2908&& TextWindow.PeekChar(3) == '-') 2913else if (TextWindow.PeekChar(2) == '[' 2914&& TextWindow.PeekChar(3) == 'C' 2915&& TextWindow.PeekChar(4) == 'D' 2916&& TextWindow.PeekChar(5) == 'A' 2917&& TextWindow.PeekChar(6) == 'T' 2918&& TextWindow.PeekChar(7) == 'A' 2919&& TextWindow.PeekChar(8) == '[') 2931else if (TextWindow.PeekChar(1) == '/') 2936else if (TextWindow.PeekChar(1) == '?') 3120if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3149if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3159if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3232if (TextWindow.PeekChar(1) == '>') 3276if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3497if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4020if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4065if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4088if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4142if (TextWindow.PeekChar(1) == '-') 4144if (TextWindow.PeekChar(2) == '>') 4195if (TextWindow.PeekChar(1) == '-') 4218if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4273if (TextWindow.PeekChar(1) == '>') 4319if (TextWindow.PeekChar(1) == '>') 4342if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4379&& TextWindow.PeekChar(1) == '*' 4380&& TextWindow.PeekChar(2) == '*' 4381&& TextWindow.PeekChar(3) != '*') 4410if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4424while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4439if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4487if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4544if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4572var ch2 = TextWindow.PeekChar(1); 4613var 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])