03fc0fd381
It's not really necessary if the information about if the lambda was a trailing lambda can be directly saved in FirAnonymousFunctionExpression. Removing the FIR node uncovered a couple of bugs (UNINITIALIZED_ENUM_ENTRY, ERROR_IN_CONTRACT_DESCRIPTION) that were caused by assuming that a lambda is always a trailing lambda. #KT-66124
17 lines
729 B
Plaintext
Vendored
17 lines
729 B
Plaintext
Vendored
KT element: KtLambdaArgument
|
|
FIR element: FirAnonymousFunctionExpressionImpl
|
|
FIR source kind: KtRealSourceElementKind
|
|
|
|
FIR element rendered:
|
|
<L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function0<R>] run@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
|
^ Int(1)
|
|
}
|
|
|
|
FIR FILE:
|
|
FILE: [ResolvedTo(IMPORTS)] lambdaExpression.kt
|
|
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = R|kotlin/run|<R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function0<R>] run@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=EXACTLY_ONCE> {
|
|
^ Int(1)
|
|
}
|
|
)
|
|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|