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) 2632if (TextWindow.PeekChar(1) == '&') 2642if (TextWindow.PeekChar(1) == '|') 2762if (TextWindow.PeekChar(1) == '/') 2909if (TextWindow.PeekChar(1) == '!') 2911if (TextWindow.PeekChar(2) == '-' 2912&& TextWindow.PeekChar(3) == '-') 2917else if (TextWindow.PeekChar(2) == '[' 2918&& TextWindow.PeekChar(3) == 'C' 2919&& TextWindow.PeekChar(4) == 'D' 2920&& TextWindow.PeekChar(5) == 'A' 2921&& TextWindow.PeekChar(6) == 'T' 2922&& TextWindow.PeekChar(7) == 'A' 2923&& TextWindow.PeekChar(8) == '[') 2935else if (TextWindow.PeekChar(1) == '/') 2940else if (TextWindow.PeekChar(1) == '?') 3124if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3153if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3163if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3236if (TextWindow.PeekChar(1) == '>') 3280if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3501if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4024if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4069if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4092if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4146if (TextWindow.PeekChar(1) == '-') 4148if (TextWindow.PeekChar(2) == '>') 4199if (TextWindow.PeekChar(1) == '-') 4222if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4277if (TextWindow.PeekChar(1) == '>') 4323if (TextWindow.PeekChar(1) == '>') 4346if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4383&& TextWindow.PeekChar(1) == '*' 4384&& TextWindow.PeekChar(2) == '*' 4385&& TextWindow.PeekChar(3) != '*') 4414if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4428while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4443if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4491if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4548if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4576var ch2 = TextWindow.PeekChar(1); 4617var 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])