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) 2648if (TextWindow.PeekChar(1) == '&') 2658if (TextWindow.PeekChar(1) == '|') 2778if (TextWindow.PeekChar(1) == '/') 2925if (TextWindow.PeekChar(1) == '!') 2927if (TextWindow.PeekChar(2) == '-' 2928&& TextWindow.PeekChar(3) == '-') 2933else if (TextWindow.PeekChar(2) == '[' 2934&& TextWindow.PeekChar(3) == 'C' 2935&& TextWindow.PeekChar(4) == 'D' 2936&& TextWindow.PeekChar(5) == 'A' 2937&& TextWindow.PeekChar(6) == 'T' 2938&& TextWindow.PeekChar(7) == 'A' 2939&& TextWindow.PeekChar(8) == '[') 2951else if (TextWindow.PeekChar(1) == '/') 2956else if (TextWindow.PeekChar(1) == '?') 3140if (TextWindow.PeekChar() == ']' && TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3169if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3179if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 3252if (TextWindow.PeekChar(1) == '>') 3296if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 3517if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4040if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4085if (TextWindow.PeekChar(1) == ']' && TextWindow.PeekChar(2) == '>') 4108if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4162if (TextWindow.PeekChar(1) == '-') 4164if (TextWindow.PeekChar(2) == '>') 4215if (TextWindow.PeekChar(1) == '-') 4238if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4293if (TextWindow.PeekChar(1) == '>') 4339if (TextWindow.PeekChar(1) == '>') 4362if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4399&& TextWindow.PeekChar(1) == '*' 4400&& TextWindow.PeekChar(2) == '*' 4401&& TextWindow.PeekChar(3) != '*') 4430if (this.StyleIs(XmlDocCommentStyle.SingleLine) && TextWindow.PeekChar(1) == '/' && TextWindow.PeekChar(2) == '/' && TextWindow.PeekChar(3) != '/') 4444while (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) != '/') 4459if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4507if (TextWindow.PeekChar() == '*' && TextWindow.PeekChar(1) == '/') 4564if (this.StyleIs(XmlDocCommentStyle.Delimited) && TextWindow.PeekChar(1) == '/') 4592var ch2 = TextWindow.PeekChar(1); 4633var 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])