Returns the ModelElement from which we will get documentation.
This getter will walk up the inheritance hierarchy to find docs, if the current class doesn't have docs for this element.
Source
@override ModelElement get documentationFrom { if (_documentationFrom == null) { if (_computeDocumentationComment == null && canOverride() && overriddenElement != null) { _documentationFrom = overriddenElement; } else if (this is Inheritable && (this as Inheritable).isInherited) { Inheritable thisInheritable = (this as Inheritable); ModelElement fromThis = new ModelElement.from( element, thisInheritable.definingEnclosingElement.library); _documentationFrom = fromThis.documentationFrom; } else { _documentationFrom = this; } } return _documentationFrom; }