We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_keyword_ahead
1 parent f88cf02 commit 274824bCopy full SHA for 274824b
compiler/rustc_parse/src/parser/mod.rs
@@ -1115,7 +1115,7 @@ impl<'a> Parser<'a> {
1115
}
1116
1117
/// Returns whether any of the given keywords are `dist` tokens ahead of the current one.
1118
- pub fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
+ pub(crate) fn is_keyword_ahead(&self, dist: usize, kws: &[Symbol]) -> bool {
1119
self.look_ahead(dist, |t| kws.iter().any(|&kw| t.is_keyword(kw)))
1120
1121
0 commit comments