Skip to content

refactor(ast): rename #[estree(type)] attr on types to #[estree(rename)]#8766

Merged
graphite-app[bot] merged 1 commit intomainfrom
01-28-refactor_ast_rename_estree_type_attr_on_types_to_estree_rename_
Jan 28, 2025
Merged

refactor(ast): rename #[estree(type)] attr on types to #[estree(rename)]#8766
graphite-app[bot] merged 1 commit intomainfrom
01-28-refactor_ast_rename_estree_type_attr_on_types_to_estree_rename_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 28, 2025

To rename a type in ESTree AST, use #[estree(rename = "Identifier")] instead of #[estree(type = "Identifier")].

This aligns with serde's attribute, and avoids using the keyword type, which makes the attributes simpler to parse.

@github-actions github-actions bot added A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jan 28, 2025
Copy link
Member Author

overlookmotel commented Jan 28, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 28, 2025

CodSpeed Performance Report

Merging #8766 will not alter performance

Comparing 01-28-refactor_ast_rename_estree_type_attr_on_types_to_estree_rename_ (a316b10) with main (8781537)

Summary

✅ 33 untouched benchmarks

@overlookmotel
Copy link
Member Author

overlookmotel commented Jan 28, 2025

I'm revamping oxc_ast_tools considerably at the moment, and this is just a small preparatory step for that, so merging without review.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Jan 28, 2025
Copy link
Member Author

overlookmotel commented Jan 28, 2025

Merge activity

  • Jan 28, 7:01 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jan 28, 7:01 AM EST: A user added this pull request to the Graphite merge queue.
  • Jan 28, 7:07 AM EST: A user merged this pull request with the Graphite merge queue.

…name)]` (#8766)

To rename a type in ESTree AST, use `#[estree(rename = "Identifier")]` instead of `#[estree(type = "Identifier")]`.

This aligns with `serde`'s attribute, and avoids using the keyword `type`, which makes the attributes simpler to parse.
@overlookmotel overlookmotel force-pushed the 01-28-refactor_ast_rename_estree_type_attr_on_types_to_estree_rename_ branch from acdaaa8 to a316b10 Compare January 28, 2025 12:02
@graphite-app graphite-app bot merged commit a316b10 into main Jan 28, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 01-28-refactor_ast_rename_estree_type_attr_on_types_to_estree_rename_ branch January 28, 2025 12:07
@oxc-bot oxc-bot mentioned this pull request Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast Area - AST A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant