[FIR JS] Remove weird source picking in FirJsExternalChecker

Otherwise, these tests fail due to
misplaced diagnostics in LT:
- `testExtensionFunctionArgumentOrReturnType`
- `testInlineClassAsParameterOrReturnType_allowed_kt`
- `testInlineClassAsParameterOrReturnType_kt`
This commit is contained in:
Nikolay Lunyak
2024-01-09 12:27:45 +02:00
committed by Space Team
parent 9370f42eda
commit ac8b39cbde
@@ -88,12 +88,7 @@ object FirJsExternalChecker : FirWebCommonExternalChecker() {
}
for (parameter in declaration.valueParameters) {
val ktParam = if (parameter.source?.psi is KtParameter) {
parameter.source
} else {
declaration.source
}
val ktParam = parameter.source
if (ktParam?.allowsReporting != true) {
continue
}