[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) {
|
||||
val ktParam = if (parameter.source?.psi is KtParameter) {
|
||||
parameter.source
|
||||
} else {
|
||||
declaration.source
|
||||
}
|
||||
|
||||
val ktParam = parameter.source
|
||||
if (ktParam?.allowsReporting != true) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user