(node: Node)
| 1717 | } |
| 1718 | |
| 1719 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1720 | for child in node.named_children(&mut node.walk()) { |
| 1721 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1722 | return Some(child); |
| 1723 | } |
| 1724 | } |
| 1725 | None |
| 1726 | } |
| 1727 | |
| 1728 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1729 | /// anonymous-class extraction: strip `<...` from the first `<` (index > 0), |
no test coverage detected