[Wasm] Suppress unused parameters warning for functions with JS body

These parameters can be used in js(code)
This commit is contained in:
Svyatoslav Kuzmich
2023-02-21 21:06:32 +01:00
committed by Space Team
parent 71e6b19760
commit 60ef7fcb49
6 changed files with 75 additions and 8 deletions
@@ -731,7 +731,7 @@ class ControlFlowInformationProviderImpl private constructor(
if (functionDescriptor.isExpect || functionDescriptor.isActual ||
functionDescriptor.isEffectivelyExternal() ||
!diagnosticSuppressor.shouldReportUnusedParameter(variableDescriptor)
!diagnosticSuppressor.shouldReportUnusedParameter(variableDescriptor, trace.bindingContext)
) return
when (val owner = element.parent.parent) {