diff options
Diffstat (limited to 'crates/ra_parser/src/parser.rs')
-rw-r--r-- | crates/ra_parser/src/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs index 393586561..ccacaacad 100644 --- a/crates/ra_parser/src/parser.rs +++ b/crates/ra_parser/src/parser.rs | |||
@@ -148,7 +148,7 @@ impl<'t> Parser<'t> { | |||
148 | } | 148 | } |
149 | 149 | ||
150 | /// Advances the parser by one token with composite puncts handled | 150 | /// Advances the parser by one token with composite puncts handled |
151 | pub(crate) fn bump(&mut self) { | 151 | pub(crate) fn bump_any(&mut self) { |
152 | let kind = self.nth(0); | 152 | let kind = self.nth(0); |
153 | if kind == EOF { | 153 | if kind == EOF { |
154 | return; | 154 | return; |
@@ -205,7 +205,7 @@ impl<'t> Parser<'t> { | |||
205 | if !self.at(kind) { | 205 | if !self.at(kind) { |
206 | return false; | 206 | return false; |
207 | } | 207 | } |
208 | self.bump(); | 208 | self.bump_any(); |
209 | true | 209 | true |
210 | } | 210 | } |
211 | 211 | ||
@@ -231,7 +231,7 @@ impl<'t> Parser<'t> { | |||
231 | } else { | 231 | } else { |
232 | let m = self.start(); | 232 | let m = self.start(); |
233 | self.error(message); | 233 | self.error(message); |
234 | self.bump(); | 234 | self.bump_any(); |
235 | m.complete(self, ERROR); | 235 | m.complete(self, ERROR); |
236 | }; | 236 | }; |
237 | } | 237 | } |