aboutsummaryrefslogtreecommitdiff
path: root/src/parser_api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser_api.rs')
-rw-r--r--src/parser_api.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser_api.rs b/src/parser_api.rs
index fef21c5fd..c739b1321 100644
--- a/src/parser_api.rs
+++ b/src/parser_api.rs
@@ -62,6 +62,10 @@ impl<'t> Parser<'t> {
62 self.0.at_compound2(c1, c2) 62 self.0.at_compound2(c1, c2)
63 } 63 }
64 64
65 pub(crate) fn at_compound3(&self, c1: SyntaxKind, c2: SyntaxKind, c3: SyntaxKind) -> bool {
66 self.0.at_compound3(c1, c2, c3)
67 }
68
65 /// Checks if the current token is contextual keyword with text `t`. 69 /// Checks if the current token is contextual keyword with text `t`.
66 pub(crate) fn at_contextual_kw(&self, t: &str) -> bool { 70 pub(crate) fn at_contextual_kw(&self, t: &str) -> bool {
67 self.0.at_kw(t) 71 self.0.at_kw(t)