(node: Node)
| 1790 | } |
| 1791 | |
| 1792 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1793 | for i in 0..node.named_child_count() { |
| 1794 | if let Some(child) = node.named_child(i) { |
| 1795 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1796 | return Some(child); |
| 1797 | } |
| 1798 | } |
| 1799 | } |
| 1800 | None |
| 1801 | } |
| 1802 | |
| 1803 | /// The shared `new ns.Foo<T>()` normalization: strip `<...` from the first |
| 1804 | /// `<` (index > 0), keep the segment after the last `.`/`::`, strip ONE |
no outgoing calls
no test coverage detected