AnalysisEngine.getInstance().getLogger().logError(
"Could not find type Future in dart:async");
return VoidTypeImpl.getInstance();
}
InterfaceType futureType = futureElement.getType();
return futureType.substitute(new Type[] {DynamicTypeImpl.getInstance()});
} catch (AnalysisException exception) {
AnalysisEngine.getInstance().getLogger().logError(
"Could not build the element model for dart:async",
exception);
return VoidTypeImpl.getInstance();