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 trailing member/call behavior #1609

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Fix trailing member/call behavior #1609

merged 1 commit into from
Nov 18, 2024

Conversation

edemaine
Copy link
Collaborator

Fixes @bbrk24's reported regression (which is now a test).

  • Call arguments now check for trailing call expressions instead of trailing member expressions.
  • I never understood why we had both trailing member and trailing call rules. We no longer use the member ones, so the grammar got a bunch simpler.
  • Missing .flat() in handling trailing call expressions (else a JSX test would fail).

Copy link
Contributor

@STRd6 STRd6 left a comment

Choose a reason for hiding this comment

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

Thanks, glad to see things getting simpler!

@edemaine edemaine merged commit ac96deb into main Nov 18, 2024
3 of 4 checks passed
@edemaine edemaine deleted the trailing-call branch November 18, 2024 22:29
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