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

Support multiple transformations in one diff #4

Open
abhinav opened this issue Apr 21, 2021 · 0 comments
Open

Support multiple transformations in one diff #4

abhinav opened this issue Apr 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@abhinav
Copy link
Contributor

abhinav commented Apr 21, 2021

Diffs in a patch can currently transform only one entity at a time.

That is,

@@
@@
 type Foo struct {
-  bar string
 }
 
@@
@@
 type Bar struct {
-  foo string
 }

We special case statements by allowing statement blocks, but nothing else. Where appropriate -- specially for type and func declarations, we should support multiple entities in the same patch.

@@
@@
 type Foo struct {
-  bar string
 }
 
 type Bar struct {
-  foo string
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant