Files
codegraph/__tests__
Colby McHenry b538aee853 feat(impact): Rust cross-module coverage — struct literals, trait dispatch, use-binding linking
Continues the cross-language blast-radius work for Rust (ripgrep 63%->81%,
tokio src 70%->83% file-dependent coverage).

- Struct literals: add `struct_expression` to the instantiation kinds so
  `Widget { n: 1 }` / `m::Widget { .. }` record an `instantiates` edge.
- Trait dispatch (#584 for Rust): extract trait method declarations
  (`function_signature_item`) as method nodes so a trait's method set is
  first-class, and enable Rust in the interface-override bridge — a struct's
  explicit `impl Trait for T` now links `Trait.method -> impl.method`, so a type
  reached only through `&dyn Trait` gets dependents.
- `use` / `pub use` binding linking: emit the leaf binding of each use path so a
  `pub use self::sub::Item` re-export hub depends on the module it re-exports
  (the largest lever) and items imported but used in non-call positions link.

Known remaining Rust frontier: common-name re-export collisions
(`pub use self::read::read`) need Rust module-path resolution; plus macros and
external-trait-only impls. New tests + CHANGELOG.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 23:37:41 -04:00
..