From 119324d785ea091050adc2aa56a0a601ad59e204 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 17 Sep 2008 14:26:01 -0700 Subject: [PATCH] - updated printing of chan types R=r OCL=15448 CL=15448 --- usr/gri/gosrc/printer.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/usr/gri/gosrc/printer.go b/usr/gri/gosrc/printer.go index bcd7edb6c3..d0c5a08f2d 100755 --- a/usr/gri/gosrc/printer.go +++ b/usr/gri/gosrc/printer.go @@ -238,14 +238,12 @@ func (P *Printer) PrintTypeStruct(typ *Globals.Type) { P.PrintType(typ.elt); case Type.CHANNEL: - print("chan"); switch typ.flags { - case Type.SEND: print(" -<"); - case Type.RECV: print(" <-"); - case Type.SEND + Type.RECV: // nothing to print + case Type.SEND: print("chan <- "); + case Type.RECV: print("<- chan "); + case Type.SEND + Type.RECV: print("chan "); default: panic("UNREACHABLE"); } - print(" "); P.PrintType(typ.elt); case Type.FUNCTION: -- 2.48.1