-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/analysis/undeclaredname: merge into CodeAction
This change removes the undeclaredname analyzer, and instead computes it directly from the protocol.QuickFix code action producer, follow the same structure in CL 617035. Also: - include return types for undeclared function - add basic return type test in missingfunction.txt, the major functionality should be the same as fromcall_returns.txt - add more cases in TypesFromContext, and corresponding tests. Fixes golang/go#47558 Change-Id: Ic79cf2f07a3baee60631bf0b8f5c2b9f4f4393d0 GitHub-Last-Rev: 33b78d7 GitHub-Pull-Request: #538 Reviewed-on: https://go-review.googlesource.com/c/tools/+/623156 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information
Showing
27 changed files
with
627 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
gopls/internal/analysis/undeclaredname/testdata/src/a/a.go
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
gopls/internal/analysis/undeclaredname/testdata/src/a/channels.go
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
gopls/internal/analysis/undeclaredname/testdata/src/a/consecutive_params.go
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
gopls/internal/analysis/undeclaredname/testdata/src/a/error_param.go
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
gopls/internal/analysis/undeclaredname/testdata/src/a/literals.go
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
gopls/internal/analysis/undeclaredname/testdata/src/a/operation.go
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
gopls/internal/analysis/undeclaredname/testdata/src/a/selector.go
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
gopls/internal/analysis/undeclaredname/testdata/src/a/slice.go
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
gopls/internal/analysis/undeclaredname/testdata/src/a/tuple.go
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
gopls/internal/analysis/undeclaredname/testdata/src/a/unique_params.go
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.