Skip to content

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

Merged
greg-at-moderne merged 5 commits intomainfrom
greg-js-no-import-scope
Jun 9, 2025
Merged

Javascript - removing the notion of scope in variable declarations#5577
greg-at-moderne merged 5 commits intomainfrom
greg-js-no-import-scope

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
JohannisK pushed a commit that referenced this pull request Jun 10, 2025
…5577)

* Removing the notion of import.scope

* Adapting to no notion of import.scope

* Adapting to no notion of import.scope

* RPC for import.initializer

* Removing TODOs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant