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

Refactor trait codegen javadoc integration to correctly support member documentation #2265

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

hpmellema
Copy link
Contributor

@hpmellema hpmellema commented Apr 29, 2024

Background

Refactors the trait codegen Javadoc integration to use a new approach to adding javadocs to both clean up the integration and to correctly support documentation on all members and enum variants.

In this updated approach empty Javadoc sections are first injected for all getters, classes, and enum variants. Interceptors can then populate the Javadocs section with text based on the presence of documentation traits. Finally, the core integration formats any javadoc sections with text as Java doc comments and discards any empty Javadoc sections.

Testing

Adds new suite of more comprehensive tests for smithy documentation traits.

Links


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

@hpmellema hpmellema requested a review from a team as a code owner April 29, 2024 22:52
@hpmellema hpmellema requested a review from kstich April 29, 2024 22:52
@hpmellema hpmellema merged commit 1805e51 into smithy-lang:main Apr 30, 2024
13 checks passed
@hpmellema hpmellema deleted the update-tcg-javadocs branch April 30, 2024 19:36
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