Skip to content

Comments

feat(traverse): add methods for creating Expression::Identifiers#7301

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-15-feat_traverse_add_methods_for_creating_expression_identifier_s
Nov 16, 2024
Merged

feat(traverse): add methods for creating Expression::Identifiers#7301
graphite-app[bot] merged 1 commit intomainfrom
11-15-feat_traverse_add_methods_for_creating_expression_identifier_s

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Nov 15, 2024

It's a common pattern in transformer to call ctx.create_ident_reference() and then convert to an Expression with Expression::Identifier(ctx.ast.alloc(ident)).

Add methods to do this in a single method call.

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 15, 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 the A-transformer Area - Transformer / Transpiler label Nov 15, 2024
@github-actions github-actions bot added the C-enhancement Category - New feature or request label Nov 15, 2024
@overlookmotel overlookmotel marked this pull request as ready for review November 15, 2024 17:16
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 15, 2024

CodSpeed Performance Report

Merging #7301 will not alter performance

Comparing 11-15-feat_traverse_add_methods_for_creating_expression_identifier_s (faf8dde) with main (1cbc624)

Summary

✅ 30 untouched benchmarks

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 16, 2024

Merge activity

Boshen pushed a commit that referenced this pull request Nov 16, 2024
…7301)

It's a common pattern in transformer to call `ctx.create_ident_reference()` and then convert to an `Expression` with `Expression::Identifier(ctx.ast.alloc(ident))`.

Add methods to do this in a single method call.
@Boshen Boshen force-pushed the 11-15-feat_traverse_add_methods_for_creating_expression_identifier_s branch from 6e7d767 to fcd6c3d Compare November 16, 2024 05:33
…7301)

It's a common pattern in transformer to call `ctx.create_ident_reference()` and then convert to an `Expression` with `Expression::Identifier(ctx.ast.alloc(ident))`.

Add methods to do this in a single method call.
@Boshen Boshen force-pushed the 11-15-feat_traverse_add_methods_for_creating_expression_identifier_s branch from fcd6c3d to faf8dde Compare November 16, 2024 05:36
@graphite-app graphite-app bot merged commit faf8dde into main Nov 16, 2024
@graphite-app graphite-app bot deleted the 11-15-feat_traverse_add_methods_for_creating_expression_identifier_s branch November 16, 2024 05:44
Dunqing pushed a commit that referenced this pull request Nov 17, 2024
…7301)

It's a common pattern in transformer to call `ctx.create_ident_reference()` and then convert to an `Expression` with `Expression::Identifier(ctx.ast.alloc(ident))`.

Add methods to do this in a single method call.
Dunqing pushed a commit that referenced this pull request Nov 18, 2024
…7301)

It's a common pattern in transformer to call `ctx.create_ident_reference()` and then convert to an `Expression` with `Expression::Identifier(ctx.ast.alloc(ident))`.

Add methods to do this in a single method call.
Dunqing pushed a commit that referenced this pull request Nov 18, 2024
…7301)

It's a common pattern in transformer to call `ctx.create_ident_reference()` and then convert to an `Expression` with `Expression::Identifier(ctx.ast.alloc(ident))`.

Add methods to do this in a single method call.
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