oxc/crates
overlookmotel 35e267ba17 fix(transformer): arrow function transform use UIDs for _this vars (#3634)
Change arrow function transform to use UIDs for `_this` vars, which can't clash with an existing binding.

I believe there are some problems with our current implementation, but have struggled to fix them due to weird interactions with TS transforms. Have added "TODO" comments, so we can return to this and fix them later on, once scopes in TS transforms are correct.

My failed attempt at fixing is on this branch: https://github.com/oxc-project/oxc/tree/transform-arrow-functions
2024-06-12 05:22:46 +00:00
..
oxc Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_allocator Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_ast feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_ast_macros Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_codegen feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_diagnostics fix(diagnostics): do not print ansi color codes in non-TTYs (#3624) 2024-06-11 16:16:28 +08:00
oxc_index Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_js_regex chore: crates should only publish src and examples directory 2024-06-08 16:35:16 +08:00
oxc_language_server feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_linter feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_macros chore: crates should only publish src and examples directory 2024-06-08 16:35:16 +08:00
oxc_minifier refactor(minifier): make Prepass Copy (#3603) 2024-06-10 11:17:45 +00:00
oxc_module_lexer Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_parser Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_prettier feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_semantic feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_sourcemap Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_span fix(transformer): do not add __source for generated nodes (#3614) 2024-06-11 06:41:16 +00:00
oxc_syntax Release crates v0.13.5 (#3584) 2024-06-08 16:44:50 +08:00
oxc_transformer fix(transformer): arrow function transform use UIDs for _this vars (#3634) 2024-06-12 05:22:46 +00:00
oxc_traverse refactor(traverse): generate_uid_in_root_scope method (#3611) 2024-06-11 06:41:12 +00:00
oxc_wasm feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00