Source
bool isDocumented(Element element) {
// If this isn't a private element and we have a canonical Library for it,
// this element will be documented.
if (isPrivate(element)) return false;
return findCanonicalLibraryFor(element) != null;
}