Source librarySource, DartEntry libraryEntry) {
if (unitEntry.getStateInLibrary(DartEntry.RESOLVED_UNIT, librarySource) != CacheState.VALID
|| libraryEntry.getState(DartEntry.ELEMENT) != CacheState.VALID) {
return createResolveDartLibraryTask(librarySource, libraryEntry);
}
CompilationUnit unit = unitEntry.getValueInLibrary(DartEntry.RESOLVED_UNIT, librarySource);
if (unit == null) {
AnalysisException exception = new AnalysisException(
"Entry has VALID state for RESOLVED_UNIT but null value for " + unitSource.getFullName()
+ " in " + librarySource.getFullName());
AnalysisEngine.getInstance().getLogger().logInformation(exception.getMessage(), exception);