diff options
| author | Teddy Wing | 2023-05-15 03:10:08 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2023-05-15 03:10:08 +0200 | 
| commit | 3f4577373527c267df3c89eb4bdaa37480f50cd1 (patch) | |
| tree | c2c0c94d81ca9ed33959ff33edb4443c268d3815 | |
| parent | 30fed3b90b79c6aa1221f933e82b52dc5b07b5a6 (diff) | |
| download | gocapturedrefrace-3f4577373527c267df3c89eb4bdaa37480f50cd1.tar.bz2 | |
Idea for building a list of variable assignments
| -rw-r--r-- | gocapturedrefrace.go | 2 | 
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 { | 
