Context
Identified during review of PR #1495.
In src/extractors/javascript.ts and crates/codegraph-core/src/extractors/javascript.rs, handleFieldDefTypeMap / the field_definition handler has two branches:
Some(class_name) — class declaration: seeds ClassName.field @ 0.9 + bare keys @ 0.6
None — class expression: seeds bare keys only at full confidence (0.9)
Neither engine has a test covering the None (class expression) path: const Foo = class { private repo: Repo; } should produce repo @ 0.9 and this.repo @ 0.9 but NOT Foo.repo. This is new behavior introduced by PR #1495 and is currently untested in both TS and Rust.
Context
Identified during review of PR #1495.
In
src/extractors/javascript.tsandcrates/codegraph-core/src/extractors/javascript.rs,handleFieldDefTypeMap/ thefield_definitionhandler has two branches:Some(class_name)— class declaration: seedsClassName.field @ 0.9+ bare keys @ 0.6None— class expression: seeds bare keys only at full confidence (0.9)Neither engine has a test covering the
None(class expression) path:const Foo = class { private repo: Repo; }should producerepo @ 0.9andthis.repo @ 0.9but NOTFoo.repo. This is new behavior introduced by PR #1495 and is currently untested in both TS and Rust.