Skip to content

Javascript - removing the notion of scope in variable declarations #5577

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

Merged
merged 5 commits into from
Jun 9, 2025

Conversation

greg-at-moderne
Copy link
Contributor

@greg-at-moderne greg-at-moderne commented Jun 9, 2025

What's changed?

Following #5569:

  • removing the notion of ScopedVariableDeclarations.scope as let/const/var was already moved to VariableDeclarations.modifier
  • now adopting a new LST model for what used to be called Import scope

What's your motivation?

To meet the design decision of "remove that import scope and instead update the model of JS.Import to cover that case".

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Jun 9, 2025
@greg-at-moderne greg-at-moderne self-assigned this Jun 9, 2025
@greg-at-moderne greg-at-moderne changed the title Javascript - removing the notion of import.scope Javascript - removing the notion of scope in variable declarations Jun 9, 2025
@greg-at-moderne greg-at-moderne marked this pull request as ready for review June 9, 2025 10:19
@greg-at-moderne greg-at-moderne merged commit 15c99a6 into main Jun 9, 2025
2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-js-no-import-scope branch June 9, 2025 10:19
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant