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

feat(traverse): mutable access to scopes tree + symbol table #3314

Conversation

overlookmotel
Copy link
Collaborator

@overlookmotel overlookmotel commented May 16, 2024

Allow mutable access to scopes tree and symbol table.

Closes #3189.

This completes the v1 scopes-in-traverse implementation, and provides all the primitives required to implement the missing APIs listed in #3251.

Performance is abysmal, as noted in #3304, but we can fix that later on by taking Semantic out of the picture, or optimizing it.

Copy link

graphite-app bot commented May 16, 2024

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

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

codspeed-hq bot commented May 16, 2024

CodSpeed Performance Report

Merging #3314 will create unknown performance changes

Comparing 05-16-feat_traverse_mutable_access_to_scopes_tree_symbol_table (0c09047) with main (723a46f)

Summary

🆕 27 new benchmarks

Benchmarks breakdown

Benchmark main 05-16-feat_traverse_mutable_access_to_scopes_tree_symbol_table Change
🆕 codegen_sourcemap[react.development.js] N/A 12.7 ms N/A
🆕 codegen_sourcemap[typescript.js] N/A 1.2 s N/A
🆕 lexer[RadixUIAdoptionSection.jsx] N/A 85.8 µs N/A
🆕 lexer[antd.js] N/A 107.8 ms N/A
🆕 lexer[cal.com.tsx] N/A 26.7 ms N/A
🆕 lexer[checker.ts] N/A 63.6 ms N/A
🆕 lexer[pdf.mjs] N/A 17.6 ms N/A
🆕 linter[cal.com.tsx] N/A 2.9 s N/A
🆕 linter[checker.ts] N/A 5.3 s N/A
🆕 minifier[react.development.js] N/A 8.4 ms N/A
🆕 minifier[typescript.js] N/A 1.2 s N/A
🆕 parser[RadixUIAdoptionSection.jsx] N/A 268.7 µs N/A
🆕 parser[antd.js] N/A 544.2 ms N/A
🆕 parser[cal.com.tsx] N/A 119.3 ms N/A
🆕 parser[checker.ts] N/A 277.7 ms N/A
🆕 parser[pdf.mjs] N/A 88.7 ms N/A
🆕 semantic[RadixUIAdoptionSection.jsx] N/A 415.3 µs N/A
🆕 semantic[antd.js] N/A 749.1 ms N/A
🆕 semantic[cal.com.tsx] N/A 219.8 ms N/A
🆕 semantic[checker.ts] N/A 556.1 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@overlookmotel overlookmotel force-pushed the 05-16-feat_traverse_pass_mut_traversectx_to_visitors branch from d5884ce to 9c0dcb9 Compare May 16, 2024 13:08
@overlookmotel overlookmotel force-pushed the 05-16-feat_traverse_mutable_access_to_scopes_tree_symbol_table branch from 8185f54 to b672c8d Compare May 16, 2024 13:08
@overlookmotel
Copy link
Collaborator Author

OK, the stack is complete. Ready for review.

@rzvxa just to let you know...

@Boshen @Dunqing once this is merged, we have mutable scopes in the transformer, and everything we need to build all the missing APIs listed in #3251. 🍾

Copy link

graphite-app bot commented May 16, 2024

Merge activity

Allow mutable access to scopes tree and symbol table.

Closes #3189.

This completes the v1 scopes-in-traverse implementation, and provides all the primitives required to implement the missing APIs listed in #3251.

Performance is abysmal, as noted in #3304, but we can fix that later on by taking `Semantic` out of the picture, or optimizing it.
@Boshen Boshen force-pushed the 05-16-feat_traverse_pass_mut_traversectx_to_visitors branch from 9c0dcb9 to 421107a Compare May 16, 2024 16:23
@Boshen Boshen force-pushed the 05-16-feat_traverse_mutable_access_to_scopes_tree_symbol_table branch from b672c8d to 0c09047 Compare May 16, 2024 16:24
@Boshen Boshen changed the base branch from 05-16-feat_traverse_pass_mut_traversectx_to_visitors to main May 16, 2024 16:33
@graphite-app graphite-app bot merged commit 0c09047 into main May 16, 2024
26 checks passed
@graphite-app graphite-app bot deleted the 05-16-feat_traverse_mutable_access_to_scopes_tree_symbol_table branch May 16, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add scopes support to Traverse / transformer
2 participants