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

fix(ast, ast_codegen): use generate_derive instead of visitable for generating span derives. #4747

Conversation

rzvxa
Copy link
Contributor

@rzvxa rzvxa commented Aug 8, 2024

follow-up to #4735
I was accidentally using the old code to filter the viable target types to derive. It means before this PR we were still using the #[ast(visit)] for this purpose.

Copy link

graphite-app bot commented Aug 8, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

Copy link
Contributor Author

rzvxa commented Aug 8, 2024

@github-actions github-actions bot added the A-ast Area - AST label Aug 8, 2024
@rzvxa rzvxa marked this pull request as ready for review August 8, 2024 02:01
Copy link

codspeed-hq bot commented Aug 8, 2024

CodSpeed Performance Report

Merging #4747 will not alter performance

Comparing 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives (fff9da3) with main (abe8202)

Summary

✅ 29 untouched benchmarks

@rzvxa rzvxa force-pushed the 08-08-refactor_ast_codegen_declutter_the_main_file branch from cf28242 to 850ff38 Compare August 8, 2024 11:02
@rzvxa rzvxa force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from cf10b69 to 98a2260 Compare August 8, 2024 11:02
@rzvxa rzvxa requested a review from overlookmotel August 8, 2024 11:05
@rzvxa rzvxa force-pushed the 08-08-refactor_ast_codegen_declutter_the_main_file branch from 850ff38 to eead990 Compare August 8, 2024 14:43
@rzvxa rzvxa force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from 98a2260 to 8440cdf Compare August 8, 2024 14:43
@rzvxa rzvxa force-pushed the 08-08-refactor_ast_codegen_declutter_the_main_file branch from eead990 to 9a94c20 Compare August 8, 2024 16:23
@rzvxa rzvxa force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from 8440cdf to 862fe61 Compare August 8, 2024 16:23
@overlookmotel overlookmotel changed the base branch from 08-08-refactor_ast_codegen_declutter_the_main_file to graphite-base/4747 August 8, 2024 16:38
@overlookmotel overlookmotel force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from 862fe61 to 60b6cf9 Compare August 8, 2024 16:43
@overlookmotel overlookmotel changed the base branch from graphite-base/4747 to main August 8, 2024 16:43
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Aug 8, 2024
Copy link

graphite-app bot commented Aug 8, 2024

Merge activity

  • Aug 8, 12:49 PM EDT: The merge label 'merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 8, 1:06 PM EDT: overlookmotel added this pull request to the Graphite merge queue.
  • Aug 8, 1:10 PM EDT: overlookmotel merged this pull request with the Graphite merge queue.

@overlookmotel overlookmotel force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from 60b6cf9 to e711be3 Compare August 8, 2024 17:02
@overlookmotel
Copy link
Contributor

CI got stuck again. Have force pushed the branch with no changes just to unstick it. @rzvxa FYI. I don't know if this is Graphite playing up again, but same thing happened on the "cursed" stack of last night too.

… generating span derives. (#4747)

follow-up to #4735
I was accidentally using the old code to filter the viable target types to derive. It means before this PR we were still using the `#[ast(visit)]` for this purpose.
@overlookmotel overlookmotel force-pushed the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch from e711be3 to fff9da3 Compare August 8, 2024 17:06
@graphite-app graphite-app bot merged commit fff9da3 into main Aug 8, 2024
24 checks passed
@graphite-app graphite-app bot deleted the 08-08-fix_ast_ast_codegen_use_generate_derive_instead_of_visitable_for_generating_span_derives branch August 8, 2024 17:10
@oxc-bot oxc-bot mentioned this pull request Aug 10, 2024
Boshen added a commit that referenced this pull request Aug 10, 2024
## [0.24.1] - 2024-08-10

### Features

- b3c3125 linter: Overhaul unicorn/no-useless-spread (#4791) (DonIsaac)
- c519295 minifier: Add `InjectGlobalVariables` plugin
(`@rollup/plugin-inject`) (#4759) (Boshen)

### Bug Fixes

- fff9da3 ast, ast_codegen: Use `generate_derive` instead of visitable
for generating span derives. (#4747) (rzvxa)
- f5eeebd ast_macros: Raise compile error on invalid `generate_derive`
input. (#4766) (rzvxa)
- 4d0b40a napi/transform: Fix wrong isolated declarations emit (Boshen)

### Refactor

- daa0b2e ast: `oxc_ast` crate re-export AST types from other crates
(#4773) (overlookmotel)
- d4a3be8 ast_codegen: Line breaks between types in layout assertions
(#4781) (overlookmotel)
- dbb5f4c ast_codegen: Remove unnecessary imports from generated files
(#4774) (overlookmotel)
- 7ea058d ast_codegen: Replace Windows-style line breaks with Unix-style
(#4769) (overlookmotel)
- 2dea0ca ast_codegen: Consistent import order (#4761) (overlookmotel)

Co-authored-by: Boshen <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants