-
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/modernize: check FileVersions throughout
This CL ensures that every modernizer sub-pass checks the effective Go version of each file before inspecting that file, using a version-filtering *ast.File iterator, something enabled by Cursors. It does increase indentation by a level though, so I split some of the deeper function into outer and inner parts. Change-Id: I2bcd059c4f52af5673a7d1e9f07ff9463dce96b0 Reviewed-on: https://go-review.googlesource.com/c/tools/+/638698 Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
Showing
7 changed files
with
356 additions
and
351 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
Oops, something went wrong.