[FE 1.0] Store builder inference session in the corresponding lambda argument

This commit is contained in:
Victor Petukhov
2021-12-24 12:55:56 +03:00
committed by teamcity
parent 74f294d849
commit 4dc9b291e5
3 changed files with 13 additions and 0 deletions
@@ -9,6 +9,7 @@ import org.jetbrains.kotlin.descriptors.ClassDescriptor
import org.jetbrains.kotlin.descriptors.TypeAliasDescriptor
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.resolve.DescriptorUtils
import org.jetbrains.kotlin.resolve.calls.components.InferenceSession
import org.jetbrains.kotlin.resolve.scopes.receivers.DetailedReceiver
import org.jetbrains.kotlin.resolve.scopes.receivers.QualifierReceiver
import org.jetbrains.kotlin.resolve.scopes.receivers.ReceiverValueWithSmartCastInfo
@@ -60,6 +61,10 @@ interface LambdaKotlinCallArgument : PostponableKotlinCallArgument {
get() = false
set(@Suppress("UNUSED_PARAMETER") value) {}
var builderInferenceSession: InferenceSession?
get() = null
set(@Suppress("UNUSED_PARAMETER") value) {}
/**
* parametersTypes == null means, that there is no declared arguments
* null inside array means that this type is not declared explicitly