refactor(transformer): shorten code#6809
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd 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. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @overlookmotel and the rest of your teammates on |
CodSpeed Performance ReportMerging #6809 will not alter performanceComparing Summary
|
Dunqing
left a comment
There was a problem hiding this comment.
I have to say the BoundIdentifier is so great!
Merge activity
|
Use `BoundIdentifier::create_binding_pattern`, rather than writing out the code to create a `BindingPattern` manually each time.
2ea8513 to
b8dfa19
Compare
I still think we can improve the API. I would prefer methods on the AST types e.g. |
Yes, that would be better, but unfortunately, we can't get the |
Yeah we need to switch |

Use
BoundIdentifier::create_binding_pattern, rather than writing out the code to create aBindingPatternmanually each time.