DartEntry dartEntry = getReadableDartEntry(librarySource);
if (dartEntry != null) {
DartEntryImpl dartCopy = dartEntry.getWritableCopy();
recordElementData(dartCopy, library, library.getSource(), htmlSource);
dartCopy.setState(SourceEntry.CONTENT, CacheState.FLUSHED);
dartCopy.setValue(SourceEntry.LINE_INFO, new LineInfo(new int[] {0}));
dartCopy.setValue(DartEntry.ANGULAR_ERRORS, AnalysisError.NO_ERRORS);
// DartEntry.ELEMENT - set in recordElementData
dartCopy.setValue(DartEntry.EXPORTED_LIBRARIES, Source.EMPTY_ARRAY);
dartCopy.setValue(DartEntry.IMPORTED_LIBRARIES, Source.EMPTY_ARRAY);
dartCopy.setValue(DartEntry.INCLUDED_PARTS, Source.EMPTY_ARRAY);