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

Convert the field started with underscore and digit to a legal name #651

Merged
merged 2 commits into from
May 17, 2022

Conversation

osa1
Copy link
Member

@osa1 osa1 commented May 16, 2022

In proto, it is allowed to name a field started with underscore and
digit like _3d. But it's illegal in Dart. Convert the field name when
generating code.

Port of cl/411592880

In proto, it is allowed to name a field started with underscore and
digit like `_3d`. But it's illegal in Dart. Convert the field name when
generating code.

Port of cl/411592880
@osa1 osa1 requested a review from sigurdm May 16, 2022 08:28
Copy link
Collaborator

@sigurdm sigurdm left a comment

Choose a reason for hiding this comment

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

LGTM

@osa1 osa1 merged commit 6957c98 into google:master May 17, 2022
@osa1 osa1 deleted the cl_411592880 branch May 17, 2022 13:20
osa1 added a commit to osa1/protobuf.dart that referenced this pull request May 17, 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.

None yet

2 participants