Skip to content

Conversation

@nicolo-ribaudo
Copy link
Member

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

I noticed this as one of the differences with typescript-eslint. We move the type arguments from the class member to the FunctionExpression, but we forgot to also adjust the location.

The test is weirdly formatted so that you can easily see that now the FunctionExpression starts at column 0.

@nicolo-ribaudo nicolo-ribaudo added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: parser area: estree labels Dec 4, 2024
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 4, 2024

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

@nicolo-ribaudo nicolo-ribaudo force-pushed the estree-method-type-params-loc branch from c12d3be to f5c465a Compare December 6, 2024 10:01
@nicolo-ribaudo nicolo-ribaudo changed the title [estree] Correctly set the start loc of a class method with type params [estree] Adjust the start loc of class methods with type params Dec 6, 2024
@nicolo-ribaudo nicolo-ribaudo merged commit 5d74693 into babel:main Dec 6, 2024
55 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the estree-method-type-params-loc branch December 6, 2024 11:10
@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 Mar 8, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: estree 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