dartConstructorSignature (dart.ts:25-35).
(&self, node: Node<'t>)
| 513 | |
| 514 | /// dartConstructorSignature (dart.ts:25-35). |
| 515 | fn constructor_signature(&self, node: Node<'t>) -> Option<Node<'t>> { |
| 516 | if matches!(node.kind(), "factory_constructor_signature" | "constructor_signature") |
| 517 | || is_bodiless_ctor(node.kind()) |
| 518 | { |
| 519 | return Some(node); |
| 520 | } |
| 521 | if node.kind() == "method_signature" { |
| 522 | let mut cursor = node.walk(); |
| 523 | return node.named_children(&mut cursor).find(|c| { |
| 524 | matches!(c.kind(), "factory_constructor_signature" | "constructor_signature") |
| 525 | }); |
| 526 | } |
| 527 | None |
| 528 | } |
| 529 | |
| 530 | /// dartEnclosingTypeName (dart.ts:38-50). |
| 531 | fn enclosing_type_name(&self, node: Node<'t>) -> Option<&'t str> { |
no test coverage detected