Package com.google.dart.engine.internal.cache

Examples of com.google.dart.engine.internal.cache.SourceEntryImpl


                getReadableSourceEntry(source));
          }
          sourceChanged(source);
          SourceEntry sourceEntry = cache.get(source);
          if (sourceEntry != null) {
            SourceEntryImpl sourceCopy = sourceEntry.getWritableCopy();
            sourceCopy.setModificationTime(contentCache.getModificationStamp(source));
            sourceCopy.setValue(SourceEntry.CONTENT, contents);
            cache.put(source, sourceCopy);
          }
        }
      } else if (originalContents != null) {
        incrementalAnalysisCache = IncrementalAnalysisCache.clear(incrementalAnalysisCache, source);
View Full Code Here


              incrementalAnalysisCache,
              source);
          sourceChanged(source);
          SourceEntry sourceEntry = cache.get(source);
          if (sourceEntry != null) {
            SourceEntryImpl sourceCopy = sourceEntry.getWritableCopy();
            sourceCopy.setModificationTime(contentCache.getModificationStamp(source));
            sourceCopy.setValue(SourceEntry.CONTENT, contents);
            cache.put(source, sourceCopy);
          }
        }
      } else if (originalContents != null) {
        incrementalAnalysisCache = IncrementalAnalysisCache.clear(incrementalAnalysisCache, source);
View Full Code Here

   * @param source the source whose content is to be accessed
   * @param sourceEntry the entry for the source
   * @return task data representing the created task
   */
  private TaskData createGetContentTask(Source source, SourceEntry sourceEntry) {
    SourceEntryImpl sourceCopy = sourceEntry.getWritableCopy();
    sourceCopy.setState(SourceEntry.CONTENT, CacheState.IN_PROCESS);
    cache.put(source, sourceCopy);
    return new TaskData(new GetContentTask(this, source), false);
  }
View Full Code Here

    synchronized (cacheLock) {
      sourceEntry = cache.get(source);
      if (sourceEntry == null) {
        throw new ObsoleteSourceAnalysisException(source);
      }
      SourceEntryImpl sourceCopy = sourceEntry.getWritableCopy();
      if (thrownException == null) {
        sourceCopy.setModificationTime(task.getModificationTime());
        sourceCopy.setValue(SourceEntry.CONTENT, task.getContent());
      } else {
        sourceCopy.recordContentError(thrownException);
        workManager.remove(source);
      }
      cache.put(source, sourceCopy);
      sourceEntry = sourceCopy;
    }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.cache.SourceEntryImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.