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
This CL refines, generalizes, and promotes a number of helper
functions that have proven useful in go/analysis/passes/...
and gopls' modernizer analyzer:
package analysisinternal
func Format
func Imports
func Is{Method,Type,Function}Named
Details:
- all the Is*Named functions accept a list of candidates,
and a types.Object (that may be nil). This makes it
much more convenient to use on the result of typeutil.Callee.
Also, modernizations in passing:
- info.PkgNameOf
- interface{} -> any
- slices.Contains
- fmt.Appendf
- etc
Change-Id: Ib441af3eef9c5030f0ee2b38df69b4a25015ed97
Reviewed-on: https://go-review.googlesource.com/c/tools/+/639157
Reviewed-by: Robert Findley <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
0 commit comments