Skip to content

Comments

Fix removal of AstKind::SimpleAssignmentTarget#5506

Closed
overlookmotel wants to merge 3 commits intorolldown:next-oxcfrom
overlookmotel:next-oxc-overlookmotel
Closed

Fix removal of AstKind::SimpleAssignmentTarget#5506
overlookmotel wants to merge 3 commits intorolldown:next-oxcfrom
overlookmotel:next-oxc-overlookmotel

Conversation

@overlookmotel
Copy link
Collaborator

This turned out to be pretty painful! Without AstKind::SimpleAssignmentTarget, the logic to determine if a node is being assigned to becomes really complicated.

To avoid having to duplicate that logic in many places, I've added methods in Oxc. This commit relies on oxc-project/oxc#12596 (which isn't merged yet).

cargo check now passes, because all explicit references to AstKind::SimpleAssignmentTarget are removed. But I'm not sure if this will fix everything. There may be logic elsewhere which relies on AstKind::SimpleAssignmentTarget existing in the ancestry chain, and so skips over them, but they're no longer there to be skipped over.

just roll doesn't throw any errors, and no snapshot files change, but I'm not sure if that means all is well - not sure if Rolldown's conformance works in same way as Oxc's.

@overlookmotel overlookmotel requested a review from Boshen July 29, 2025 22:38
@Boshen Boshen self-assigned this Jul 30, 2025
@Boshen Boshen closed this in #5512 Jul 30, 2025
@overlookmotel overlookmotel deleted the next-oxc-overlookmotel branch July 30, 2025 09:56
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.

2 participants