Repository navigation
Genereralize codegen classes; keep builder model processor-side (#369) - #370
Merged
AndreasIgel merged 19 commits intoOct 23, 2026
Conversation
devin-ai-integration
Bot
force-pushed
the
devin/1792758878-genericize-codegen-seams
branch
from
October 23, 2026 12:55
c7e58fa to
bc8d08f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
… domain; slim the generic seam to TypeName
…lledBuilder, default build name via ctor
…tion consumer sites
|
devin-ai-integration
Bot
deleted the
devin/1792758878-genericize-codegen-seams
branch
November 22, 2026 14:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
Implements #369 — genericizes the builder-named seams in the codegen layer before the #349 model move lands, so
simple-codegencarries only framework-agnostic vocabulary.Commits (one per change)
model: rename ResolvedBuilder to ResolvedGeneratedType— the recordTypeMappingContext.resolveGeneratedTypereturns becomes builder-free (typeName,funcForEmptyInstance,funcForPrefilledInstance,resultMethodName).model: rename BuilderInstantiation to TypeInstantiation— sealed instantiation-strategy family genericized:AnchorFactoryCall→NestedFactoryCall,PrefillCallcomponents nowgeneratedType/sourceType/methodPrefix/fieldMethodFor.analysis: rename GeneratedBuilders to GeneratedTypes— generated-types registry (typesByTarget,findGenerated).Boundary decisions
BuilderConfiguration,BuilderDefinitionDto,BuilderMethodDto,BuilderNestedTypeDto,BuilderToGenerationTypeMapper— and builder-side API names likeresolveUsableBuilderType/resetGeneratedBuilders(they describe builder semantics; the generic types they produce are what codegen sees).$builderType:T,addArgument("builderType", ...)) — they render into generated source and renaming would break byte-identity.TypeName.resolvedBuilder→resolvedGeneratedType(+getGeneratedType);TypeNameGeneric.elementResolvedBuilder→elementResolvedGeneratedType.Verification
example/generated-example-builderis byte-identical to the committed outputAfter this merges, #349's model move is reworked to carry only the generic subset (
GenerationTargetClassDto,TypeNamefamily,FieldDto,MethodDto,ResolvedGeneratedType,TypeInstantiation,GeneratedTypes); the builder-domain types never leaveprocessor/model.