drop java file declaration cache on any change in non-physical files (EA-62664)

This commit is contained in:
peter
2014-11-24 17:43:26 +01:00
parent 9154ce7821
commit 9ad4a2bfb7
@@ -479,6 +479,9 @@ public abstract class PsiJavaFileBaseImpl extends PsiFileImpl implements PsiJava
SymbolCollectingProcessor p = new SymbolCollectingProcessor();
myFile.processDeclarationsNoGuess(p, ResolveState.initial(), myFile, myFile);
MostlySingularMultiMap<String, SymbolCollectingProcessor.ResultWithContext> results = p.getResults();
if (!myFile.isPhysical()) {
return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT, myFile);
}
return Result.create(results, PsiModificationTracker.JAVA_STRUCTURE_MODIFICATION_COUNT);
}
}