[FIR] Add session parameter to all "element --> reference" utilities
`FirDeserializedEnumAccessExpression` requires session to build proper reference, so it's important to have it in all utilities, which may pass this element as input ^KT-64975
This commit is contained in:
committed by
Space Team
parent
bd9cb2b7e0
commit
150ff1172e
+1
-1
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.name.WebCommonStandardClassIds
|
||||
|
||||
object FirWasmDefinedExternallyCallChecker : FirBasicExpressionChecker(MppCheckerKind.Common) {
|
||||
override fun check(expression: FirStatement, context: CheckerContext, reporter: DiagnosticReporter) {
|
||||
val symbol = expression.toReference()?.toResolvedCallableSymbol() ?: return
|
||||
val symbol = expression.toReference(context.session)?.toResolvedCallableSymbol() ?: return
|
||||
|
||||
if (symbol.callableId != WebCommonStandardClassIds.Callables.JsDefinedExternally) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user