godoc/analysis: remove obsolete comment.
The bug it refers to is now fixed, and the alternative implementation it suggests is not an improvement. LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/151620044
This commit is contained in:
parent
ea1477608d
commit
e2e1830b02
|
@ -230,9 +230,5 @@ func deref(typ types.Type) types.Type {
|
||||||
|
|
||||||
// isPackageLevel reports whether obj is a package-level object.
|
// isPackageLevel reports whether obj is a package-level object.
|
||||||
func isPackageLevel(obj types.Object) bool {
|
func isPackageLevel(obj types.Object) bool {
|
||||||
// TODO(adonovan): fix go/types bug:
|
|
||||||
// obj.Parent().Parent() == obj.Pkg().Scope()
|
|
||||||
// doesn't work because obj.Parent() gets mutated during
|
|
||||||
// dot-imports.
|
|
||||||
return obj.Pkg().Scope().Lookup(obj.Name()) == obj
|
return obj.Pkg().Scope().Lookup(obj.Name()) == obj
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue