We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d802ca9 commit 38e3cffCopy full SHA for 38e3cff
gcc/rust/parse/rust-parse.h
@@ -725,6 +725,7 @@ template <typename ManagedTokenSource> class Parser
725
const ManagedTokenSource &get_token_source () const { return lexer; }
726
727
const_TokenPtr peek_current_token () { return lexer.peek_token (0); }
728
+ const_TokenPtr peek (int n) { return lexer.peek_token (n); }
729
730
private:
731
// The token source (usually lexer) associated with the parser.
0 commit comments