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