(&self, other: &Self)
| 14 | // Implement for Cursor - compare tokens without considering source offset |
| 15 | impl SemanticEq for Cursor { |
| 16 | fn semantic_eq(&self, other: &Self) -> bool { |
| 17 | // For Delims, we ignore associated whitespace rules since |
| 18 | // those are formatting hints, not semantic content |
| 19 | match self.token().kind() { |
| 20 | Kind::Delim => { |
| 21 | self.token().with_associated_whitespace(css_lexer::AssociatedWhitespaceRules::none()) |
| 22 | == other.token().with_associated_whitespace(css_lexer::AssociatedWhitespaceRules::none()) |
| 23 | } |
| 24 | _ => self.token() == other.token(), |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | impl<T> SemanticEq for Option<T> |
nothing calls this directly
no test coverage detected