[FIR] Don't resolve parameters in function types in invalid code

^KTIJ-25653 fixed

Merge-request: KT-MR-10831
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
Egor Kulikov
2023-07-03 16:30:14 +00:00
committed by Space Team
parent ab149e1053
commit 19fb6e7458
@@ -157,15 +157,7 @@ public class KtParameter extends KtNamedDeclarationStub<KotlinParameterStub> imp
if (parent == null) {
return false;
}
if (klass.isInstance(parent.getParent())) {
//don't check ast if the tree structure is different; skip for compiled code
if (!getContainingKtFile().isCompiled() &&
parent.getNextSibling() instanceof PsiErrorElement) {
return false;
}
return true;
}
return false;
return klass.isInstance(parent.getParent());
}
public boolean isCatchParameter() {