mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: enable new parser by default
Change-Id: I3c784986755cfbbe1b8eb8da4d64227bd109a3b0 Reviewed-on: https://go-review.googlesource.com/27203 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
263a825b05
commit
adda7ad295
8 changed files with 15 additions and 28 deletions
|
|
@ -578,6 +578,7 @@ func (p *noder) structType(expr *syntax.StructType) *Node {
|
|||
l = append(l, n)
|
||||
}
|
||||
|
||||
p.lineno(expr)
|
||||
n := p.nod(expr, OTSTRUCT, nil, nil)
|
||||
n.List.Set(l)
|
||||
return n
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue