Skip to content

Clean up GetElementOrPropertyAccessName #951

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

Conversation

sandersn
Copy link
Member

Fixes #890

There were two related functions but only one caller needed the .Text() followup. The new code is stricter and therefore less likely to panic downstream.

There was also a duplicate implementation of IsModuleExports in checker. I removed that and cleaned it up as well.

This is also the inauguaral test in cases/conformance/salsa.

Fixes microsoft#890

There were two related functions but only one caller needed the .Text()
followup. The new code is stricter and therefore less likely to panic
downstream.

There was also a duplicate implementation of IsModuleExports in checker.
I removed that and cleaned it up as well.

This is also the inauguaral test in cases/conformance/salsa.
@Copilot Copilot AI review requested due to automatic review settings May 27, 2025 15:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@sandersn sandersn added this pull request to the merge queue May 27, 2025
Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be some stuff that will need to be more-carefully ported from the old compiler if GetElementOrPropertyAccessName returns a *Node now (i.e. isSameEntityName).

Otherwise, this looks like a good way to fix the issue.

Merged via the queue into microsoft:main with commit 35b9078 May 27, 2025
23 checks passed
@sandersn sandersn deleted the cleanup-GetElementOrPropertyAccessName branch May 27, 2025 18:36
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.

Panic compiling webpack
3 participants