[FIR] PsiRawFirBuilder: reuse type for property from constructor parameter

Previously, this call was required to avoid sharing to have independent
instances with their own resolution cycle. Now we will have stable
order (in the next commit), so it is possible to share instances.
Also, this change makes the logic consistency with Light Tree

^KT-63042
This commit is contained in:
Dmitrii Gridin
2023-11-20 15:28:07 +01:00
committed by Space Team
parent 8dacd41818
commit 6ecaccbcfe
55 changed files with 175 additions and 166 deletions
@@ -12,9 +12,9 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArguments.k
LAZY_super<R|A|>
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(String(abc)) kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|(String(abc)) kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|(String(abc)) kotlin/Boolean|): R|kotlin/Unit|
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|(value = String(abc)) kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|(value = String(abc)) kotlin/Boolean|): R|kotlin/Unit|
}
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
@@ -16,9 +16,9 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArgumentsSc
LAZY_super<R|A|>
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(String(abc)) kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|(String(abc)) kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|(String(abc)) kotlin/Boolean|): R|kotlin/Unit|
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = R|<local>/addCommaWarning|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|@R|Anno|(value = String(abc)) kotlin/Boolean|
public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] set([ResolvedTo(STATUS)] value: R|@R|Anno|(value = String(abc)) kotlin/Boolean|): R|kotlin/Unit|
}