flatbuffers
flatbuffers copied to clipboard
Namer TS
Apply Namer to typescript code generation #7142
Interesting bug / edge case in the last commit:
reflection.fbs generated Object_T
instead of ObjectT
because Object
is a keyword and we escaped keywords before adding object prefix and suffix. The previous implementation never escaped object-api names, which assumes no JS keyword would ever end in T
(or match whatever user defined prefix/suffix is provided). I fixed this by making escaping happen after prefixing/suffixing but this is a subtle behavior change that affects all languages.
@CasperN If you update it, I can review it now.
@CasperN Ready to revive?
I'll give it a go on Sunday
instead of trying to merge with master, I just started again