mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: convert Node.Embedded into a flag
Change-Id: I30c59ba84dcacc3de39c42f94484b47bb7c36eba Reviewed-on: https://go-review.googlesource.com/41792 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
7a92395ddd
commit
af7da9a53b
3 changed files with 12 additions and 6 deletions
|
|
@ -501,8 +501,8 @@ func (n *Node) jconv(s fmt.State, flag FmtFlag) {
|
|||
fmt.Fprintf(s, " implicit(%v)", n.Implicit())
|
||||
}
|
||||
|
||||
if n.Embedded != 0 {
|
||||
fmt.Fprintf(s, " embedded(%d)", n.Embedded)
|
||||
if n.Embedded() {
|
||||
fmt.Fprintf(s, " embedded")
|
||||
}
|
||||
|
||||
if n.Addrtaken() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue