-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Copy link
Labels
Spec: Decoratorsarea: estreeoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser
Description
💻
- Would you like to work on this feature?
What problem are you trying to solve?
Inconsistent AST node for decorator auto accessors between ESTree and Babel.
ESTree: AccessorProperty
Babel: ClassAccessorProperty
ref: https://github.com/estree/estree/blob/master/stage3/decorators.md#accessorproperty
Describe the solution you'd like
Implement convert ClassAccessorProperty
to AccessorProperty
in estree plugin of babel.
Describe alternatives you've considered
Babel drops ClassAccessorProperty
in favor of AccessorProperty
.
Documentation, Adoption, Migration Strategy
Decorator auto accessors syntax will be landed in TypeScript 4.9 (https://devblogs.microsoft.com/typescript/announcing-typescript-4-9-rc/#auto-accessors-in-classes). Thus, the inconsistency with typescript-estree is a concern to me.
Metadata
Metadata
Assignees
Labels
Spec: Decoratorsarea: estreeoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser