Syntactic sugar to instantiate a `TokenSpan` for testing.
(token: Token, line: usize, col: usize, length: usize)
| 788 | |
| 789 | /// Syntactic sugar to instantiate a `TokenSpan` for testing. |
| 790 | fn ts(token: Token, line: usize, col: usize, length: usize) -> TokenSpan { |
| 791 | TokenSpan::new(token, LineCol { line, col }, length) |
| 792 | } |
| 793 | |
| 794 | impl fmt::Debug for TokenSpan { |
| 795 | /// Mimic the way we write the tests with the `ts` helper in `TokenSpan` dumps. |
no outgoing calls