avoid parsing during disposal of smart pointers

This commit is contained in:
Maxim.Mossienko
2013-07-29 13:53:31 +02:00
parent 3957e337ca
commit 37a064255f
@@ -76,6 +76,10 @@ class FileElementInfo implements SmartPointerElementInfo {
if (other instanceof FileElementInfo) {
return Comparing.equal(myVirtualFile, ((FileElementInfo)other).myVirtualFile);
}
if (other instanceof SelfElementInfo && ((SelfElementInfo)other).getSyncStartOffset() != 0) {
// SelfElementInfo need psi (parsing) for element restoration and apriori could not reference psi file
return false;
}
return Comparing.equal(restoreElement(), other.restoreElement());
}