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