(&self)
| 378 | } |
| 379 | |
| 380 | fn missing_node_range(&self) -> TextRange { |
| 381 | // TODO(dhruvmanila): This range depends on whether the missing node is |
| 382 | // on the leftmost or the rightmost of the expression. It's incorrect for |
| 383 | // the leftmost missing node because the range is outside the expression |
| 384 | // range. For example, |
| 385 | // |
| 386 | // ```python |
| 387 | // value = ** y |
| 388 | // # ^^^^ expression range |
| 389 | // # ^ last token end |
| 390 | // ``` |
| 391 | TextRange::empty(self.prev_token_end) |
| 392 | } |
| 393 | |
| 394 | /// Moves the parser to the next token. |
| 395 | fn do_bump(&mut self, kind: TokenKind) { |
no test coverage detected