mirror of https://github.com/golang/go.git
This adds an analyzer that provides suggested fixes for undeclared name errors on function calls, implementing a stub of the fuction (with an empty body). As of now this doesn't try to guess returned types but only parameters. Generated functions are appended at the end of the file where these type errors occur. Updates golang/go#47558 Change-Id: Iaef45ada6b7b73de1fbe42e5f7e334512b65e6c7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/348829 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Trust: Rebecca Stambler <rstambler@golang.org> Trust: Peter Weinberger <pjw@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| testdata/src/missingfunction | ||
| missingfunc.go | ||
| missingfunc_test.go | ||