diff options
-rw-r--r-- | gocapturedrefrace.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index dacae11..f8c328f 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -35,6 +35,7 @@ func run(pass *analysis.Pass) (interface{}, error) { fmt.Printf("%#v\n", goStmt) + // TODO: How to get types.Func or {ast,types}.Scope of function literal? funcIdent, ok := goStmt.Call.Fun.(*ast.Ident) funcObj := pass.TypesInfo.ObjectOf(funcIdent) if funcObj != nil { |