(node: Node)
| 1665 | } |
| 1666 | |
| 1667 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1668 | for child in node.named_children(&mut node.walk()) { |
| 1669 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1670 | return Some(child); |
| 1671 | } |
| 1672 | } |
| 1673 | None |
| 1674 | } |
| 1675 | |
| 1676 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1677 | /// anonymous-class / decorator extraction: strip `<...` from the first `<` |
no test coverage detected