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

Align decorators to 2021-12 spec #273

Merged
merged 2 commits into from Mar 3, 2022
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Feb 9, 2022

View Rendered Text

This PR aligns the decorators experimental AST to the latest proposal, which is asking for stage 3 advancement in March. The AST design is based on Babel's current implementation.

## Used
## AccessorProperty
```js
interface AccessorProperty <: Node {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

On AccessorProperty, an alternative design is to add accessor: boolean to PropertyDefinition. Babel introduced a new type so that we can support https://github.com/tc39/proposal-grouped-and-auto-accessors based on the new AST node type. See also discussions here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think a new node type makes sense. 👍

@nzakas
Copy link
Contributor

nzakas commented Mar 2, 2022

@RReverser can you take a look?

@RReverser
Copy link
Member

Weird, I thought this Github status thing would show up to others automatically & limit notifications.

image

Anyway, sorry, but as a Ukrainian, I'm busy with other stuff and won't be looking at code in the nearest time. Feel free to proceed without me on any blockers.

@nzakas
Copy link
Contributor

nzakas commented Mar 3, 2022

Oh damn. Take care @RReverser. We are all pulling for Ukraine.

@nzakas nzakas merged commit e625c78 into estree:master Mar 3, 2022
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.

None yet

3 participants