83 references to PeekChar
Microsoft.CodeAnalysis.CSharp (83)
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); 1501(char.ToLower(TextWindow.PeekChar(1)) == 'x')) 1535if (_identLen == 0 && this.ModeIs(LexerMode.DebuggerSyntax) && TextWindow.PeekChar(1) == '>') 1926if ((ch = TextWindow.PeekChar(1)) == '/') 1928if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 1948if (!this.SuppressDocumentationCommentParse && TextWindow.PeekChar(2) == '*' && 1949TextWindow.PeekChar(3) != '*' && TextWindow.PeekChar(3) != '/') 1970if ((ch = TextWindow.PeekChar(1)) == '*') 2230Debug.Assert(TextWindow.PeekChar() == delimiter && TextWindow.PeekChar(1) == '*'); 2241else if (ch == '*' && TextWindow.PeekChar(1) == delimiter) 2650if (TextWindow.PeekChar(1) == '&') 2660if (TextWindow.PeekChar(1) == '|') 2780if (TextWindow.PeekChar(1) == '/') 2927if (TextWindow.PeekChar(1) == '!') 2929if (TextWindow.PeekChar(2) == '-' 2930&& TextWindow.PeekChar(3) == '-') 2935else if (TextWindow.PeekChar(2) == '[' 2936&& TextWindow.PeekChar(3) == 'C' 2937&& TextWindow.PeekChar(4) == 'D' 2938&& TextWindow.PeekChar(5) == 'A' 2939&& TextWindow.PeekChar(6) == 'T' 2940&& TextWindow.PeekChar(7) == 'A' 2941&& TextWindow.PeekChar(8) == '[') 2953else if (TextWindow.PeekChar(1) == '/') 2958else if (TextWindow.PeekChar(1) == '?') 3142if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3171if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3181if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3254if (TextWindow.PeekChar(1) == '>') 3298if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3519if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4042if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4087if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4110if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4164if (TextWindow.PeekChar(1) == '-') 4166if (TextWindow.PeekChar(2) == '>') 4217if (TextWindow.PeekChar(1) == '-') 4240if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4295if (TextWindow.PeekChar(1) == '>') 4341if (TextWindow.PeekChar(1) == '>') 4364if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4401&& TextWindow.PeekChar(1) == '*' 4402&& TextWindow.PeekChar(2) == '*' 4403&& TextWindow.PeekChar(3) != '*') 4432if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4446while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4461if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4509if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4566if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4594var ch2 = TextWindow.PeekChar(1); 4635var 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)
300return GetNewLineWidth(this.PeekChar(), this.PeekChar(1)); 402if (PeekChar(i) != desired[i])