You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on Node refactoring leading up to CL 7360, I found myself applying 8 different templates (one per relevant field) sequentially. It would be nicer to use--and I think faster to execute--to apply them all in a single pass.
The template could look like a sequence of alternating pairs of before and after:
rsc
changed the title
cmd/eg: allow multiple refactorings in a single template
x/tools/cmd/eg: allow multiple refactorings in a single template
Apr 14, 2015
While working on
Node
refactoring leading up to CL 7360, I found myself applying 8 different templates (one per relevant field) sequentially. It would be nicer to use--and I think faster to execute--to apply them all in a single pass.The template could look like a sequence of alternating pairs of
before
andafter
:The semantics would be that the output would be equivalent to applying each of the pairs sequentially as a template.
Thoughts? I'm happy to help with implementation.
The text was updated successfully, but these errors were encountered: