mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/gc: convert yet more Node fields to bools
Convert Embedded, Method, and Colas to bools. I believe that this is the last of the Node fields that can be trivially converted to bools. No functional changes. Passes toolstash -cmp. Change-Id: I81962ee47866596341fc60d24d6959c20cd7fc1c Reviewed-on: https://go-review.googlesource.com/8440 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
be4c38ed34
commit
75883bae28
23 changed files with 103 additions and 103 deletions
|
|
@ -26,13 +26,13 @@ type Node struct {
|
|||
Op uint8
|
||||
Nointerface bool
|
||||
Ullman uint8 // sethi/ullman number
|
||||
Addable uint8 // type of addressability - 0 is not addressable
|
||||
Addable bool // addressable
|
||||
Etype uint8 // op for OASOP, etype for OTYPE, exclam for export
|
||||
Bounded bool // bounds check unnecessary
|
||||
Class uint8 // PPARAM, PAUTO, PEXTERN, etc
|
||||
Method uint8 // OCALLMETH name
|
||||
Method bool // OCALLMETH is direct method call
|
||||
Embedded uint8 // ODCLFIELD embedded type
|
||||
Colas uint8 // OAS resulting from :=
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue