aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/parser_api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/parser_api.rs')
-rw-r--r--crates/libsyntax2/src/parser_api.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/libsyntax2/src/parser_api.rs b/crates/libsyntax2/src/parser_api.rs
index c78c6e43a..bb34fe973 100644
--- a/crates/libsyntax2/src/parser_api.rs
+++ b/crates/libsyntax2/src/parser_api.rs
@@ -68,12 +68,12 @@ impl<'t> Parser<'t> {
68 self.current() == kind 68 self.current() == kind
69 } 69 }
70 70
71 pub(crate) fn at_compound2(&self, c1: SyntaxKind, c2: SyntaxKind) -> bool { 71 pub(crate) fn next2(&self) -> Option<(SyntaxKind, SyntaxKind)> {
72 self.0.at_compound2(c1, c2) 72 self.0.next2()
73 } 73 }
74 74
75 pub(crate) fn at_compound3(&self, c1: SyntaxKind, c2: SyntaxKind, c3: SyntaxKind) -> bool { 75 pub(crate) fn next3(&self) -> Option<(SyntaxKind, SyntaxKind, SyntaxKind)> {
76 self.0.at_compound3(c1, c2, c3) 76 self.0.next3()
77 } 77 }
78 78
79 /// Checks if the current token is contextual keyword with text `t`. 79 /// Checks if the current token is contextual keyword with text `t`.