dartConstructorSignature (dart.ts:25-35).
(&self, node: Node<'t>)
| 468 | |
| 469 | /// dartConstructorSignature (dart.ts:25-35). |
| 470 | fn constructor_signature(&self, node: Node<'t>) -> Option<Node<'t>> { |
| 471 | if matches!(node.kind(), "factory_constructor_signature" | "constructor_signature") |
| 472 | || is_bodiless_ctor(node.kind()) |
| 473 | { |
| 474 | return Some(node); |
| 475 | } |
| 476 | if node.kind() == "method_signature" { |
| 477 | let mut cursor = node.walk(); |
| 478 | return node.named_children(&mut cursor).find(|c| { |
| 479 | matches!(c.kind(), "factory_constructor_signature" | "constructor_signature") |
| 480 | }); |
| 481 | } |
| 482 | None |
| 483 | } |
| 484 | |
| 485 | /// dartEnclosingTypeName (dart.ts:38-50). |
| 486 | fn enclosing_type_name(&self, node: Node<'t>) -> Option<&'t str> { |
no test coverage detected