1
0
mirror of https://github.com/golang/go synced 2024-11-17 21:04:43 -07:00

cmd/compile: document more Node fields

Change-Id: Ic8d37e5612b68bc73c4b50b59db54d8966b69838
Reviewed-on: https://go-review.googlesource.com/27326
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Kevin Burke 2016-08-18 09:14:22 -07:00 committed by Josh Bleecher Snyder
parent e6f9f39ce5
commit d3134b6450
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ type Label struct {
Breakpc *obj.Prog // pointer to code
Continpc *obj.Prog // pointer to code
Used bool
Used bool // for "label defined and not used" error
}
type SymFlags uint8

View File

@ -60,12 +60,12 @@ type Node struct {
Colas bool // OAS resulting from :=
Diag uint8 // already printed error about this
Noescape bool // func arguments do not escape; TODO(rsc): move Noescape to Func struct (see CL 7360)
Walkdef uint8
Typecheck uint8
Walkdef uint8 // tracks state during typecheckdef; 2 == loop detected
Typecheck uint8 // tracks state during typechecking; 2 == loop detected
Local bool
IsStatic bool // whether this Node will be converted to purely static data
Initorder uint8
Used bool
Used bool // for variable/label declared and not used error
Isddd bool // is the argument variadic
Implicit bool
Addrtaken bool // address taken, even if not moved to heap