(node: Node)
| 1758 | } |
| 1759 | |
| 1760 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1761 | for child in node.named_children(&mut node.walk()) { |
| 1762 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1763 | return Some(child); |
| 1764 | } |
| 1765 | } |
| 1766 | None |
| 1767 | } |
| 1768 | |
| 1769 | /// The shared `new ns.Foo<T>()` normalization: strip `<...` from the first |
| 1770 | /// `<` (index > 0), keep the segment after the last `.`/`::`, strip ONE |
no test coverage detected