Skip to content

Decompose checker.py into checker/ package (C8a)#117

Merged
aallan merged 2 commits into
mainfrom
fix/c8a-decompose-checker
Feb 27, 2026
Merged

Decompose checker.py into checker/ package (C8a)#117
aallan merged 2 commits into
mainfrom
fix/c8a-decompose-checker

Conversation

@aallan

@aallan aallan commented Feb 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Split the 2,043-line checker.py monolith into a checker/ package with 8 focused modules using mixin-based composition
  • core.py (349) — TypeChecker class, orchestration, diagnostics, contracts
  • resolution.py (190) — AST TypeExpr to semantic Type, type inference
  • modules.py (153) — cross-module registration (C7b/C7c)
  • registration.py (138) — Pass 1 forward declarations
  • expressions.py (530) — expression synthesis, operators, statements
  • calls.py (390) — function, constructor, and module-qualified calls
  • control.py (439) — if/match, patterns, exhaustiveness, effect handlers
  • Public API (typecheck()) unchanged; zero test modifications
  • Version bump to v0.0.40

Closes #99

Test plan

  • 951 tests pass (zero test changes)
  • mypy clean (with per-module mixin overrides in pyproject.toml)
  • All 14 examples pass check + verify
  • README and spec code blocks parse
  • Pre-commit hooks pass

Generated with Claude Code

aallan and others added 2 commits February 27, 2026 21:44
Split the 2,043-line monolith into 8 focused modules using
mixin-based composition.  TypeChecker inherits from six mixins
(resolution, modules, registration, expressions, calls, control)
that each handle a specific type-checking concern.

Public API (typecheck()) is unchanged; zero test modifications.

Closes #99

Co-Authored-By: Claude <noreply@anthropic.invalid>
Co-Authored-By: Claude <noreply@anthropic.invalid>
@aallan aallan merged commit 2cb0fba into main Feb 27, 2026
10 checks passed
@aallan aallan deleted the fix/c8a-decompose-checker branch February 27, 2026 21:48
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.

Decompose checker.py into checker/ submodules

1 participant