Skip to content

feat(transformer/logical-assignment-operators): no temp vars for literals#7759

Merged
graphite-app[bot] merged 1 commit intomainfrom
12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals
Dec 10, 2024
Merged

feat(transformer/logical-assignment-operators): no temp vars for literals#7759
graphite-app[bot] merged 1 commit intomainfrom
12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Dec 9, 2024

TransformCtx::duplicate_expression (introduced in #7754) don't create temp vars for literals. This produces more compact output for the logical assignment operators transform.

This diverges from Babel (it's better!) so add an override for one of Babel's fixtures. Also add further tests for all literal types.

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 9, 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.

@github-actions github-actions bot added A-transformer Area - Transformer / Transpiler C-enhancement Category - New feature or request labels Dec 9, 2024
@overlookmotel overlookmotel force-pushed the 12-09-test_transformer_enable_fixture_overrides_for_logical-assignment-operators_transform branch from 6bd6f96 to b7ffc3e Compare December 9, 2024 21:54
@overlookmotel overlookmotel force-pushed the 12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals branch from 22c18fe to 44c3254 Compare December 9, 2024 21:54
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 9, 2024

CodSpeed Performance Report

Merging #7759 will not alter performance

Comparing 12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals (e010b6a) with main (3c1b2bf)

Summary

✅ 29 untouched benchmarks

@overlookmotel overlookmotel marked this pull request as ready for review December 9, 2024 22:16
@overlookmotel overlookmotel force-pushed the 12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals branch from 44c3254 to 71ed650 Compare December 9, 2024 22:34
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Dec 10, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 10, 2024

Merge activity

…rals (#7759)

`TransformCtx::duplicate_expression` (introduced in #7754) don't create temp vars for literals. This produces more compact output for the logical assignment operators transform.

This diverges from Babel (it's better!) so add an override for one of Babel's fixtures. Also add further tests for all literal types.
@Dunqing Dunqing force-pushed the 12-09-test_transformer_enable_fixture_overrides_for_logical-assignment-operators_transform branch from b7ffc3e to 8f8b4c3 Compare December 10, 2024 02:31
@Dunqing Dunqing requested a review from Boshen as a code owner December 10, 2024 02:31
@Dunqing Dunqing force-pushed the 12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals branch from 71ed650 to e010b6a Compare December 10, 2024 02:32
Base automatically changed from 12-09-test_transformer_enable_fixture_overrides_for_logical-assignment-operators_transform to main December 10, 2024 03:03
@graphite-app graphite-app bot merged commit e010b6a into main Dec 10, 2024
@graphite-app graphite-app bot deleted the 12-09-feat_transformer_logical-assignment-operators_no_temp_vars_for_literals branch December 10, 2024 03:06
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-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant