Skip to content

refactor(ast): ModuleDeclaration::with_clause return Option<&WithClause>#10441

Merged
graphite-app[bot] merged 1 commit intomainfrom
04-16-refactor_ast_moduledeclaration_with_clause_return_option_withclause_
Apr 16, 2025
Merged

refactor(ast): ModuleDeclaration::with_clause return Option<&WithClause>#10441
graphite-app[bot] merged 1 commit intomainfrom
04-16-refactor_ast_moduledeclaration_with_clause_return_option_withclause_

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Apr 16, 2025

It's strange to return an Option<&Box<WithClause>> (&Box is a double-reference). Return Option<&WithClause> instead.

Copy link
Member Author

overlookmotel commented Apr 16, 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.

@github-actions github-actions bot added A-ast Area - AST C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Apr 16, 2025
@overlookmotel overlookmotel marked this pull request as ready for review April 16, 2025 13:30
@codspeed-hq
Copy link

codspeed-hq bot commented Apr 16, 2025

CodSpeed Instrumentation Performance Report

Merging #10441 will not alter performance

Comparing 04-16-refactor_ast_moduledeclaration_with_clause_return_option_withclause_ (192717c) with main (8db9dc5)

Summary

✅ 36 untouched benchmarks

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

overlookmotel commented Apr 16, 2025

Merge activity

…lause>` (#10441)

It's strange to return an `Option<&Box<WithClause>>` (`&Box` is a double-reference). Return `Option<&WithClause>` instead.
@graphite-app graphite-app bot force-pushed the 04-16-refactor_ast_remove_arrayassignmenttarget_new_with_elements_and_objectassignmenttarget_new_with_properties_ branch from a0a23d6 to 09f4c30 Compare April 16, 2025 13:57
@graphite-app graphite-app bot force-pushed the 04-16-refactor_ast_moduledeclaration_with_clause_return_option_withclause_ branch from 3ddddc8 to 192717c Compare April 16, 2025 13:58
Base automatically changed from 04-16-refactor_ast_remove_arrayassignmenttarget_new_with_elements_and_objectassignmenttarget_new_with_properties_ to main April 16, 2025 14:04
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Apr 16, 2025
@graphite-app graphite-app bot merged commit 192717c into main Apr 16, 2025
27 checks passed
@graphite-app graphite-app bot deleted the 04-16-refactor_ast_moduledeclaration_with_clause_return_option_withclause_ branch April 16, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ast Area - AST 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