aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/honnef.co/go/tools/code/code.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-02-22 20:37:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2021-02-22 21:02:12 +0100
commitfcc6d71be2c3ce7d9305c04fc2e87af554571bac (patch)
treeb01dbb3d1e2988e28ea158d2d543d603ec0b9569 /vendor/honnef.co/go/tools/code/code.go
parent8f23c528ad5a943b9ffec5dcaf332fd0f614006e (diff)
go.mod: update golangci-lint to v1.37
Diffstat (limited to 'vendor/honnef.co/go/tools/code/code.go')
-rw-r--r--vendor/honnef.co/go/tools/code/code.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/honnef.co/go/tools/code/code.go b/vendor/honnef.co/go/tools/code/code.go
index 6f4df8b9a..c0679a3de 100644
--- a/vendor/honnef.co/go/tools/code/code.go
+++ b/vendor/honnef.co/go/tools/code/code.go
@@ -53,6 +53,7 @@ func IsCallToAny(call *ir.CallCommon, names ...string) bool {
return false
}
+// OPT(dh): IsType is kind of expensive; should we really use it?
func IsType(T types.Type, name string) bool { return types.TypeString(T, nil) == name }
func FilterDebug(instr []ir.Instruction) []ir.Instruction {