(node: Node<'_>)
| 6 | use std::collections::BTreeSet; |
| 7 | |
| 8 | pub(super) fn literal(node: Node<'_>) -> bool { |
| 9 | let kind = node.kind(); |
| 10 | (kind.contains("string") || kind.contains("char_literal") || kind == "template_string") |
| 11 | && !named(node).iter().any(|child| { |
| 12 | child.kind().contains("interpolation") || child.kind().contains("substitution") |
| 13 | }) |
| 14 | } |
| 15 | |
| 16 | pub(super) fn class_like(node: Node<'_>, language: Language) -> bool { |
| 17 | match language { |
no test coverage detected