mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: clean up, document Node closure fields
Requested during CL 23431. Change-Id: I513ae42166b3a9fcfe51231ff55c163ab672e7d2 Reviewed-on: https://go-review.googlesource.com/23485 Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
93369001c7
commit
36a80c5941
7 changed files with 144 additions and 45 deletions
|
|
@ -1193,7 +1193,7 @@ func exprfmt(n *Node, prec int) string {
|
|||
if n.Nbody.Len() != 0 {
|
||||
return fmt.Sprintf("%v { %v }", n.Type, n.Nbody)
|
||||
}
|
||||
return fmt.Sprintf("%v { %v }", n.Type, n.Name.Param.Closure.Nbody)
|
||||
return fmt.Sprintf("%v { %v }", n.Type, n.Func.Closure.Nbody)
|
||||
|
||||
case OCOMPLIT:
|
||||
ptrlit := n.Right != nil && n.Right.Implicit && n.Right.Type != nil && n.Right.Type.IsPtr()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue