Would emitting `next` immediately after `last_token` change tokenisation?
(&self, next: Token)
| 31 | |
| 32 | /// Would emitting `next` immediately after `last_token` change tokenisation? |
| 33 | fn needs_separator(&self, next: Token) -> bool { |
| 34 | self.last_token.is_some_and(|t| t.needs_separator_for(next)) |
| 35 | } |
| 36 | |
| 37 | /// True when the previously-emitted token never needs a separator after it |
| 38 | /// (e.g. `,`, `)`, `{`). Whitespace can be dropped and re-injection skipped. |
no test coverage detected