[FIR] Fix binding return expression to function
This commit is contained in:
@@ -38,6 +38,7 @@ abstract class FirAnonymousFunction : FirPureAbstractElement(), FirFunction<FirA
|
||||
abstract override val symbol: FirAnonymousFunctionSymbol
|
||||
abstract val label: FirLabel?
|
||||
abstract val invocationKind: InvocationKind?
|
||||
abstract val isLambda: Boolean
|
||||
|
||||
override fun <R, D> accept(visitor: FirVisitor<R, D>, data: D): R = visitor.visitAnonymousFunction(this, data)
|
||||
|
||||
|
||||
+2
-1
@@ -33,7 +33,8 @@ class FirAnonymousFunctionImpl(
|
||||
override val session: FirSession,
|
||||
override var returnTypeRef: FirTypeRef,
|
||||
override var receiverTypeRef: FirTypeRef?,
|
||||
override val symbol: FirAnonymousFunctionSymbol
|
||||
override val symbol: FirAnonymousFunctionSymbol,
|
||||
override val isLambda: Boolean
|
||||
) : FirAnonymousFunction(), FirModifiableFunction<FirAnonymousFunction>, FirAbstractAnnotatedElement {
|
||||
override var resolvePhase: FirResolvePhase = FirResolvePhase.DECLARATIONS
|
||||
override val annotations: MutableList<FirAnnotationCall> = mutableListOf()
|
||||
|
||||
+1
@@ -253,6 +253,7 @@ object NodeConfigurator : AbstractFieldConfigurator() {
|
||||
+field(invocationKindType, nullable = true, withReplace = true).apply {
|
||||
isMutable = true
|
||||
}
|
||||
+booleanField("isLambda")
|
||||
}
|
||||
|
||||
typeParameter.configure {
|
||||
|
||||
Reference in New Issue
Block a user