jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
Other
0 stars 0 forks source link

Rewrite identifiers which also happen to be typescript keywords #28

Closed jhugman closed 2 months ago

jhugman commented 2 months ago

According to The Big O of Code Reviews, this is a O(n) change.

This small PR detects if a var_name or fn_name collides with any reserved words; if it does, it rewrites it by adding a trailing underscore.