mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
rename bump -> bump_any
This commit is contained in:
parent
c3d96f64ef
commit
e2b378ef7e
16 changed files with 132 additions and 132 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue