-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[TS] Fix reserved words as arguments (#6955) #6956
Conversation
Pull from google/flatbuffers
If a struct has a key the vector has to be sorted. To sort the vector you can't use "const".
* option indent_step is supported
Thanks! As mentioned in #6955, can you extend the use of this function to other generated names? @krojew @bjornharrtell |
I think other generated names does not make any trouble. I have tested several hundreds of our flatbuffers schemas and reserved words are only not allowed as arguments in TS. Astonishingly these words can be used even as method names. So flatbuffers names like struct/table, enum values, ... did not lead to non working TS code. |
Ok, sounds like this will be sufficient for now then, thanks! |
Use same mechanism as in c# implementation for convenient code maintenance.
Fix is compatible for users of the generated .ts code.