(node: Node)
| 1727 | } |
| 1728 | |
| 1729 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1730 | for i in 0..node.named_child_count() { |
| 1731 | if let Some(child) = node.named_child(i) { |
| 1732 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1733 | return Some(child); |
| 1734 | } |
| 1735 | } |
| 1736 | } |
| 1737 | None |
| 1738 | } |
| 1739 | |
| 1740 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1741 | /// anonymous-class extraction: strip `<...` from the first `<` (index > 0), |
no outgoing calls
no test coverage detected