isMisparsedFunction (dart.ts:177-188) — skip the UNNAMED constructor, and a `const` ctor / redirecting factory that names no enclosing type (error recovery's).
(&self, node: Node<'t>)
| 540 | /// and a `const` ctor / redirecting factory that names no enclosing type |
| 541 | /// (error recovery's). |
| 542 | fn is_misparsed_function(&self, node: Node<'t>) -> bool { |
| 543 | match self.ctor_info(node) { |
| 544 | Some((class_name, ctor_name)) => ctor_name == class_name, |
| 545 | None => is_bodiless_ctor(node.kind()), |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | /// getSignature (dart.ts:189-208). |
| 550 | fn signature_of(&self, node: Node<'t>) -> Option<String> { |
no test coverage detected