[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:
committed by
Space Team
parent
9370f42eda
commit
ac8b39cbde
+1
-6
@@ -88,12 +88,7 @@ object FirJsExternalChecker : FirWebCommonExternalChecker() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (parameter in declaration.valueParameters) {
|
for (parameter in declaration.valueParameters) {
|
||||||
val ktParam = if (parameter.source?.psi is KtParameter) {
|
val ktParam = parameter.source
|
||||||
parameter.source
|
|
||||||
} else {
|
|
||||||
declaration.source
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ktParam?.allowsReporting != true) {
|
if (ktParam?.allowsReporting != true) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user