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:
Robert Griesemer 2016-10-21 17:23:01 -07:00
parent 1b0cf430dd
commit c0e2318f7c
4 changed files with 8 additions and 19 deletions

View file

@ -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 {