True when the previously-emitted token never needs a separator after it (e.g. `,`, `)`, `{`). Whitespace can be dropped and re-injection skipped.
(&self)
| 37 | /// True when the previously-emitted token never needs a separator after it |
| 38 | /// (e.g. `,`, `)`, `{`). Whitespace can be dropped and re-injection skipped. |
| 39 | fn last_forbids_ws_after(&self) -> bool { |
| 40 | self.last_token.is_some_and(|t| t == NO_WHITESPACE_AFTER_KINDSET) |
| 41 | } |
| 42 | |
| 43 | fn emit(&mut self, c: SourceCursor<'a>) { |
| 44 | self.last_token = Some(c.token()); |