[FIR] Fix configuring label name for lambdas in light tree builder
This commit is contained in:
+2
-1
@@ -123,7 +123,8 @@ class ExpressionsConverter(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val target = FirFunctionTarget(labelName = lambdaExpression.getLabelName(), isLambda = true)
|
val labelName = lambdaExpression.getLabelName() ?: context.firFunctionCalls.lastOrNull()?.calleeReference?.name?.asString()
|
||||||
|
val target = FirFunctionTarget(labelName = labelName, isLambda = true)
|
||||||
return buildAnonymousFunction {
|
return buildAnonymousFunction {
|
||||||
source = lambdaExpression.toFirSourceElement()
|
source = lambdaExpression.toFirSourceElement()
|
||||||
session = baseSession
|
session = baseSession
|
||||||
|
|||||||
Reference in New Issue
Block a user