-
Notifications
You must be signed in to change notification settings - Fork 196
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
path.scope not accurate for const and let #154
path.scope not accurate for const and let #154
Comments
The |
I hit this as well, while working on a project of my own. |
@benjamn is there a way to use |
Variables declared with
let
andconst
are block-scoped, not function-scoped. Yetpath.scope
is the same for both blocked-scoped variables and function-scoped variables declared withvar
. The followingOutputs "FunctionDeclaration", but I think it should be "BlockStatement".
The text was updated successfully, but these errors were encountered: