From 8c63e75f0600c68ab4423b8af901c8cdda163c29 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Fri, 9 Feb 2024 23:16:22 +0100 Subject: [PATCH] [LL FIR] update destructuringEntryScript testData To reproduce getOrBuildFir for KtDestructuringDeclarationEntry ^KT-62840 --- .../declarations/destructuringEntryScript.kts | 4 +--- .../declarations/destructuringEntryScript.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.kts b/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.kts index 661e8748bec..dd77ccad286 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.kts +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.kts @@ -1,4 +1,2 @@ // WITH_STDLIB -fun main() { - val (a, b) = 1 to 2 -} \ No newline at end of file +val (a, b) = 1 to 2 \ No newline at end of file diff --git a/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.txt b/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.txt index 344461c9ef2..58cfce60598 100644 --- a/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.txt +++ b/analysis/low-level-api-fir/testData/getOrBuildFir/declarations/destructuringEntryScript.txt @@ -3,7 +3,7 @@ FIR element: FirPropertyImpl FIR source kind: KtRealSourceElementKind FIR element rendered: -[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|/|.R|SubstitutionOverride|() +[ResolvedTo(BODY_RESOLVE)] [DestructuringDeclarationContainerVariableMarkerKey=true] lval : R|kotlin/Pair| = Int(1).R|kotlin/to|(Int(2)) FIR FILE: FILE: [ResolvedTo(IMPORTS)] destructuringEntryScript.kts @@ -11,8 +11,8 @@ FILE: [ResolvedTo(IMPORTS)] destructuringEntryScript.kts SCRIPT: [ResolvedTo(TYPES)] [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array| - public final [ResolvedTo(BODY_RESOLVE)] fun main(): R|kotlin/Unit| { - [ResolvedTo(BODY_RESOLVE)] lval : R|kotlin/Pair| = Int(1).R|kotlin/to|(Int(2)) - [ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|/|.R|SubstitutionOverride|() - [ResolvedTo(BODY_RESOLVE)] lval b: R|kotlin/Int| = R|/|.R|SubstitutionOverride|() - } + [ResolvedTo(BODY_RESOLVE)] [DestructuringDeclarationContainerVariableMarkerKey=true] lval : R|kotlin/Pair| = Int(1).R|kotlin/to|(Int(2)) + public final [ResolvedTo(RAW_FIR)] [DestructuringDeclarationContainerVariableKey=/] val a: = LAZY_EXPRESSION + + + public final [ResolvedTo(RAW_FIR)] [DestructuringDeclarationContainerVariableKey=/] val b: = LAZY_EXPRESSION \ No newline at end of file