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

fix: generate keywords that are not supported in r# with suffix _ #231

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

Millione
Copy link
Member

Motivation

Here are some keywords that are not supported in r#, which are listed in here. When user use these keywords in thrift IDL, the generated code will not compile.

Solution

Use another naming style to generate. Eg: self will be generated to self_ rather than r#self.

@Millione Millione requested review from a team as code owners March 26, 2024 02:53
@Millione Millione merged commit 7153348 into cloudwego:main Mar 26, 2024
9 checks passed
@Millione Millione deleted the fix/keyword branch March 26, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants