resolveReference method
Resolves ref; when the resolved element is partial, the full
instance is loaded and ref resolved again. (As in JavaRosa, only
the resolved element itself is checked, not its ancestors.)
Implementation
@override
TreeElement? resolveReference(TreeReference ref) {
try {
return super.resolveReference(ref);
} on PartialElementEncounteredException {
final reload = _reload;
if (reload == null) rethrow;
_setRoot(reload());
return resolveReference(ref);
}
}