(node: Node)
| 1580 | } |
| 1581 | |
| 1582 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1583 | for i in 0..node.named_child_count() { |
| 1584 | if let Some(child) = node.named_child(i) { |
| 1585 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1586 | return Some(child); |
| 1587 | } |
| 1588 | } |
| 1589 | } |
| 1590 | None |
| 1591 | } |
| 1592 | |
| 1593 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1594 | /// anonymous-class extraction: strip `<...` from the first `<` (index > 0), |
no outgoing calls
no test coverage detected