mirror of
https://github.com/golang/go.git
synced 2025-05-28 10:51:22 +00:00
- updated printing of chan types
R=r OCL=15448 CL=15448
This commit is contained in:
parent
f0635bbfaa
commit
119324d785
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user