diagnostics for EA-57731 - assert: PsiFileFactoryImpl.markGenerated

This commit is contained in:
peter
2014-07-01 18:15:10 +02:00
parent 85da044664
commit 3bc3af598b
@@ -114,6 +114,9 @@ public class PsiFileFactoryImpl extends PsiFileFactory {
final PsiFile psiFile = viewProvider.getPsi(language);
if (psiFile != null) {
if (markAsCopy) {
if (psiFile.getNode() == null) {
throw new AssertionError("No node for file " + psiFile + "; language=" + language);
}
markGenerated(psiFile);
}
return psiFile;