This commit is contained in:
Aleksey Kladov 2018-09-08 10:38:53 +03:00
parent febbc9acdd
commit 749907d330
5 changed files with 14 additions and 9 deletions

View file

@ -35,6 +35,11 @@ impl<'t> Parser<'t> {
self.current() == kind
}
/// Checks if the current token is `kind`.
pub(crate) fn at_ts(&self, kinds: TokenSet) -> bool {
kinds.contains(self.current())
}
pub(crate) fn next2(&self) -> Option<(SyntaxKind, SyntaxKind)> {
self.0.next2()
}