Skip to content

Commit

Permalink
cmd/compile: remove old lexer and parser
Browse files Browse the repository at this point in the history
Change-Id: I7306d28930dc4538a3bee31ff5d22f3f40681ec5
Reviewed-on: https://go-review.googlesource.com/32020
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
mdempsky committed Oct 25, 2016
1 parent 575b1dd commit 57df2f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3,601 deletions.
17 changes: 0 additions & 17 deletions src/cmd/compile/internal/gc/dcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,23 +487,6 @@ func colasdefn(left []*Node, defn *Node) {
}
}

func colas(left, right []*Node, lno int32) *Node {
n := nod(OAS, nil, nil) // assume common case
n.Colas = true
n.Lineno = lno // set before calling colasdefn for correct error line
colasdefn(left, n) // modifies left, call before using left[0] in common case
if len(left) == 1 && len(right) == 1 {
// common case
n.Left = left[0]
n.Right = right[0]
} else {
n.Op = OAS2
n.List.Set(left)
n.Rlist.Set(right)
}
return n
}

// declare the arguments in an
// interface field declaration.
func ifacedcl(n *Node) {
Expand Down
Loading

0 comments on commit 57df2f8

Please sign in to comment.