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)) == '*') 2205Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2216else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2595if (TextWindow.PeekChar(1) == '&') 2605if (TextWindow.PeekChar(1) == '|') 2725if (TextWindow.PeekChar(1) == '/') 2872if (TextWindow.PeekChar(1) == '!') 2874if (TextWindow.PeekChar(2) == '-' 2875&& TextWindow.PeekChar(3) == '-') 2880else if (TextWindow.PeekChar(2) == '[' 2881&& TextWindow.PeekChar(3) == 'C' 2882&& TextWindow.PeekChar(4) == 'D' 2883&& TextWindow.PeekChar(5) == 'A' 2884&& TextWindow.PeekChar(6) == 'T' 2885&& TextWindow.PeekChar(7) == 'A' 2886&& TextWindow.PeekChar(8) == '[') 2898else if (TextWindow.PeekChar(1) == '/') 2903else if (TextWindow.PeekChar(1) == '?') 3087if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3116if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3126if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3199if (TextWindow.PeekChar(1) == '>') 3243if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3464if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3987if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4032if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4055if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4109if (TextWindow.PeekChar(1) == '-') 4111if (TextWindow.PeekChar(2) == '>') 4162if (TextWindow.PeekChar(1) == '-') 4185if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4240if (TextWindow.PeekChar(1) == '>') 4286if (TextWindow.PeekChar(1) == '>') 4309if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4346&& TextWindow.PeekChar(1) == '*' 4347&& TextWindow.PeekChar(2) == '*' 4348&& TextWindow.PeekChar(3) != '*') 4377if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4391while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4406if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4454if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4511if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4539var ch2 = TextWindow.PeekChar(1); 4580var 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])