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(traverse)!: remove TraverseCtx::clone_identifier_reference #7266

Conversation

overlookmotel
Copy link
Collaborator

@overlookmotel overlookmotel commented Nov 13, 2024

Remove TraverseCtx::clone_identifier_reference.

This API encourages unnecessary repeated lookups of the SymbolId for a reference. It is preferable to use MaybeBoundIdentifier which only looks up the SymbolId once.

Copy link

graphite-app bot commented Nov 13, 2024

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

Add the label “0-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
Collaborator Author

overlookmotel commented Nov 13, 2024

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

Join @overlookmotel and the rest of your teammates on Graphite Graphite

@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 Nov 13, 2024
@overlookmotel overlookmotel force-pushed the 11-13-refactor_traverse_remove_traversectx_clone_identifier_reference_ branch from aacef59 to 57cbb85 Compare November 13, 2024 11:27
@overlookmotel overlookmotel marked this pull request as ready for review November 13, 2024 11:28
Copy link

codspeed-hq bot commented Nov 13, 2024

CodSpeed Performance Report

Merging #7266 will not alter performance

Comparing 11-13-refactor_traverse_remove_traversectx_clone_identifier_reference_ (e84ea2c) with main (de472ca)

Summary

✅ 30 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as draft November 13, 2024 12:42
@overlookmotel overlookmotel force-pushed the 11-13-feat_traverse_introduce_maybeboundidentifier_ branch from 02dcd21 to c2d693a Compare November 13, 2024 12:44
@overlookmotel overlookmotel force-pushed the 11-13-refactor_traverse_remove_traversectx_clone_identifier_reference_ branch from 57cbb85 to 7a6f4a9 Compare November 13, 2024 12:44
@overlookmotel overlookmotel marked this pull request as ready for review November 13, 2024 12:45
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Nov 13, 2024
Copy link
Member

Boshen commented Nov 13, 2024

Merge activity

  • Nov 13, 10:11 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 13, 10:11 AM EST: A user added this pull request to the Graphite merge queue.
  • Nov 13, 10:20 AM EST: A user merged this pull request with the Graphite merge queue.

…#7266)

Remove `TraverseCtx::clone_identifier_reference`.

This API encourages unnecessary repeated lookups of the `SymbolId` for a reference. It is preferable to use `MaybeBoundIdentifier` which only looks up the `SymbolId` once.
@Boshen Boshen force-pushed the 11-13-feat_traverse_introduce_maybeboundidentifier_ branch from c2d693a to 8c754b1 Compare November 13, 2024 15:12
@Boshen Boshen force-pushed the 11-13-refactor_traverse_remove_traversectx_clone_identifier_reference_ branch from 7a6f4a9 to e84ea2c Compare November 13, 2024 15:13
Base automatically changed from 11-13-feat_traverse_introduce_maybeboundidentifier_ to main November 13, 2024 15:17
@graphite-app graphite-app bot merged commit e84ea2c into main Nov 13, 2024
28 checks passed
@graphite-app graphite-app bot deleted the 11-13-refactor_traverse_remove_traversectx_clone_identifier_reference_ branch November 13, 2024 15:20
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-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