Files
SnowLuma/packages
手瓜一十雪 0d30ee628e Switch subclass-wrapper to AST-only pipeline
Refactor subclass-wrapper resolution to an AST-only pipeline and remove the TypeChecker-based program cache.

- Move subclass-wrapper logic from typecheck/ to ast/: add ast/file-pipeline.ts and ast/subclass-wrapper.ts, and update codegen/imports accordingly.
- Implement AST-only cross-file extends resolution using import-resolver's fileCache (findImportSourcePath) and a WrapperLookupCache; subclass methods must now have explicit type annotations (no TypeChecker inference).
- Remove TypeChecker-dependent program-cache and typecheck/file-pipeline; plugin no longer preloads a ts.Program or accepts tsconfig option.
- Simplify plugin cache startup and HMR handling in src/index.ts to use the AST pipeline and transform cache only.
- Update tests to use the new AST pipeline entrypoints and adjust expectations.

This eliminates the dependency on a baked ts.Program for wrapper resolution, simplifies startup, and relies on the existing import-resolver for cross-file traversal. Partial wrapper resolutions are still all-or-nothing; explicit annotations are required for AST-only resolution.
2026-05-26 21:48:12 +08:00
..
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00
2026-05-24 18:01:50 +08:00