rename bump -> bump_any

This commit is contained in:
Aleksey Kladov 2019-09-10 00:59:29 +03:00
parent c3d96f64ef
commit e2b378ef7e
16 changed files with 132 additions and 132 deletions

View file

@ -148,7 +148,7 @@ impl<'t> Parser<'t> {
}
/// Advances the parser by one token with composite puncts handled
pub(crate) fn bump(&mut self) {
pub(crate) fn bump_any(&mut self) {
let kind = self.nth(0);
if kind == EOF {
return;
@ -205,7 +205,7 @@ impl<'t> Parser<'t> {
if !self.at(kind) {
return false;
}
self.bump();
self.bump_any();
true
}
@ -231,7 +231,7 @@ impl<'t> Parser<'t> {
} else {
let m = self.start();
self.error(message);
self.bump();
self.bump_any();
m.complete(self, ERROR);
};
}