mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
e6f9f39ce5
commit
d3134b6450
2 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ type Label struct {
|
||||||
Breakpc *obj.Prog // pointer to code
|
Breakpc *obj.Prog // pointer to code
|
||||||
Continpc *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
|
type SymFlags uint8
|
||||||
|
|
|
||||||
|
|
@ -60,12 +60,12 @@ type Node struct {
|
||||||
Colas bool // OAS resulting from :=
|
Colas bool // OAS resulting from :=
|
||||||
Diag uint8 // already printed error about this
|
Diag uint8 // already printed error about this
|
||||||
Noescape bool // func arguments do not escape; TODO(rsc): move Noescape to Func struct (see CL 7360)
|
Noescape bool // func arguments do not escape; TODO(rsc): move Noescape to Func struct (see CL 7360)
|
||||||
Walkdef uint8
|
Walkdef uint8 // tracks state during typecheckdef; 2 == loop detected
|
||||||
Typecheck uint8
|
Typecheck uint8 // tracks state during typechecking; 2 == loop detected
|
||||||
Local bool
|
Local bool
|
||||||
IsStatic bool // whether this Node will be converted to purely static data
|
IsStatic bool // whether this Node will be converted to purely static data
|
||||||
Initorder uint8
|
Initorder uint8
|
||||||
Used bool
|
Used bool // for variable/label declared and not used error
|
||||||
Isddd bool // is the argument variadic
|
Isddd bool // is the argument variadic
|
||||||
Implicit bool
|
Implicit bool
|
||||||
Addrtaken bool // address taken, even if not moved to heap
|
Addrtaken bool // address taken, even if not moved to heap
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue