aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-05-15 03:10:08 +0200
committerTeddy Wing2023-05-15 03:10:08 +0200
commit3f4577373527c267df3c89eb4bdaa37480f50cd1 (patch)
treec2c0c94d81ca9ed33959ff33edb4443c268d3815
parent30fed3b90b79c6aa1221f933e82b52dc5b07b5a6 (diff)
downloadgocapturedrefrace-3f4577373527c267df3c89eb4bdaa37480f50cd1.tar.bz2
Idea for building a list of variable assignments
-rw-r--r--gocapturedrefrace.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go
index 454156f..11f2ac1 100644
--- a/gocapturedrefrace.go
+++ b/gocapturedrefrace.go
@@ -57,6 +57,8 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) {
}
fmt.Printf("%#v\n", formalParams)
+ // TODO: Build a list of variables created in the closure
+
ast.Inspect(
funcLit,
func(node ast.Node) bool {