(node: Node)
| 1548 | } |
| 1549 | |
| 1550 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1551 | for i in 0..node.named_child_count() { |
| 1552 | if let Some(child) = node.named_child(i) { |
| 1553 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1554 | return Some(child); |
| 1555 | } |
| 1556 | } |
| 1557 | } |
| 1558 | None |
| 1559 | } |
| 1560 | |
| 1561 | /// The `new ns.Foo<T>()` name normalization shared by instantiation / |
| 1562 | /// anonymous-class / decorator extraction: strip `<...` from the first `<` |
no outgoing calls
no test coverage detected