Use stub in JetImportDirective#isValidImport()
This commit is contained in:
@@ -121,6 +121,10 @@ public class JetImportDirective extends JetElementImplStub<PsiJetImportDirective
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isValidImport() {
|
public boolean isValidImport() {
|
||||||
|
PsiJetImportDirectiveStub stub = getStub();
|
||||||
|
if (stub != null) {
|
||||||
|
return stub.isValid();
|
||||||
|
}
|
||||||
return !PsiTreeUtil.hasErrorElements(this);
|
return !PsiTreeUtil.hasErrorElements(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user