Revert "use separate modificationCount for PSI and Document (fixes psifile-dependent CachedValues)"

This reverts commit 306b9ada21.

naive fix reverted
This commit is contained in:
Gregory.Shrago
2012-05-18 18:44:59 +04:00
parent 1ca972e118
commit 299d359566
@@ -73,7 +73,6 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
private IElementType myElementType;
protected IElementType myContentElementType;
private long myModificationStamp;
protected PsiFile myOriginalFile = null;
private final FileViewProvider myViewProvider;
@@ -355,9 +354,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
myStub = null;
}
public void clearCaches() {
myModificationStamp ++;
}
public void clearCaches() {}
@Override
public String getText() {
@@ -389,7 +386,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
@Override
public long getModificationStamp() {
return myModificationStamp;
return getViewProvider().getModificationStamp();
}
@Override