more diagnostics on stub-ast mismatch

This commit is contained in:
peter
2013-06-07 23:06:28 +02:00
parent b82f6dd943
commit 8920b8969c
@@ -448,14 +448,15 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
if (psiFile != null) {
msg += "\nviewProvider stamp: " + psiFile.getViewProvider().getModificationStamp();
if (psiFile instanceof PsiFileImpl) {
StubElement stub = ((PsiFileImpl)psiFile).getStub();
msg += "; psi.stubbed: " + (stub != null);
StubTree stub = ((PsiFileImpl)psiFile).getStubTree();
if (stub == null) {
FileElement treeElement = ((PsiFileImpl)psiFile).getTreeElement();
msg += "; ast loaded: " + (treeElement != null);
if (treeElement != null) {
msg += "; ast parsed: " + treeElement.isParsed();
}
} else {
msg += "\nstub info=" + stub.getDebugInfo();
}
}
}