From: Robert Griesemer Date: Wed, 17 Sep 2008 21:26:01 +0000 (-0700) Subject: - updated printing of chan types X-Git-Tag: weekly.2009-11-06~3186 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=119324d785ea091050adc2aa56a0a601ad59e204;p=gostls13.git - updated printing of chan types R=r OCL=15448 CL=15448 --- 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: