[Wasm] Restore binary compatibility of PlatformDiagnosticSuppressor

Keep the original shouldReportUnusedParameter method without
 BindingContext parameter

^KT-58188 Fixed
This commit is contained in:
Svyatoslav Kuzmich
2023-05-17 09:15:07 +02:00
committed by teamcity
parent e39d9c2c35
commit dc4aa8c15e
5 changed files with 15 additions and 5 deletions
@@ -780,7 +780,8 @@ class ControlFlowInformationProviderImpl private constructor(
if (functionDescriptor.isExpect || functionDescriptor.isActual ||
functionDescriptor.isEffectivelyExternal() ||
!diagnosticSuppressor.shouldReportUnusedParameter(variableDescriptor, trace.bindingContext)
!diagnosticSuppressor.shouldReportUnusedParameter(variableDescriptor, trace.bindingContext) ||
!diagnosticSuppressor.shouldReportUnusedParameter(variableDescriptor)
) return
when (val owner = element.parent.parent) {