-
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/stubmethods: merge into CodeAction
This change removes the stubmethods analyzer, a roundabout implementation, and instead computes it directly from the protocol.QuickFix code action producer. This is simpler, more efficient, and has noticeably lower latency (being type-based not analysis based). We should consider this for the other type-error analyzers. However, the documentation, formerly generated to analyzers.md, is now maintained in the Quick Fixes section of diagnostics.md. More importantly, the `analyzers[stubmethods]` config setting no longer exists. Also: - addEditAction et al: pass Diagnostics as a parameter instead of returning a pointer to a mutable CodeAction. - protocol.Intersect: clarify how its treatment differs from mathematical convention in its handling of empty ranges, and fix a bug where by [1,2) and [2,3) were considered to intersect. (Only abutting empty ranges intersect by our definition.) - Upgrade a marker test from @diag to @suggestedfixerr, now that the latter exists. Change-Id: I010b2d4730596cac6f376c631839bfda159bf433 Reviewed-on: https://go-review.googlesource.com/c/tools/+/617035 Auto-Submit: 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
18 changed files
with
158 additions
and
249 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 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.
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.
15 changes: 0 additions & 15 deletions
15
gopls/internal/analysis/stubmethods/testdata/src/typeparams/implement.go
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
Oops, something went wrong.