private final Set<FileType> myFileTypes;
private volatile CompilerReferenceReader myReader;
- private volatile GlobalSearchScope myMayContainInvalidDataScope = GlobalSearchScope.EMPTY_SCOPE;
+ private volatile GlobalSearchScope myDirtyScope = GlobalSearchScope.EMPTY_SCOPE;
private final Object myLock = new Object();
@Override
public boolean execute(CompileContext context) {
myChangedModules.clear();
- myMayContainInvalidDataScope = GlobalSearchScope.EMPTY_SCOPE;
+ myDirtyScope = GlobalSearchScope.EMPTY_SCOPE;
openReaderIfNeed();
return true;
}
final Module module = myProjectFileIndex.getModuleForFile(file);
if (module != null) {
if (myChangedModules.add(module)) {
- myMayContainInvalidDataScope = myMayContainInvalidDataScope.union(module.getModuleWithDependentsScope());
+ myDirtyScope = myDirtyScope.union(module.getModuleWithDependentsScope());
}
}
}
if (referentFileIds == null) return null;
return new ScopeWithBytecodeReferences(referentFileIds)
- .union(myMayContainInvalidDataScope)
+ .union(myDirtyScope)
.union(LibraryScopeCache.getInstance(element.getProject()).getLibrariesOnlyScope())
.union(GlobalSearchScope.notScope(GlobalSearchScope.getScopeRestrictedByFileTypes(GlobalSearchScope.allScope(myProject), myFileTypes.toArray(new FileType[myFileTypes.size()]))));
}
return null;
}
- if (myMayContainInvalidDataScope.contains(vFile)) {
+ if (myDirtyScope.contains(vFile)) {
return null;
}
CompilerElement[] compilerElements = place == ElementPlace.SRC