Permalink
Browse files

cmd/compile: remove old lexer and parser

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 57df2f802f0417f08100ff8002f3b062e695e148
@@ -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) {
Oops, something went wrong.

0 comments on commit 57df2f8

Please sign in to comment.