oracle: describe: backport fix to 1.4, 1.5

(See CL 19158, bug 14160, commit 35b3d64)

Change-Id: I01ee2bb0eca072141b2c4551789793b1d5c480e3
Reviewed-on: https://go-review.googlesource.com/19189
Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
Alan Donovan 2016-02-04 11:29:55 -05:00
parent 35b3d645bc
commit a6e3cc80e8
2 changed files with 12 additions and 0 deletions

View File

@ -680,6 +680,12 @@ func tokenOf(o types.Object) string {
return "const"
case *types.PkgName:
return "package"
case *types.Builtin:
return "builtin" // e.g. when describing package "unsafe"
case *types.Nil:
return "nil"
case *types.Label:
return "label"
}
panic(o)
}

View File

@ -680,6 +680,12 @@ func tokenOf(o types.Object) string {
return "const"
case *types.PkgName:
return "package"
case *types.Builtin:
return "builtin" // e.g. when describing package "unsafe"
case *types.Nil:
return "nil"
case *types.Label:
return "label"
}
panic(o)
}