(node: Node)
| 1567 | } |
| 1568 | |
| 1569 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1570 | for i in 0..node.named_child_count() { |
| 1571 | if let Some(child) = node.named_child(i) { |
| 1572 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1573 | return Some(child); |
| 1574 | } |
| 1575 | } |
| 1576 | } |
| 1577 | None |
| 1578 | } |
| 1579 | |
| 1580 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1581 | /// anonymous-class extraction: strip `<...` from the first `<` (index > 0), |
no outgoing calls
no test coverage detected