boolean mayIndex = indexStore.aboutToIndexDart(context, unitElement);
if (!mayIndex) {
return;
}
unit.accept(new IndexContributor(indexStore));
unit.accept(new AngularDartIndexContributor(indexStore));
indexStore.doneIndex();
} catch (Throwable exception) {
AnalysisEngine.getInstance().getLogger().logError(
"Could not index " + unit.getElement().getLocation(),
exception);