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
52 lines
2.0 KiB
Plaintext
Vendored
52 lines
2.0 KiB
Plaintext
Vendored
KT element: KtNameReferenceExpression
|
|
FIR element: FirResolvedNamedReferenceImpl
|
|
FIR source kind: KtRealSourceElementKind
|
|
|
|
FIR element rendered:
|
|
R|/A.prop|
|
|
|
|
FIR FILE:
|
|
FILE: [ResolvedTo(IMPORTS)] qualifiedCallInsideSuperCall4.kt
|
|
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor([ResolvedTo(STATUS)] init: R|A.() -> kotlin/Unit|): R|A| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
public final [ResolvedTo(CONTRACTS)] val prop: R|kotlin/String| = String()
|
|
public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] get(): R|kotlin/String|
|
|
|
|
}
|
|
public final [ResolvedTo(STATUS)] object B : R|A| {
|
|
private [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| {
|
|
LAZY_super<R|A|>
|
|
}
|
|
|
|
}
|
|
public final [ResolvedTo(STATUS)] object C : R|A| {
|
|
private [ResolvedTo(STATUS)] [ContainingClassKey=C] constructor(): R|C| {
|
|
LAZY_super<R|A|>
|
|
}
|
|
|
|
}
|
|
public final [ResolvedTo(BODY_RESOLVE)] class G : R|A| {
|
|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=G] error_constructor(): R|G| {
|
|
super<R|A|>([ResolvedTo(RAW_FIR)] [MatchingParameterFunctionTypeKey=@ExtensionFunctionType kotlin/Function1<A, kotlin/Unit>] fun R|A|.<anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
|
local final [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/String| {
|
|
^foo Q|B|.R|/A.prop|.R|kotlin/String.toString|()
|
|
}
|
|
|
|
}
|
|
)
|
|
}
|
|
|
|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=G] constructor(): R|G| {
|
|
super<R|A|>([ResolvedTo(RAW_FIR)] [MatchingParameterFunctionTypeKey=@ExtensionFunctionType kotlin/Function1<A, kotlin/Unit>] fun R|A|.<anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
|
local final [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/String| {
|
|
^foo Q|C|.R|/A.prop|.R|kotlin/String.toString|()
|
|
}
|
|
|
|
}
|
|
)
|
|
}
|
|
|
|
} |