(node: Node)
| 1755 | } |
| 1756 | |
| 1757 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1758 | for i in 0..node.named_child_count() { |
| 1759 | if let Some(child) = node.named_child(i) { |
| 1760 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1761 | return Some(child); |
| 1762 | } |
| 1763 | } |
| 1764 | } |
| 1765 | None |
| 1766 | } |
| 1767 | |
| 1768 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1769 | /// anonymous-class extraction: strip `<...` from the first `<` (index > 0), |
no outgoing calls
no test coverage detected