Skip to content

Remove SmithyCodegenSettings#1118

Merged
mtdowling merged 1 commit intomainfrom
remove-codegen-settings-assumptions
Mar 3, 2022
Merged

Remove SmithyCodegenSettings#1118
mtdowling merged 1 commit intomainfrom
remove-codegen-settings-assumptions

Conversation

@mtdowling
Copy link
Copy Markdown
Member

Rather than rely on a simple base interface for codegen settings, an
unconstrained generic type parameter is now used. This removes any
assumptions about how code is being generated across generators, and
additional interfaces that try to unify generators could be added in the
future as needed using things like intersection types.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Rather than rely on a simple base interface for codegen settings, an
unconstrained generic type parameter is now used. This removes any
assumptions about how code is being generated across generators, and
additional interfaces that try to unify generators could be added in the
future as needed using things like intersection types.
@mtdowling mtdowling requested a review from a team as a code owner March 3, 2022 17:26
@mtdowling mtdowling merged commit 87a44b9 into main Mar 3, 2022
@mtdowling mtdowling deleted the remove-codegen-settings-assumptions branch April 8, 2022 05:31
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.

3 participants