Check if a token matches a pattern token (ignoring content for parameterized variants).
(token: &Token, pattern: &Token)
| 7 | |
| 8 | /// Check if a token matches a pattern token (ignoring content for parameterized variants). |
| 9 | pub(super) fn token_matches(token: &Token, pattern: &Token) -> bool { |
| 10 | std::mem::discriminant(token) == std::mem::discriminant(pattern) |
| 11 | } |
| 12 | |
| 13 | pub(super) fn skip_token( |
| 14 | tokens: &[Token], |
no outgoing calls
no test coverage detected