Skip to content

feat(ast): add AstBuilder::*_with_scope_id etc methods#6760

Merged
graphite-app[bot] merged 1 commit intomainfrom
10-21-feat_ast_add_astbuilder__with_scope_id_etc_methods
Oct 22, 2024
Merged

feat(ast): add AstBuilder::*_with_scope_id etc methods#6760
graphite-app[bot] merged 1 commit intomainfrom
10-21-feat_ast_add_astbuilder__with_scope_id_etc_methods

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Oct 22, 2024

Add methods to AstBuilder to create AST nodes with ScopeId, SymbolId, ReferenceId, for use in transformer.

e.g. identifier_reference_with_reference_id, binding_identifier_with_symbol_id, block_statement_with_scope_id .

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 22, 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-ast Area - AST A-ast-tools Area - AST tools labels Oct 22, 2024
Copy link
Member Author

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 the C-enhancement Category - New feature or request label Oct 22, 2024
@overlookmotel overlookmotel marked this pull request as ready for review October 22, 2024 02:31
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 22, 2024

CodSpeed Performance Report

Merging #6760 will not alter performance

Comparing 10-21-feat_ast_add_astbuilder__with_scope_id_etc_methods (78fee6e) with main (dbe1972)

Summary

✅ 30 untouched benchmarks

@Dunqing Dunqing added the 0-merge Merge with Graphite Merge Queue label Oct 22, 2024 — with Graphite App
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 22, 2024

Merge activity

Add methods to `AstBuilder` to create AST nodes with `ScopeId`, `SymbolId`, `ReferenceId`, for use in transformer.

e.g. `identifier_reference_with_reference_id`, `binding_identifier_with_symbol_id`, `block_statement_with_scope_id `.
@Dunqing Dunqing force-pushed the 10-21-feat_ast_add_astbuilder__with_scope_id_etc_methods branch from 83e8022 to 78fee6e Compare October 22, 2024 03:40
@graphite-app graphite-app bot merged commit 78fee6e into main Oct 22, 2024
@graphite-app graphite-app bot deleted the 10-21-feat_ast_add_astbuilder__with_scope_id_etc_methods branch October 22, 2024 03:44
Boshen pushed a commit that referenced this pull request Oct 23, 2024
)

First of a series of PRs removing `new` and `new_with_scope_id` etc methods from AST types. Following #6760, all AST node creation can now go via the AST builder.

This lays groundwork for Node IDs (#5689), as we'll need `NodeId`s to be generated in `AstBuilder`, so that all nodes receive an ID.
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-ast Area - AST A-ast-tools Area - AST tools C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants