aboutsummaryrefslogtreecommitdiffstats
path: root/capturedrefrace.go
diff options
context:
space:
mode:
authorTeddy Wing2023-05-20 17:29:41 +0200
committerTeddy Wing2023-05-20 17:29:41 +0200
commitd2b49900afa77c50ea44f750aa568e61ba663af1 (patch)
tree291c29433a8d4102d38255b49d86542a144895ac /capturedrefrace.go
parentc064b2142aa81488e32be387393c494d98696a55 (diff)
downloadgocapturedrefrace-d2b49900afa77c50ea44f750aa568e61ba663af1.tar.bz2
Clean up panic debugging from c064b2142aa81488e32be387393c494d98696a55
Diffstat (limited to 'capturedrefrace.go')
-rw-r--r--capturedrefrace.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/capturedrefrace.go b/capturedrefrace.go
index 7ed7470..fbb3ebe 100644
--- a/capturedrefrace.go
+++ b/capturedrefrace.go
@@ -51,7 +51,6 @@
package capturedrefrace
import (
- "fmt"
"go/ast"
"go/token"
"go/types"
@@ -103,11 +102,6 @@ func run(pass *analysis.Pass) (interface{}, error) {
}
// Inspect closure argument list.
- fmt.Printf("ident: %#v\n", goStmt.Call.Fun)
- fmt.Printf("pos: %#v\n", pass.Fset.Position(goStmt.Call.Fun.Pos()))
- fmt.Printf("lit: %#v\n", funcLit)
- fmt.Printf("type: %#v\n", funcLit.Type)
- fmt.Printf("params: %#v\n", funcLit.Type.Params)
for _, arg := range funcLit.Type.Params.List {
// Report reference arguments.
_, ok := arg.Type.(*ast.StarExpr)