Skip to content

Conversation

camc314
Copy link
Contributor

@camc314 camc314 commented Mar 13, 2025

No description provided.

@camc314 camc314 marked this pull request as ready for review March 13, 2025 10:29
@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Mar 13, 2025
Copy link
Contributor Author

camc314 commented Mar 13, 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.

@camc314 camc314 requested a review from Boshen March 13, 2025 10:30
Copy link

codspeed-hq bot commented Mar 13, 2025

CodSpeed Performance Report

Merging #9748 will not alter performance

Comparing c/03-13-refactor_transformer_using_remove_use_of_child_scope_ids_in_enter_program (43e8efd) with main (8dd6809)

Summary

✅ 33 untouched benchmarks

@camc314 camc314 force-pushed the c/03-13-refactor_transformer_using_remove_use_of_child_scope_ids_in_enter_program branch from ba645ed to 6e05956 Compare March 13, 2025 11:25
@camc314 camc314 changed the base branch from main to graphite-base/9748 March 13, 2025 11:48
@camc314 camc314 force-pushed the c/03-13-refactor_transformer_using_remove_use_of_child_scope_ids_in_enter_program branch from 6e05956 to f495bb3 Compare March 13, 2025 11:48
@camc314 camc314 changed the base branch from graphite-base/9748 to 03-12-test_transformer_using_add_failing_test_for_scopes March 13, 2025 11:48
Base automatically changed from 03-12-test_transformer_using_add_failing_test_for_scopes to main March 13, 2025 11:59
Copy link
Member

@overlookmotel overlookmotel left a comment

Choose a reason for hiding this comment

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

As far as I can see, this change is correct. It's changing the parent of the right scopes correctly.

However, it is introducing another loop over statements. We could expose ChildScopeCollector and then this transform could use it directly, calling visit_statement on it while it's already looping over the statements.

Let's merge this now, and then we can do that in a follow-up PR.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Mar 13, 2025
Copy link
Member

overlookmotel commented Mar 13, 2025

Merge activity

  • Mar 13, 9:25 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 13, 9:25 AM EDT: A user added this pull request to the Graphite merge queue.
  • Mar 13, 9:31 AM EDT: A user merged this pull request with the Graphite merge queue.

@graphite-app graphite-app bot force-pushed the c/03-13-refactor_transformer_using_remove_use_of_child_scope_ids_in_enter_program branch from f495bb3 to 43e8efd Compare March 13, 2025 13:26
@graphite-app graphite-app bot merged commit 43e8efd into main Mar 13, 2025
26 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Mar 13, 2025
@graphite-app graphite-app bot deleted the c/03-13-refactor_transformer_using_remove_use_of_child_scope_ids_in_enter_program branch March 13, 2025 13:31
graphite-app bot pushed a commit that referenced this pull request Mar 13, 2025
…e_below_statements` and rename var (#9756)

Follow-on after #9748. Document the `TraverseScoping::insert_scope_below_statements` method added in that PR. Rename a variable to a more appropriate name.
graphite-app bot pushed a commit that referenced this pull request Mar 13, 2025
…9757)

Follow-on after #9748. Our convention is to add aliases for all methods on `TraverseScoping` to `TraverseCtx` too, to make usage shorter.

Add an alias for `insert_scope_below_statements`, added in #9748.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-transformer Area - Transformer / Transpiler 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.

2 participants