MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_misparsed_function

Method is_misparsed_function

codegraph-kernel/src/dart.rs:542–547  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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> {

Callers 2

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 2

is_bodiless_ctorFunction · 0.85
ctor_infoMethod · 0.80

Tested by

no test coverage detected