TypeScript apparently allows to use keywords as a variable/function name (e.g. declare var class). We should handle haxe keywords somehow. I'm not sure whether @:native is enough for that (e.g. @:native("class") var class_:Dynamic;) or we should generate a property with inline getters/setters (e.g. var class_(get,set):Dynamic; inline function get_class_():Dynamic return untyped this["class"];)
TypeScript apparently allows to use keywords as a variable/function name (e.g.
declare var class
). We should handle haxe keywords somehow. I'm not sure whether@:native
is enough for that (e.g.@:native("class") var class_:Dynamic;
) or we should generate a property with inline getters/setters (e.g.var class_(get,set):Dynamic; inline function get_class_():Dynamic return untyped this["class"];
)