Skip to content

refactor: Code generation modularity and testability improvements #47

@DrBarnabus

Description

@DrBarnabus

Overview

Tracking issue for the code generation refactoring work planned in REFACTORING_PLANNING.md. The goal is to improve modularity, reduce duplication, and improve testability of the source generation code — making it easier to add new features, type support, etc.

After completing this work, adding a new type should require changes in ~4 sites (down from 8+).

Dependency graph

#39 (Snapshots) ───┐
                    ├── #41 (Extract) ── #42 (DiagnosticCtx) ── #43 (Model) ─┬── #44 (Strategies) ── #45 (Parse/TryParse)
#40 (Benchmarks) ──┘                                                          │
                                                                              └── #46 (Move to Common)

Issues

Prerequisites (no dependencies, can be done in parallel)

Foundation (extract and clean up Parser)

Core refactoring (model and emission)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions