diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirContractsLazyResolver.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirContractsLazyResolver.kt index d7ab450e1c4..47aa85f9816 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirContractsLazyResolver.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirContractsLazyResolver.kt @@ -17,6 +17,7 @@ import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.contracts.FirRawContractDescription import org.jetbrains.kotlin.fir.declarations.* +import org.jetbrains.kotlin.fir.declarations.impl.FirPrimaryConstructor import org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty import org.jetbrains.kotlin.fir.resolve.ScopeSession import org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirResolveContextCollector @@ -71,6 +72,10 @@ private class LLFirContractsTargetResolver( override fun doLazyResolveUnderLock(target: FirElementWithResolveState) { when (target) { + is FirPrimaryConstructor, is FirErrorPrimaryConstructor -> { + // No contracts here + } + is FirSimpleFunction -> { // There is no sense to try to transform functions without a block body and without a raw contract if (target.returnTypeRef !is FirImplicitTypeRef || target.contractDescription is FirRawContractDescription) { diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/annotationOnConstructorProperty.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/annotationOnConstructorProperty.txt index c98b902acbc..449c3bbd76f 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/annotationOnConstructorProperty.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/annotationOnConstructorProperty.txt @@ -9,11 +9,11 @@ FIR FILE: FILE: [ResolvedTo(IMPORTS)] annotationOnConstructorProperty.kt public final [ResolvedTo(STATUS)] class Abc : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Abc] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/Abc.i] @[Types]() i: R|kotlin/Int|): R|Abc| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var i: R|kotlin/Int| = R|/i| public [ResolvedTo(STATUS)] [ContainingClassKey=Abc] get(): R|kotlin/Int| public [ResolvedTo(STATUS)] [ContainingClassKey=Abc] set([ResolvedTo(STATUS)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.out_of_src_roots.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.out_of_src_roots.txt index e0fc4941aa2..80ccf6282e3 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.out_of_src_roots.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.out_of_src_roots.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] jvmFieldAnnotationOnConstructorProperty.kt public final [ResolvedTo(STATUS)] class MyClass : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=MyClass] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/MyClass.addCommaWarning] @[Types]() addCommaWarning: R|kotlin/Boolean| = Boolean(false)): R|MyClass| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=MyClass] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/MyClass.addCommaWarning] @[Types]() addCommaWarning: R|kotlin/Boolean| = LAZY_EXPRESSION): R|MyClass| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|kotlin/Boolean| = R|/addCommaWarning| @@ -22,4 +22,4 @@ FILE: [ResolvedTo(IMPORTS)] jvmFieldAnnotationOnConstructorProperty.kt LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.txt index 9e521620414..005d9c93a8a 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/jvmFieldAnnotationOnConstructorProperty.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] jvmFieldAnnotationOnConstructorProperty.kt public final [ResolvedTo(STATUS)] class MyClass : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=MyClass] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/MyClass.addCommaWarning] addCommaWarning: R|kotlin/Boolean| = Boolean(false)): R|MyClass| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=MyClass] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/MyClass.addCommaWarning] addCommaWarning: R|kotlin/Boolean| = LAZY_EXPRESSION): R|MyClass| { + LAZY_super } field:@R|kotlin/jvm/JvmField|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|kotlin/Boolean| = R|/addCommaWarning| @@ -22,4 +22,4 @@ FILE: [ResolvedTo(IMPORTS)] jvmFieldAnnotationOnConstructorProperty.kt LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameter.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameter.txt index 7c392c5de5c..af48e93a5ab 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameter.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameter.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameter.kt public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } } @@ -24,4 +24,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameter.kt LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpression.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpression.txt index 20aeee777da..3e9ebe91251 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpression.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpression.txt @@ -8,8 +8,8 @@ String(abc) FIR FILE: FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterExpression.kt public final [ResolvedTo(STATUS)] class ResolveMe : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(s = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(s = String(abc)) kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } } @@ -21,4 +21,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterExpression.kt public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|/s| public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpressionScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpressionScript.txt index 1e96c4ed6f9..e7f81bd6ac1 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpressionScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterExpressionScript.txt @@ -12,8 +12,8 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterExpressionScri [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class ResolveMe : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(s = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|(s = String(abc)) kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } } @@ -26,4 +26,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterExpressionScri public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val s: R|kotlin/String| = R|/s| public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterScript.txt index 81b814c7923..afd03f62c52 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorParameterScript.txt @@ -12,8 +12,8 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } } @@ -30,4 +30,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorParameterScript.kts LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorProperty.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorProperty.txt index 8231818fb12..d49b864e6ed 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorProperty.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorProperty.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorProperty.kt public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|() kotlin/Boolean| = R|/addCommaWarning| @@ -28,4 +28,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorProperty.kt LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyAndParameter.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyAndParameter.txt index 38ed4d7f8e6..0c3d0b5c01c 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyAndParameter.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyAndParameter.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyAndParameter.kt public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false), [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] second: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] second: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|() kotlin/Boolean| = R|/addCommaWarning| @@ -28,4 +28,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyAndParameter.kt LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyScript.txt index 527c5cece87..9a7524bac5f 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyScript.txt @@ -12,8 +12,8 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|() kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|() kotlin/Boolean| = R|/addCommaWarning| @@ -34,4 +34,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyScript.kts LAZY_super } - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArguments.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArguments.txt index 8017dd3a083..e66ee41d9cb 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArguments.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArguments.txt @@ -8,8 +8,8 @@ FIR element rendered: FIR FILE: FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArguments.kt public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(String(abc)) kotlin/Boolean| = R|/addCommaWarning| @@ -31,4 +31,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArguments.k public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/String| = R|/value| public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArgumentsScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArgumentsScript.txt index ecc0b879a77..3c853448d0b 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArgumentsScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/typeOnAnnotationOnConstructorPropertyWithArgumentsScript.txt @@ -12,8 +12,8 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArgumentsSc [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class ResolveMe : R|A| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = Boolean(false)): R|ResolveMe| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/ResolveMe.addCommaWarning] addCommaWarning: R|@R|Anno|(value = String(abc)) kotlin/Boolean| = LAZY_EXPRESSION): R|ResolveMe| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var addCommaWarning: R|@R|Anno|(String(abc)) kotlin/Boolean| = R|/addCommaWarning| @@ -37,4 +37,4 @@ FILE: [ResolvedTo(IMPORTS)] typeOnAnnotationOnConstructorPropertyWithArgumentsSc public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/String| = R|/value| public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] get(): R|kotlin/String| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/field.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/field.txt index 1d6ed850136..0fefc498828 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/field.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/field.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] field.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } field:@FIELD:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/fieldScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/fieldScript.txt index 74b76090c2b..839542e208d 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/fieldScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/fieldScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] fieldScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } field:@FIELD:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getter.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getter.txt index 4fbbe3af5f0..11718952f60 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getter.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getter.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] getter.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| @PROPERTY_GETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getterScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getterScript.txt index 59f5fe6e094..07b1479e82e 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getterScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/getterScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] getterScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| @PROPERTY_GETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/param.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/param.txt index fd9152ad277..c9144bc9035 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/param.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/param.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] param.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] @CONSTRUCTOR_PARAMETER:R|Ann|[Types]() x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(STATUS)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(STATUS)] [ContainingClassKey=X] set([ResolvedTo(STATUS)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/paramScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/paramScript.txt index 6d968d9a73f..9c124672f2a 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/paramScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/paramScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] paramScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] @CONSTRUCTOR_PARAMETER:R|Ann|[Types]() x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(STATUS)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(STATUS)] [ContainingClassKey=X] set([ResolvedTo(STATUS)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/property.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/property.txt index 512d3698ffa..d2c71d1f51a 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/property.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/property.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] property.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } @PROPERTY:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/propertyScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/propertyScript.txt index d8697ffc9ba..ecbf039e3c1 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/propertyScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/propertyScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] propertyScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } @PROPERTY:R|Ann|[Types]() public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParam.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParam.txt index 9d4bb6f7339..1d7eb0fb700 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParam.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParam.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] setParam.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] @SETTER_PARAMETER:R|Ann|[Types]() value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParamScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParamScript.txt index 13211bf3b02..bce7a77b66a 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParamScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setParamScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] setParamScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] @SETTER_PARAMETER:R|Ann|[Types]() value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setter.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setter.txt index 86f2ca285f8..7c5e68f8d3d 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setter.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setter.txt @@ -15,11 +15,11 @@ FILE: [ResolvedTo(IMPORTS)] setter.kt } public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| @PROPERTY_SETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setterScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setterScript.txt index 0d3fc377854..e90e8a25244 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setterScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/annotations/useSite/setterScript.txt @@ -20,11 +20,11 @@ FILE: [ResolvedTo(IMPORTS)] setterScript.kts public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/X.x] x: R|kotlin/Int|): R|X| { - super() + LAZY_super } public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [IsFromPrimaryConstructor=true] var x: R|kotlin/Int| = R|/x| public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| @PROPERTY_SETTER:R|Ann|[Types]() public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] value: R|kotlin/Int|): R|kotlin/Unit| - } + } \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructor.txt b/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructor.txt index 68bf6eef078..ccd893df517 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructor.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructor.txt @@ -200,7 +200,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructor.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](String(constructor)) @R|Anno|[Types](String(constructor)) public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](String(param)) i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] @R|kotlin/Deprecated|[Types](String(parameter)) @R|Anno|[Types](String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| @@ -221,7 +221,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructor.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](String(constructor)) @R|Anno|[Types](String(constructor)) public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](String(param)) i: R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] @R|kotlin/Deprecated|[Types](String(parameter)) @R|Anno|[Types](String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| @@ -242,7 +242,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructor.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](message = String(constructor)) @R|Anno|[Types](s = String(constructor)) public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](message = String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](s = String(param)) i: R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] @R|kotlin/Deprecated|[Types](message = String(parameter)) @R|Anno|[Types](s = String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| diff --git a/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructorScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructorScript.txt index 60b6edae70c..107fb66add6 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructorScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/compilerRequiredAnnotationsOnConstructorScript.txt @@ -259,7 +259,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructorScript.kts public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](String(constructor)) @R|Anno|[Types](String(constructor)) public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](String(param)) i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] @R|kotlin/Deprecated|[Types](String(parameter)) @R|Anno|[Types](String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| @@ -286,7 +286,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructorScript.kts public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](String(constructor)) @R|Anno|[Types](String(constructor)) public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](String(param)) i: R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] @R|kotlin/Deprecated|[Types](String(parameter)) @R|Anno|[Types](String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| @@ -313,7 +313,7 @@ FILE: [ResolvedTo(IMPORTS)] compilerRequiredAnnotationsOnConstructorScript.kts public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { @R|kotlin/Deprecated|[Types](message = String(constructor)) @R|Anno|[Types](s = String(constructor)) public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.i] @CONSTRUCTOR_PARAMETER:R|kotlin/Deprecated|[Types](message = String(param)) @CONSTRUCTOR_PARAMETER:R|Anno|[Types](s = String(param)) i: R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] @R|kotlin/Deprecated|[Types](message = String(parameter)) @R|Anno|[Types](s = String(parameter)) b: R|kotlin/String|): R|A| { - super() + LAZY_super } @PROPERTY:R|kotlin/Deprecated|[Types](String(property)) @PROPERTY:R|Anno|[Types](LAZY_EXPRESSION) field:@FIELD:R|kotlin/Deprecated|[Types](String(field)) @FIELD:R|Anno|[Types](LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val i: R|kotlin/Int| = R|/i| @@ -374,3 +374,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] compilerRequiredAnnotationsOnConstructorScript. public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] get(): R|kotlin/Int| } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclaration.txt b/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclaration.txt index 8c6d9668647..b9105343ca9 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclaration.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclaration.txt @@ -910,7 +910,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclaration.kt public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } @@ -1002,7 +1002,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclaration.kt public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } @@ -1094,7 +1094,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclaration.kt public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } diff --git a/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclarationScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclarationScript.txt index f2f4174c142..b1da3f79dcb 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclarationScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/complexRedeclarationScript.txt @@ -1038,7 +1038,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclarationScript.kts public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } @@ -1143,7 +1143,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclarationScript.kts public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } @@ -1248,7 +1248,7 @@ FILE: [ResolvedTo(IMPORTS)] complexRedeclarationScript.kts public final [ResolvedTo(STATUS)] class I : R|P| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=I] constructor(): R|B.I| { - super() + LAZY_super } } @@ -1493,3 +1493,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] complexRedeclarationScript.kts } } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructor.txt b/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructor.txt index 3988c96f829..a3f24ee5126 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructor.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructor.txt @@ -101,7 +101,7 @@ CONTRACTS: FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -112,7 +112,7 @@ IMPLICIT_TYPES_BODY_RESOLVE: FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -123,7 +123,7 @@ ANNOTATIONS_ARGUMENTS_MAPPING: FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } diff --git a/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructorScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructorScript.txt index d1329fb666d..44ee427f251 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructorScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/fakePrimaryConstructorScript.txt @@ -150,7 +150,7 @@ FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -166,7 +166,7 @@ FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -182,7 +182,7 @@ FILE: [ResolvedTo(IMPORTS)] fakePrimaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -221,3 +221,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] fakePrimaryConstructorScript.kts } } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructor.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructor.txt index 6e5271f086b..ea36d61d3e3 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructor.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructor.txt @@ -101,7 +101,7 @@ CONTRACTS: FILE: [ResolvedTo(IMPORTS)] primaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -112,7 +112,7 @@ IMPLICIT_TYPES_BODY_RESOLVE: FILE: [ResolvedTo(IMPORTS)] primaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -123,7 +123,7 @@ ANNOTATIONS_ARGUMENTS_MAPPING: FILE: [ResolvedTo(IMPORTS)] primaryConstructor.kt public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameter.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameter.txt index d5d6da6950c..db95e1abab2 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameter.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameter.txt @@ -100,8 +100,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt CONTRACTS: FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(CONTRACTS)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(CONTRACTS)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } @@ -111,8 +111,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt IMPLICIT_TYPES_BODY_RESOLVE: FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } @@ -122,8 +122,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt ANNOTATIONS_ARGUMENTS_MAPPING: FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameter.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameterScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameterScript.txt index 2b968347dfc..f09bb137345 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameterScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorParameterScript.txt @@ -149,8 +149,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameterScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(CONTRACTS)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(CONTRACTS)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } @@ -165,8 +165,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameterScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } @@ -181,8 +181,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorParameterScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] param: R|kotlin/Int| = IntegerLiteral(1), [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] c: R|kotlin/Long|): R|A| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] param: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] c: R|kotlin/Long|): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] fun foo(): { LAZY_BLOCK } @@ -222,3 +222,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] primaryConstructorParameterScript.kts } } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorProperty.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorProperty.txt index 6f30e67429b..74ad51dbf3d 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorProperty.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorProperty.txt @@ -127,8 +127,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt CONTRACTS: FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| @@ -141,8 +141,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt IMPLICIT_TYPES_BODY_RESOLVE: FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| @@ -155,8 +155,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt ANNOTATIONS_ARGUMENTS_MAPPING: FILE: [ResolvedTo(IMPORTS)] primaryConstructorProperty.kt public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorPropertyScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorPropertyScript.txt index 4a82bbb5bc7..eb49f967800 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorPropertyScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorPropertyScript.txt @@ -176,8 +176,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorPropertyScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor([ResolvedTo(CONTRACTS)] a: R|kotlin/Boolean|, [ResolvedTo(CONTRACTS)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| @@ -195,8 +195,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorPropertyScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] a: R|kotlin/Boolean|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| @@ -214,8 +214,8 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorPropertyScript.kts [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { - public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = IntegerLiteral(42)): R|A| { - super() + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] a: R|kotlin/Boolean|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION): R|A| { + LAZY_super } public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|/prop| @@ -264,3 +264,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] primaryConstructorPropertyScript.kts } } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorScript.txt index 66b66dd0902..3693b3f9940 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/primaryConstructorScript.txt @@ -150,7 +150,7 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -166,7 +166,7 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -182,7 +182,7 @@ FILE: [ResolvedTo(IMPORTS)] primaryConstructorScript.kts public final [ResolvedTo(STATUS)] class Problem : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Problem] constructor(): R|Problem| { - super() + LAZY_super } public final [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } @@ -221,3 +221,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] primaryConstructorScript.kts } } + diff --git a/analysis/low-level-api-fir/testData/lazyResolve/redeclaration.txt b/analysis/low-level-api-fir/testData/lazyResolve/redeclaration.txt index ecddc0791cc..64b67980ca6 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/redeclaration.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/redeclaration.txt @@ -143,7 +143,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclaration.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { public [ResolvedTo(CONTRACTS)] [ContainingClassKey=A] constructor(): R|A| { - super() + LAZY_super } } @@ -158,7 +158,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclaration.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| { - super() + LAZY_super } } @@ -173,7 +173,7 @@ FILE: [ResolvedTo(IMPORTS)] redeclaration.kt } public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=A] constructor(): R|A| { - super() + LAZY_super } } diff --git a/analysis/low-level-api-fir/testData/lazyResolve/redeclarationScript.txt b/analysis/low-level-api-fir/testData/lazyResolve/redeclarationScript.txt index 03771ed056c..34bb2e7232c 100644 --- a/analysis/low-level-api-fir/testData/lazyResolve/redeclarationScript.txt +++ b/analysis/low-level-api-fir/testData/lazyResolve/redeclarationScript.txt @@ -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() + LAZY_super } } @@ -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() + LAZY_super } } @@ -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() + LAZY_super } } @@ -290,3 +290,4 @@ FILE: [ResolvedTo(BODY_RESOLVE)] redeclarationScript.kts } } +