summaryrefslogtreecommitdiff
path: root/src/cmd/internal/gc/syntax.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2015-04-02 19:58:37 -0700
committerJosh Bleecher Snyder <josharian@gmail.com>2015-04-07 03:10:30 +0000
commit75883bae28435530bcb01d071d1b448ab0cf11cd (patch)
treebc33fb1e97e8b9212fb50f49e8637344a3b69e7c /src/cmd/internal/gc/syntax.go
parentbe4c38ed34fec9bc8b93235989f519ce57b45c4c (diff)
downloadgo-git-75883bae28435530bcb01d071d1b448ab0cf11cd.tar.gz
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>
Diffstat (limited to 'src/cmd/internal/gc/syntax.go')
-rw-r--r--src/cmd/internal/gc/syntax.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/internal/gc/syntax.go b/src/cmd/internal/gc/syntax.go
index 671a624c1d..736c7afda6 100644
--- a/src/cmd/internal/gc/syntax.go
+++ b/src/cmd/internal/gc/syntax.go
@@ -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