diff options
-rw-r--r-- | gocapturedrefrace.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index f57ad74..79c6d87 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -91,6 +91,9 @@ func checkClosure( // TODO: Use ast.GenDecl instead // ast.Scope? + // TODO: Need to find variables not declared in the closure, and + // reference arguments + ast.Inspect( funcLit, func(node ast.Node) bool { |