You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
0 commit comments