Skip to content

feat: add decorators field to Acorn snapshots#42

Merged
overlookmotel merged 2 commits intomainfrom
05-30-feat_add_decorators_field_to_acorn_snapshots
May 30, 2025
Merged

feat: add decorators field to Acorn snapshots#42
overlookmotel merged 2 commits intomainfrom
05-30-feat_add_decorators_field_to_acorn_snapshots

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented May 30, 2025

Add decorators: [] field to ClassDeclaration, ClassExpression, MethodDefinition, and PropertyDefinition in Acorn snapshots.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review May 30, 2025 15:29
@overlookmotel overlookmotel merged commit 1426f9b into main May 30, 2025
2 checks passed
@overlookmotel overlookmotel deleted the 05-30-feat_add_decorators_field_to_acorn_snapshots branch May 30, 2025 15:30
graphite-app bot pushed a commit to oxc-project/oxc that referenced this pull request May 31, 2025
Close #10921.

Add decorators to ESTree AST. `decorators` field is added to `ClassDeclaration`, `ClassExpression`, `PropertyDefinition`, and `MethodDefinition` - as per [ESTree spec](https://github.com/estree/estree/blob/52399d923111fe2a4dcfe1ede795e08356f35ddc/stage3/decorators.md).

Bump `acorn-test262` dependency to include oxc-project/estree-conformance#42 and oxc-project/estree-conformance#43, which add test fixtures for decorators.
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.

1 participant