aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-05-16 01:59:36 +0200
committerTeddy Wing2023-05-16 01:59:57 +0200
commit0c4e6256657247cdba61ff0f4c0d33f6471044d3 (patch)
tree755f71677bc1cb2c020efa1e625044180b917a98
parent7db44ae3f9f309f635bcf16b187580c08b105ba9 (diff)
downloadgocapturedrefrace-0c4e6256657247cdba61ff0f4c0d33f6471044d3.tar.bz2
Add note about (*ast.CallExpr).Args
Discovered this existed.
-rw-r--r--gocapturedrefrace.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go
index dfa32aa..dacae11 100644
--- a/gocapturedrefrace.go
+++ b/gocapturedrefrace.go
@@ -72,6 +72,7 @@ func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) {
}
fmt.Printf("formalParams: %#v\n", formalParams)
// TODO: Ensure argument types are not references
+ // TODO: goStmt.Call.Args should also give us something like this.
// TODO: Build a list of variables created in the closure
assignments := assignmentsInFunc(pass, funcLit)