aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/honnef.co/go/tools/analysis/code/code.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-02-22 22:16:50 +0100
committerTaras Madan <tarasmadan@google.com>2023-02-24 12:47:23 +0100
commit4165372ec8fd142475a4e35fd0cf4f8042132208 (patch)
tree21cd62211b4dd80bee469054c5b65db77342333c /vendor/honnef.co/go/tools/analysis/code/code.go
parent2b3ed821a493b8936c8bacfa6f8b4f1c90a00855 (diff)
dependencies: update
set go min requirements to 1.19 update dependencies update vendor
Diffstat (limited to 'vendor/honnef.co/go/tools/analysis/code/code.go')
-rw-r--r--vendor/honnef.co/go/tools/analysis/code/code.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/honnef.co/go/tools/analysis/code/code.go b/vendor/honnef.co/go/tools/analysis/code/code.go
index db7debc22..f200363d9 100644
--- a/vendor/honnef.co/go/tools/analysis/code/code.go
+++ b/vendor/honnef.co/go/tools/analysis/code/code.go
@@ -17,7 +17,6 @@ import (
"honnef.co/go/tools/go/types/typeutil"
"honnef.co/go/tools/pattern"
- "golang.org/x/exp/typeparams"
"golang.org/x/tools/go/analysis"
)
@@ -146,7 +145,7 @@ func CallName(pass *analysis.Pass, call *ast.CallExpr) string {
switch idx := fun.(type) {
case *ast.IndexExpr:
fun = idx.X
- case *typeparams.IndexListExpr:
+ case *ast.IndexListExpr:
fun = idx.X
}
@@ -277,7 +276,7 @@ func MayHaveSideEffects(pass *analysis.Pass, expr ast.Expr, purity purity.Result
return false
case *ast.IndexExpr:
return MayHaveSideEffects(pass, expr.X, purity) || MayHaveSideEffects(pass, expr.Index, purity)
- case *typeparams.IndexListExpr:
+ case *ast.IndexListExpr:
// In theory, none of the checks are necessary, as IndexListExpr only involves types. But there is no harm in
// being safe.
if MayHaveSideEffects(pass, expr.X, purity) {