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:
parent
35b3d645bc
commit
a6e3cc80e8
|
@ -680,6 +680,12 @@ func tokenOf(o types.Object) string {
|
||||||
return "const"
|
return "const"
|
||||||
case *types.PkgName:
|
case *types.PkgName:
|
||||||
return "package"
|
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)
|
panic(o)
|
||||||
}
|
}
|
||||||
|
|
|
@ -680,6 +680,12 @@ func tokenOf(o types.Object) string {
|
||||||
return "const"
|
return "const"
|
||||||
case *types.PkgName:
|
case *types.PkgName:
|
||||||
return "package"
|
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)
|
panic(o)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue