buildCanonicalModelElement method
Implementation
ModelElement buildCanonicalModelElement() {
Container preferredClass;
if (enclosingElement is Class || enclosingElement is Extension) {
preferredClass = enclosingElement;
}
return packageGraph.findCanonicalModelElementFor(element,
preferredClass: preferredClass);
}