diff options
author | Teddy Wing | 2023-05-20 17:29:41 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-20 17:29:41 +0200 |
commit | d2b49900afa77c50ea44f750aa568e61ba663af1 (patch) | |
tree | 291c29433a8d4102d38255b49d86542a144895ac | |
parent | c064b2142aa81488e32be387393c494d98696a55 (diff) | |
download | gocapturedrefrace-d2b49900afa77c50ea44f750aa568e61ba663af1.tar.bz2 |
Clean up panic debugging from c064b2142aa81488e32be387393c494d98696a55
-rw-r--r-- | capturedrefrace.go | 6 |
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) |