We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's currently impossible to have a patch that introduces a new top-level declaration while modifying another one.
For example, given,
func foo() { re := regexp.MustCompile("foo") // ... }
We cannot build a patch that would turn it into the following.
var re = regexp.MustCompile("foo") func foo() { // ... }
That's because we don't yet support patches with multiple top-level declarations in them so the following will fail to parse.
@@ var f, re identifier var regex expression @@ +var re = regexp.MustCompile(regex) func f() { - re := regexp.MustCompile(regex) ... }
See also #3, #4
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It's currently impossible to have a patch that introduces a new top-level declaration while modifying another one.
For example, given,
We cannot build a patch that would turn it into the following.
That's because we don't yet support patches with multiple top-level declarations in them so the following will fail to parse.
See also #3, #4
The text was updated successfully, but these errors were encountered: