(node: Node)
| 1481 | } |
| 1482 | |
| 1483 | fn find_anonymous_class_body(node: Node) -> Option<Node> { |
| 1484 | for i in 0..node.named_child_count() { |
| 1485 | if let Some(child) = node.named_child(i) { |
| 1486 | if matches!(child.kind(), "class_body" | "declaration_list") { |
| 1487 | return Some(child); |
| 1488 | } |
| 1489 | } |
| 1490 | } |
| 1491 | None |
| 1492 | } |
| 1493 | |
| 1494 | /// The shared `new ns.Foo<T>()` normalization: strip `<...` from the first |
| 1495 | /// `<` (index > 0), keep the segment after the last `.`/`::`, strip ONE |
no outgoing calls
no test coverage detected