Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose CodegenWriter's doc writer #1083

Merged

Conversation

JordonPhillips
Copy link
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