diff options
author | Russ Cox <rsc@golang.org> | 2009-07-10 16:29:26 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-07-10 16:29:26 -0700 |
commit | 613f3db11b2f6a7ccfc258a7b4b2b2218c983bd7 (patch) | |
tree | 0acef8729ebc7624b6ad363a7a1164edb5a4dc13 /src/cmd/gc/sinit.c | |
parent | 9552513e7a01ffe752213e89876425fea4b70887 (diff) | |
download | golang-613f3db11b2f6a7ccfc258a7b4b2b2218c983bd7.tar.gz |
cleanup in preparation for new scoping.
walkstate -> walkstmt
walktype -> walkexpr; stmts moved to walkstmt
walktype and friends have a final Node **init
argument that can have side effects appended,
making it more explicit when they do and do not happen.
this replaces the old global addtop and addtotop.
delete switch map and interface conversion cases
(dropped from the language months ago).
R=ken
OCL=31465
CL=31468
Diffstat (limited to 'src/cmd/gc/sinit.c')
-rw-r--r-- | src/cmd/gc/sinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/sinit.c b/src/cmd/gc/sinit.c index 021b03014..fa7aabdab 100644 --- a/src/cmd/gc/sinit.c +++ b/src/cmd/gc/sinit.c @@ -249,7 +249,7 @@ mapindex(Node *n) b = nod(OAS, b, val); a = nod(OLIST, a, b); - walktype(a, Etop); + walkexpr(a, Etop, nil); return a; } |