codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

fix(extraction): extract type refs from interface property_signature …

Open TheKenS opened this issue 6 months ago • 0 comments

…type annotations

Types that appear only in interface property signatures (e.g. value?: Partial<IPage>) were not producing UnresolvedReferences, so the resolver never built references edges for them. Impact analysis consequently missed files that import-type only these interface-property types.

Add a property_signature branch in visitNode: when inside a class-like node (includes interfaces) and the language supports type annotations, call extractTypeAnnotations with the parent (interface) node ID as the edge source. No property node is created — only unresolved references.

TheKenS avatar May 26 '26 07:05 TheKenS