Open overlookmotel opened 2 months ago
I have written a BindingMover
to move all bindings to a specified scope here. I think we can take a similar way to remove symbol
and reference
https://github.com/oxc-project/oxc/blob/410d5bb3c4bf2098f4f222659def3569fc715cc8/crates/oxc_transformer/src/es2017/async_to_generator.rs#L679-L703
5305 added
ScopeTree::delete_root_unresolved_reference
API to delete an unresolved reference.@Dunqing said in https://github.com/oxc-project/oxc/pull/5305#pullrequestreview-2267485901:
I agree with Dunqing that this API is needed. Opening this issue to discuss what it'd look like / how it'd work.