[LL FIR] LLFirContractsLazyResolver: avoid transformation for primary constructors

Primary constructors can't have any contracts.
This change also should improve memory consumption because we will
less frequently calculate bodies.

^KT-55750
This commit is contained in:
Dmitrii Gridin
2023-09-20 14:21:39 +02:00
committed by Space Team
parent d5047bfa90
commit 850201a65c
39 changed files with 125 additions and 113 deletions
@@ -202,7 +202,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclarationScript.kts
public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
LAZY_super<R|kotlin/Any|>
}
}
@@ -223,7 +223,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclarationScript.kts
public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
LAZY_super<R|kotlin/Any|>
}
}
@@ -244,7 +244,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclarationScript.kts
public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
LAZY_super<R|kotlin/Any|>
}
}
@@ -290,3 +290,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] redeclarationScript.kts
}
}