Skip to content

feat(resolve): route module resolution and bundle typecheck through persistent AST cache (#736) - #1479

Merged
godofecht merged 2 commits into
mainfrom
feat/736-use-cached-parse-in-resolve
Oct 12, 2026
Merged

godofecht merged 2 commits into
mainfrom
feat/736-use-cached-parse-in-resolve

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

Routes module resolution and bundle typechecking in compiler/src/resolve.flow through flowc_parse_cached instead of direct flowc_parse_program calls.

This change connects:

  • flowc_mono_lit_expand_in_place
  • flowc_resolve_gather
  • flowc_resolve_deps_ready
  • flowc_bundle_semcheck
  • flowc_bundle_typecheck_fatal

to the persistent FCAC AST cache. Repeated module parsing during resolution reuses cached AST entries keyed by source content, compiler version, and cache schema.

Verification

  • Bootstrap C regenerated via ./compiler/scripts/bootstrap_from_c.sh --regen.
  • Bootstrap fixed-point verification passed: ./compiler/scripts/bootstrap_from_c.sh --verify.
  • Three-generation self-host passed: ./flow tool compiler/scripts/self_host_full.flow.
  • Cache test suite passed: ./flow tool tests/scripts/incremental_cache.flow (8 passed, 0 failed).
  • Language tests passed: ./flow test-lang (297 passed, 0 failed).
  • Ratchets passed: ./flow tool python_ratchet && ./flow tool shell_ratchet.
  • Formatting check passed: ./flow tool compiler/scripts/fmt_check.flow --check.

@godofecht
godofecht enabled auto-merge October 12, 2026 10:31
@godofecht
godofecht added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 34d6fa3 Oct 12, 2026
49 of 51 checks passed
@godofecht
godofecht deleted the feat/736-use-cached-parse-in-resolve branch October 12, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant