From db804b7f938183db6e8b9b0d0b45c59c29d4e093 Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Thu, 30 Nov 2023 10:41:36 +0100 Subject: [PATCH] K2 Scripting: fix CFG processing related testdata in LL --- .../contextCollector/scripts/topLevel.txt | 15 +- .../secondLevelFunction.lazy.resolve.txt | 1 + .../secondLevelFunction2.lazy.resolve.txt | 1 + .../calls/compoundAssignOnVarScript.txt | 6 +- .../getOrBuildFir/calls/setOperatorScript.txt | 6 +- .../getOrBuildFir/expressions/assignment.txt | 4 +- .../expressions/callInsideStatement.txt | 4 +- .../wholeDeclaration/assignmentStatement.txt | 4 +- .../wholeDeclaration/scriptInitializer.txt | 4 +- .../wholeDeclaration/statement.txt | 4 +- .../properties/resultWithPropagatedType.txt | 4 +- .../scriptWithResultWithPropagatedType.txt | 4 +- ...scriptWithTypeAnnotationsOnDeclaration.txt | 4 +- .../testData/lazyResolve/script.txt | 4 +- .../testData/lazyResolve/script2.txt | 16 +- .../testData/lazyResolve/script3.txt | 12 +- .../testData/lazyResolve/script4.txt | 4 +- .../testData/lazyResolve/statement.txt | 4 +- .../testData/lazyResolve/statement2.txt | 4 +- .../lazyResolve/statementTransformation.txt | 4 +- .../scriptStatementLevel.after.txt | 8 +- .../scriptStatementLevel.before.txt | 8 +- .../scriptStatementLevel.lazyResolve.txt | 8 +- ...tementLevelAsLastStatement.lazyResolve.txt | 8 +- .../resultWithPropagatedType.lazyResolve.txt | 4 +- .../tests/script/NestedInnerClass.ll.dot | 421 +++++++++--------- 26 files changed, 292 insertions(+), 274 deletions(-) diff --git a/analysis/low-level-api-fir/testData/contextCollector/scripts/topLevel.txt b/analysis/low-level-api-fir/testData/contextCollector/scripts/topLevel.txt index 336e7f2c38d..dc6a51b588b 100644 --- a/analysis/low-level-api-fir/testData/contextCollector/scripts/topLevel.txt +++ b/analysis/low-level-api-fir/testData/contextCollector/scripts/topLevel.txt @@ -43,7 +43,7 @@ Tower Data Context: public get(): R|kotlin/Int| public final class Before_OtherClass : R|kotlin/Any| - args# + init public final fun after_Fun(): R|kotlin/Unit| public final val after_Val: R|kotlin/Int| public get(): R|kotlin/Int| @@ -51,11 +51,15 @@ Tower Data Context: public final class After_OtherClass : R|kotlin/Any| Type: kotlin.script.templates.standard.ScriptTemplateWithArgs Label: