Skip to content
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

Fix issue in the calculation of struct/signature scopes. #327

Merged
merged 2 commits into from
Dec 7, 2021

Conversation

cristianoc
Copy link
Collaborator

Fixes #323

The computation of scope for a struct/signatures takes the first and last items, ignoring the fact that they could be ghost locations.
In particular, using @react.component triggers the ppx which leaves ghost definitions at the end, making the end scope wrong.

Fixes #323

The computation of scope for a struct/signatures takes the first and last items, ignoring the fact that they could be ghost locations.
In particular, using `@react.component` triggers the ppx which leaves ghost definitions at the end, making the end scope wrong.
@cristianoc cristianoc merged commit 1238497 into master Dec 7, 2021
@cristianoc cristianoc deleted the env_scope branch December 7, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken autocomplete of local variables if @react.component decorator is present
1 participant