aboutsummaryrefslogtreecommitdiffstats
path: root/capturedrefrace.go
diff options
context:
space:
mode:
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)