]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: convert cgen/gen/pgen and friends to nodeListSeq
authorIan Lance Taylor <iant@golang.org>
Thu, 3 Mar 2016 23:08:25 +0000 (15:08 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 3 Mar 2016 23:33:24 +0000 (23:33 +0000)
commitbf3909824ccf0c03e372d1a341792a8f783f03f7
tree52cd14c09b72d07a09a7577573e5877cb7aecd4f
parentca56c590d4dfaa655d2355b382d6a950911f3263
cmd/compile: convert cgen/gen/pgen and friends to nodeListSeq

Added Seq method to nodeListIterator. Added new functions nodeSeqLen,
nodeSeqFirst, nodeSeqSecond. Allow nil as source argument to setNodeSeq.

Change-Id: Ifc1cd4d7207b7a125b3830c92c4d6d6f00eedd54
Reviewed-on: https://go-review.googlesource.com/20195
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/cgen.go
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/walk.go