put method

void put(
  1. String relativePath,
  2. SourceFile sourceFile
)

Implementation

void put(String relativePath, SourceFile sourceFile) {
  final existing = _cache[relativePath];
  if (existing == null || existing.contentHash != sourceFile.contentHash) {
    _cache[relativePath] = sourceFile;
    _isDirty = true;
  }
}