From db7a2024f93e45848d2b204fecabe830b5079445 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 15 Apr 2011 10:34:55 -0400 Subject: [PATCH] gc: printing of multiple assignment R=ken2 CC=golang-dev https://golang.org/cl/4429043 --- src/cmd/gc/print.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cmd/gc/print.c b/src/cmd/gc/print.c index fee37f6d01f..e03a1408018 100644 --- a/src/cmd/gc/print.c +++ b/src/cmd/gc/print.c @@ -242,6 +242,17 @@ exprfmt(Fmt *f, Node *n, int prec) exprfmt(f, n->right, 0); break; + case OAS2: + case OAS2DOTTYPE: + case OAS2FUNC: + case OAS2MAPR: + case OAS2MAPW: + case OAS2RECV: + exprlistfmt(f, n->list); + fmtprint(f, " = "); + exprlistfmt(f, n->rlist); + break; + case OADD: case OANDAND: case OANDNOT: