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

impl(generator): move doc formatting to Codec #89

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Nov 4, 2024

Each language codec will need to make slightly different adjustments to the
documentation comments. This PR moves the splitting and cleanup of each line to
the Codec, and introduces some Rust specific cleanups.

Fixes #57 and fixes #33

Each language codec will need to make slightly different adjustments to the
documentation comments. This PR moves the splitting and cleanup of each line to
the Codec, and introduces some Rust specific cleanups.
@coryan coryan marked this pull request as ready for review November 4, 2024 22:00
@@ -82,6 +82,15 @@ type LanguageCodec interface {
// "lowercase CamelCase"), applying any mangling required by the language,
// e.g., to avoid clashes with reserved words.
ToCamel(string) string
// Reformat ${Lang}Doc comments according to the language-specific rules.
// For example,
// - The protos in googleapis include cross-references in the format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@coryan coryan enabled auto-merge (squash) November 5, 2024 00:45
@coryan coryan merged commit 85ffa64 into googleapis:main Nov 5, 2024
9 checks passed
@coryan coryan deleted the impl-generator-codec-formats-the-docs branch November 5, 2024 01:04
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.

Make sure we handle ``` sections is proto comments move doc formatting to language codec
2 participants