diff options
author | Aleksey Kladov <[email protected]> | 2018-08-23 22:48:10 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-23 22:48:10 +0100 |
commit | cf7d4a2a243cac1975b9b28d47ed91a6bd01b34f (patch) | |
tree | 0a1730599ff089623b3bb1946fc061f124f2e410 /crates/libsyntax2/src/parser_api.rs | |
parent | dd64a155e9dd24fd2a81f8c634fdb396632de472 (diff) |
Simplify
Diffstat (limited to 'crates/libsyntax2/src/parser_api.rs')
-rw-r--r-- | crates/libsyntax2/src/parser_api.rs | 8 |
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`. |