GitNexus/gitnexus/test/integration/resolvers
Gergo Magyar 76ed0fa53b fix: address PR #409 review findings (P0-P3) and simplify import resolution API
Bug fixes (P0):
- Narrow Go /cmd/ entry-point detection to only match /main.go
- Fix Rust scoped grouped imports (use crate::models::{User, Repo}) resolution
- Filter PHP use function/use const from class-type namedImportMap bindings

Improvements (P1):
- Add C# resolveStandard fallback when .csproj discovery fails
- Change preprocessImportPath return type to string | null with caller guards
- Add Q_SIGNALS/Q_SLOTS (standard plural Qt macros)
- Fix stale "11 supported languages" comment → 13

API simplification (P2):
- Replace buildImportResolvers() factory with const importResolvers table
- Move configs onto ResolveCtx (extends ImportResolutionContext)
- Eliminate tsconfigPaths parameter threading through 6 non-TS resolvers
- Split utils.ts (1,476 lines) into ast-helpers.ts + call-analysis.ts + utils.ts
- Consolidate findChild/findChildByType into single source of truth
- Match multi-file import bindings to files by basename for namedImportMap

Cleanup (P3):
- EMPTY_INDEX returns shared frozen empty array instead of allocating per call
- Type appendKotlinWildcard parameter as SyntaxNode instead of any
- Document call-routing validation requirement on CallRouter type

Tests:
- Add unit tests for preprocessImportPath (13 tests)
- Add integration tests: Rust scoped multi-file, PHP use function/const,
  C# without .csproj, Go cmd/ helper scoring (14 tests, 4 fixtures)

All 3579 tests pass.
2026-03-21 14:15:15 +00:00
..
cpp.test.ts feat: implement cross-file binding propagation for multiple languages 2026-03-21 07:47:04 +00:00
csharp.test.ts fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
go.test.ts fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
helpers.ts feat(type-resolution): per-language cross-file binding tests + resolver fixes 2026-03-20 15:38:27 +00:00
java.test.ts feat(type-resolution): per-language cross-file binding tests + resolver fixes 2026-03-20 15:38:27 +00:00
javascript.test.ts feat(type-resolution): per-language cross-file binding tests + resolver fixes 2026-03-20 15:38:27 +00:00
kotlin.test.ts feat(type-resolution): per-language cross-file binding tests + resolver fixes 2026-03-20 15:38:27 +00:00
php.test.ts fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
python.test.ts feat(type-resolution): per-language cross-file binding tests + resolver fixes 2026-03-20 15:38:27 +00:00
ruby.test.ts feat: implement cross-file binding propagation for multiple languages 2026-03-21 07:47:04 +00:00
rust.test.ts fix: address PR #409 review findings (P0-P3) and simplify import resolution API 2026-03-21 14:15:15 +00:00
swift.test.ts feat: Phase 6 type resolution — for-loop Tier 1c, pattern matching, container descriptors, 10-language coverage (#318) 2026-03-17 17:10:22 +00:00
typescript.test.ts feat(type-resolution): optional parameter arity resolution 2026-03-20 08:14:58 +00:00