Skip to content

Conversation

@JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jan 7, 2025

Q                       A
Fixed Issues? #16679
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR we move the typeParameters handling to the parseMethod routine so that the type parameters of an object method is also covered. Previously we only handled class methods and overlooked object methods.

Given that the Babel 7 eslint-parser has never officially supported typescript-eslint, I think the impact of this change is minimal and thus could be shipped in a patch or minor release.

@babel-bot
Copy link
Collaborator

babel-bot commented Jan 7, 2025

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58531

@JLHwung JLHwung requested a review from nicolo-ribaudo January 9, 2025 16:36
@nicolo-ribaudo nicolo-ribaudo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Jan 9, 2025
@nicolo-ribaudo nicolo-ribaudo changed the title refactor: unify method type parameters handling [estree] Unify method type parameters handling Jan 10, 2025
@JLHwung JLHwung merged commit 9725926 into babel:main Jan 10, 2025
55 checks passed
@JLHwung JLHwung deleted the estree-object-method-type-parameters branch January 10, 2025 15:22
laine-hallot pushed a commit to laine-hallot/uwu-parser that referenced this pull request Mar 31, 2025
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 12, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants