mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics for EA-57731 - assert: PsiFileFactoryImpl.markGenerated
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user