dartConstructorSignature (dart.ts:25-35).
(&self, node: Node<'t>)
| 380 | |
| 381 | /// dartConstructorSignature (dart.ts:25-35). |
| 382 | fn constructor_signature(&self, node: Node<'t>) -> Option<Node<'t>> { |
| 383 | if matches!(node.kind(), "factory_constructor_signature" | "constructor_signature") { |
| 384 | return Some(node); |
| 385 | } |
| 386 | if node.kind() == "method_signature" { |
| 387 | let mut cursor = node.walk(); |
| 388 | return node.named_children(&mut cursor).find(|c| { |
| 389 | matches!(c.kind(), "factory_constructor_signature" | "constructor_signature") |
| 390 | }); |
| 391 | } |
| 392 | None |
| 393 | } |
| 394 | |
| 395 | /// dartEnclosingTypeName (dart.ts:38-50). |
| 396 | fn enclosing_type_name(&self, node: Node<'t>) -> Option<&'t str> { |