Refactor FunctionReferenceGenerationStrategy
Draw a clear distinction between the referenced function's parameters and the anonymous synthetic function's parameters (see the comment). This will be useful in supporting advanced callable reference features like KT-8834
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ object CallableReferenceTranslator {
|
||||
receiver: JsExpression?
|
||||
): JsExpression {
|
||||
val realResolvedCall = expression.callableReference.getFunctionResolvedCallWithAssert(context.bindingContext())
|
||||
val fakeExpression = CodegenUtil.constructFakeFunctionCall(expression.project, descriptor)
|
||||
val fakeExpression = CodegenUtil.constructFakeFunctionCall(expression.project, descriptor.valueParameters.size)
|
||||
|
||||
val fakeCall = CallMaker.makeCall(fakeExpression, null, null, fakeExpression, fakeExpression.valueArguments)
|
||||
val fakeResolvedCall = object : DelegatingResolvedCall<FunctionDescriptor>(realResolvedCall) {
|
||||
|
||||
Reference in New Issue
Block a user