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

refactor(ast): make generated code for Visit more understandable #8825

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Feb 1, 2025

Pure refactor. for elements in it.elements.iter().flatten() doesn't make much sense - each item is a single element, not multiple elements. Change to for el in it.elements.iter().flatten().

@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 Feb 1, 2025
Copy link
Contributor Author


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.

@overlookmotel overlookmotel marked this pull request as ready for review February 1, 2025 15:18
@overlookmotel
Copy link
Contributor Author

Small refactor only, and preparatory work for a much larger change, so merging without review.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Feb 1, 2025
Copy link
Contributor Author

overlookmotel commented Feb 1, 2025

Merge activity

  • Feb 1, 10:19 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 1, 10:21 AM EST: A user added this pull request to the Graphite merge queue.
  • Feb 1, 10:26 AM EST: A user merged this pull request with the Graphite merge queue.

…8825)

Pure refactor. `for elements in it.elements.iter().flatten()` doesn't make much sense - each item is a single element, not multiple elements. Change to `for el in it.elements.iter().flatten()`.
@graphite-app graphite-app bot force-pushed the 02-01-refactor_ast_make_generated_code_for_visit_more_understandable branch from 03a6845 to 30eec26 Compare February 1, 2025 15:22
@graphite-app graphite-app bot merged commit 30eec26 into main Feb 1, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-01-refactor_ast_make_generated_code_for_visit_more_understandable branch February 1, 2025 15:26
Copy link

codspeed-hq bot commented Feb 1, 2025

CodSpeed Performance Report

Merging #8825 will not alter performance

Comparing 02-01-refactor_ast_make_generated_code_for_visit_more_understandable (30eec26) with main (3abf2f7)

Summary

✅ 33 untouched benchmarks

@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