-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with renameTo
and block scope
#263
Comments
I'm writing my own transform and I observe that opening a block like that doesn't create a nested scope in codeshift, which is the reason why Amazed that a correctness bug like this one is still open 2 years later :( |
For my own background knowledge/context, it seems that
I'd have to look deeper to be sure where exactly the root issue is though. Potentially related?
It also seems this/similar might be an issue shared across a number of the parsers / scope managers, e.g:
|
ES6 Block scoping seems to be broken in
renameTo
.Repro:
Transform:
Input:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: