mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: simplify parsing of type aliases
Change-Id: Ia86841cf84bc17ff6ecc6e5ac4cec86384a0da00 Reviewed-on: https://go-review.googlesource.com/31719 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
1b0cf430dd
commit
c0e2318f7c
4 changed files with 8 additions and 19 deletions
|
|
@ -625,11 +625,7 @@ func (p *printer) printRawNode(n Node) {
|
|||
if n.Group == nil {
|
||||
p.print(_Type, blank)
|
||||
}
|
||||
p.print(n.Name, blank)
|
||||
if n.Alias {
|
||||
p.print(_Assign, blank)
|
||||
}
|
||||
p.print(n.Type)
|
||||
p.print(n.Name, blank, n.Type)
|
||||
|
||||
case *VarDecl:
|
||||
if n.Group == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue