Check if a token should be included based on configuration.
(&self, kind: TokenKind)
| 556 | |
| 557 | /// Check if a token should be included based on configuration. |
| 558 | fn should_include_token(&self, kind: TokenKind) -> bool { |
| 559 | if !self.config.include_whitespace { |
| 560 | return kind != TokenKind::Whitespace && kind != TokenKind::Newline; |
| 561 | } |
| 562 | true |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | // Convenience Functions |
no outgoing calls
no test coverage detected