-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protobuf DSL: generate namespaced enum constants on root
The Protobuf DSL compiler was causing errors by generating un-namespaced constants for enums. In certain cases, this could result in a constant conflicting with a reserved Ruby word, such as "BEGIN." Instead, we generate the constants with the correct namespace outside of the class or module, ensuring that RBIs never contain code such as "BEGIN = 3" which is invalid Ruby syntax. Co-authored-by: Alexandre Terrasa <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters