mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix js tests: don't load stub if there's none
This commit is contained in:
@@ -250,12 +250,12 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
}
|
||||
|
||||
public boolean isStubBasedChildValid(@NotNull StubBasedPsiElementBase psi) {
|
||||
StubElement fileStub = getStub();
|
||||
StubTree fileStub = derefStub();
|
||||
if (fileStub != null) {
|
||||
synchronized (myStubLock) {
|
||||
fileStub = getStub();
|
||||
fileStub = derefStub();
|
||||
StubElement childStub = psi.getStub();
|
||||
if (fileStub != null && childStub != null && fileStub != childStub.getParentStub()) {
|
||||
if (fileStub != null && childStub != null && fileStub.getRoot() != childStub.getParentStub()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user