Skip to content

Expose CodegenWriter's doc writer#1083

Merged
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:expose-underlying-doc-writer
Feb 7, 2022
Merged

Expose CodegenWriter's doc writer#1083
JordonPhillips merged 1 commit intosmithy-lang:mainfrom
JordonPhillips:expose-underlying-doc-writer

Conversation

@JordonPhillips
Copy link
Copy Markdown
Contributor

When the doc writer is just an anonymous lambda function, it makes sense
to hide it away in the parent implementation. But when it's a class that
satisifies the interface, there may be additional things on it that the
subclasses or callers will want to use. For example, a doc formatter.

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

When the doc writer is just an anonymous lambda function, it makes sense
to hide it away in the parent implementation. But when it's a class that
satisifies the interface, there may be additional things on it that the
subclasses or callers will want to use. For example, a doc formatter.
@JordonPhillips JordonPhillips requested a review from a team as a code owner February 7, 2022 14:50
@JordonPhillips JordonPhillips merged commit 31b2999 into smithy-lang:main Feb 7, 2022
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.

2 participants