aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gocapturedrefrace.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go
index f8c328f..4187918 100644
--- a/gocapturedrefrace.go
+++ b/gocapturedrefrace.go
@@ -56,6 +56,10 @@ func run(pass *analysis.Pass) (interface{}, error) {
return true
}
+ // scope := pass.TypesInfo.Scopes[funcLit]
+ scope := pass.TypesInfo.Scopes[goStmt]
+ fmt.Println("scope:", scope)
+
checkClosure(pass, funcLit)
return true