x/tools/internal/refactor/inline: optimize binding decls in if statements (etc) #63253
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Currently, inlining this call:
gives:
primarily because the prefix needs a variable but the context--an
if
condition--doesn't allow statements. Ideally it would put the binding decl in the if condition like so:or introduce the decl at a higher level:
The text was updated successfully, but these errors were encountered: