[Analysis API] Remove obsolete dependentCopy tests

This commit is contained in:
Yan Zhulanow
2024-01-11 17:39:40 +09:00
committed by Space Team
parent 08727bf0be
commit 9021fdaf83
73 changed files with 0 additions and 1633 deletions
@@ -1,17 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Type: A
@@ -1,15 +0,0 @@
KT element: KtClass
FIR element: FirRegularClassImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Int| {
^foo Int(42)
}
}
@@ -1,3 +0,0 @@
class<caret> A() {
fun foo() = 42
}
@@ -1,17 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Type: A
@@ -1,6 +0,0 @@
KT element: KtClassBody
FIR element: null
FIR source kind: null
FIR element rendered:
null
@@ -1,3 +0,0 @@
class A() {<caret>
fun foo() = 42
}
@@ -1,36 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class A : R|kotlin/Any|
Element 7
Scope: FirLocalScope
Classifiers:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-classBodyScript.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class A : R|kotlin/Any|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Implicit receiver:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Type: A
@@ -1,6 +0,0 @@
KT element: KtClassBody
FIR element: null
FIR source kind: null
FIR element rendered:
null
@@ -1,3 +0,0 @@
class A() {<caret>
fun foo() = 42
}
@@ -1,36 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class A : R|kotlin/Any|
Element 7
Scope: FirLocalScope
Classifiers:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-classScript.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class A : R|kotlin/Any|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Implicit receiver:
FirRegularClassSymbol public final class A : R|kotlin/Any|
Type: A
@@ -1,15 +0,0 @@
KT element: KtClass
FIR element: FirRegularClassImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| {
super<R|kotlin/Any|>()
}
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Int| {
^foo Int(42)
}
}
@@ -1,3 +0,0 @@
class<caret> A() {
fun foo() = 42
}
@@ -1,37 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final companion object Companion : R|kotlin/Any|
Type: kotlin.Enum.Companion
Element 7
Scope: FirNestedClassifierScopeWithSubstitution
Classifiers:
FirRegularClassSymbol public final companion object Companion : R|kotlin/Any|
Static scope owner symbol: FirRegularClassSymbol public abstract class Enum<E : R|kotlin/Enum<E>|> : R|kotlin/Comparable<E>|, R|java/io/Serializable|
Element 8
Scope: FirNameAwareOnlyCallablesScope
Functions
FirNamedFunctionSymbol public final static fun valueOf(value: R|kotlin/String|): R|test/MyEnum|
FirNamedFunctionSymbol public final static fun values(): R|kotlin/Array<test/MyEnum>|
Properties:
FirEnumEntrySymbol public final static enum entry VARIANT: R|test/MyEnum| = LAZY_EXPRESSION
FirPropertySymbol public final static val entries: R|kotlin/enums/EnumEntries<test/MyEnum>|
public get(): R|kotlin/enums/EnumEntries<test/MyEnum>|
Element 9
Implicit receiver:
FirAnonymousObjectSymbol object : R|test/MyEnum|
Type: test.<anonymous>
Element 10
Scope: FirLocalScope
@@ -1,7 +0,0 @@
KT element: KtNamedFunction
FIR element: FirSimpleFunctionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/Unit| {
}
@@ -1,7 +0,0 @@
package test
enum class MyEnum() {
VARIANT() {
fun te<caret>st() {}
}
}
@@ -1,39 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final companion object Companion : R|kotlin/Any|
Type: kotlin.Enum.Companion
Element 7
Scope: FirNestedClassifierScopeWithSubstitution
Classifiers:
FirRegularClassSymbol public final companion object Companion : R|kotlin/Any|
Static scope owner symbol: FirRegularClassSymbol public abstract class Enum<E : R|kotlin/Enum<E>|> : R|kotlin/Comparable<E>|, R|java/io/Serializable|
Element 8
Scope: FirNameAwareOnlyCallablesScope
Functions
FirNamedFunctionSymbol public final static fun valueOf(value: R|kotlin/String|): R|test/MyEnum|
FirNamedFunctionSymbol public final static fun values(): R|kotlin/Array<test/MyEnum>|
Properties:
FirEnumEntrySymbol public final static enum entry VARIANT: R|test/MyEnum| = LAZY_EXPRESSION
FirPropertySymbol public final static val entries: R|kotlin/enums/EnumEntries<test/MyEnum>|
public get(): R|kotlin/enums/EnumEntries<test/MyEnum>|
Element 9
Implicit receiver:
FirAnonymousObjectSymbol object : R|test/MyEnum|
Type: test.<anonymous>
Element 10
Scope: FirLocalScope
Element 11
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/property|
@@ -1,11 +0,0 @@
package test
val property: Int = 10
enum class MyEnum(val i: Int) {
VARIANT(property) {
fun test() {
proper<caret>ty
}
}
}
@@ -1,15 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirLocalScope
@@ -1,5 +0,0 @@
fun foo() {
val i = unusedInOriginal()
}
fun unusedInOriginal() = 42
@@ -1,8 +0,0 @@
KT element: KtNamedFunction
FIR element: FirSimpleFunctionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
[ResolvedTo(BODY_RESOLVE)] lval i: R|kotlin/Int| = R|/unusedInOriginal|()
}
@@ -1,5 +0,0 @@
fun<caret> foo() {
"original text"
}
fun unusedInOriginal() = 42
@@ -1,42 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public final fun unusedScriptFunction(p: R|kotlin/String|): R|kotlin/Int|
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Int|
public get(): R|kotlin/Int|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-moreStatementsInCopy.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final fun scriptFunction(): R|kotlin/Int|
init
public final fun unusedScriptFunction(p: R|kotlin/String|): R|kotlin/Int|
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
init
public final val $$result: R|kotlin/Int|
public get(): R|kotlin/Int|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
@@ -1,18 +0,0 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtScript
fun scriptFunction() = 42
scriptFunction()
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
unusedScriptFunction("str")
@@ -1,38 +0,0 @@
KT element: KtScript
FIR element: FirScriptImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(BODY_RESOLVE)] <script-moreStatementsInCopy.kts>
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun scriptFunction(): R|kotlin/Int| {
^scriptFunction Int(42)
}
[ResolvedTo(BODY_RESOLVE)] init {
R|/scriptFunction|()
}
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun unusedScriptFunction([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] p: R|kotlin/String|): R|kotlin/Int| {
^unusedScriptFunction Int(22)
}
[ResolvedTo(BODY_RESOLVE)] init {
R|/scriptFunction|()
}
public final [ResolvedTo(CONTRACTS)] fun foo([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit| {
action#(i#)
}
[ResolvedTo(BODY_RESOLVE)] init {
R|/foo|(R|/scriptFunction|(), <L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function1<kotlin/Int, kotlin/Unit>] foo@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Unit| <inline=NoInline> {
R|/scriptFunction|()
}
)
}
public final [ResolvedTo(BODY_RESOLVE)] val $$result: R|kotlin/Int| = R|/unusedScriptFunction|(String(str))
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
@@ -1,14 +0,0 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtScript
<caret>
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
@@ -1,43 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-script.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
@@ -1,38 +0,0 @@
KT element: KtScript
FIR element: FirScriptImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(BODY_RESOLVE)] <script-script.kts>
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
public final? [ResolvedTo(RAW_FIR)] class ScriptClass : R|kotlin/Any| {
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ScriptClass] constructor(): R|ScriptClass| {
LAZY_super<R|kotlin/Any|>
}
public? final? [ResolvedTo(RAW_FIR)] val memberProperty: <implicit> = LAZY_EXPRESSION
public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ScriptClass] get(): <implicit>
}
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun scriptFunction(): R|kotlin/Int| {
^scriptFunction Int(42)
}
public? final? [ResolvedTo(RAW_FIR)] fun unusedScriptFunction([ResolvedTo(RAW_FIR)] p: String): <implicit> { LAZY_BLOCK }
[ResolvedTo(BODY_RESOLVE)] init {
R|/scriptFunction|()
}
public final [ResolvedTo(CONTRACTS)] fun foo([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit| {
action#(i#)
}
public final [ResolvedTo(BODY_RESOLVE)] val $$result: R|kotlin/Unit| = R|/foo|(R|/scriptFunction|(), <L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function1<kotlin/Int, kotlin/Unit>] foo@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Unit| <inline=NoInline> {
R|/scriptFunction|()
}
)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit|
@@ -1,18 +0,0 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtScript
<caret>class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
@@ -1,49 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public? final? fun foo(i: Int, action: ( (Int) -> Unit )): R|kotlin/Unit|
FirNamedFunctionSymbol public? final? fun scriptFunction(): <implicit>
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: <implicit>
public get(): <implicit>
Element 7
Scope: FirLocalScope
Functions
FirNamedFunctionSymbol public final fun unusedScriptFunction(p: R|kotlin/String|): R|kotlin/Int|
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptFunction.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public? final? fun scriptFunction(): <implicit>
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public? final? fun foo(i: Int, action: ( (Int) -> Unit )): R|kotlin/Unit|
public final val $$result: <implicit>
public get(): <implicit>
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Scope: FirLocalScope
Properties:
FirValueParameterSymbol p: R|kotlin/String|
@@ -1,8 +0,0 @@
KT element: KtNamedFunction
FIR element: FirSimpleFunctionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] fun unusedScriptFunction([ResolvedTo(BODY_RESOLVE)] p: R|kotlin/String|): R|kotlin/Int| {
^unusedScriptFunction Int(22)
}
@@ -1,16 +0,0 @@
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun u<caret>nusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
@@ -1,49 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptInsideLastStatement.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Scope: FirLocalScope
Properties:
FirValueParameterSymbol it: R|kotlin/Int|
Element 10
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|/scriptFunction|
@@ -1,16 +0,0 @@
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scri<caret>ptFunction()
}
@@ -1,43 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptLastStatement.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|/foo|
@@ -1,16 +0,0 @@
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
<caret>foo(scriptFunction()) {
scriptFunction()
}
@@ -1,43 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptLastStatementCall.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
@@ -1,10 +0,0 @@
KT element: KtCallExpression
FIR element: FirPropertyImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
public final [ResolvedTo(BODY_RESOLVE)] val $$result: R|kotlin/Unit| = R|/foo|(R|/scriptFunction|(), <L> = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=kotlin/Function1<kotlin/Int, kotlin/Unit>] foo@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Unit| <inline=NoInline> {
R|/scriptFunction|()
}
)
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit|
@@ -1,17 +0,0 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtCallExpression
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
scriptFunction()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
<caret>foo(scriptFunction()) {
scriptFunction()
}
@@ -1,47 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptStatement.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Scope: FirLocalScope
Element 10
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|/scriptFunction|
@@ -1,16 +0,0 @@
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
script<caret>Function()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
@@ -1,47 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Scope: FirScriptDeclarationsScope
Classifiers:
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
Functions
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
Properties:
FirPropertySymbol public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Element 7
Scope: FirLocalScope
Properties:
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
Element 8
Context receivers:
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: <script-scriptStatementCall.kts>
lval args: R|kotlin/Array<kotlin/String>|
public final? class ScriptClass : R|kotlin/Any|
public final fun scriptFunction(): R|kotlin/Int|
public? final? fun unusedScriptFunction(p: String): <implicit>
init
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
public final val $$result: R|kotlin/Unit|
public get(): R|kotlin/Unit|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
Label: <script>
Element 9
Scope: FirLocalScope
Element 10
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtCallExpression
FIR element: FirFunctionCallImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|/scriptFunction|()
@@ -1,17 +0,0 @@
// LOOK_UP_FOR_ELEMENT_OF_TYPE: KtCallExpression
class ScriptClass {
val memberProperty = 4
}
fun scriptFunction() = 42
fun unusedScriptFunction(p: String) = 22
script<caret>Function()
fun foo(i: Int, action: (Int) -> Unit) {
action(i)
}
foo(scriptFunction()) {
scriptFunction()
}
@@ -1,19 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class MyClass : R|kotlin/Any|
Type: test.MyClass
Element 7
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/property|
@@ -1,7 +0,0 @@
package test
val property = 10
class MyClass(i: Int) {
constructor(): this(prop<caret>erty)
}
@@ -1,19 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class Child : R|test/Base|
Type: test.Child
Element 7
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/property|
@@ -1,7 +0,0 @@
package test
open class Base(action: Int)
val property = 10
class Child : Base(prop<caret>erty)
@@ -1,19 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class Child : R|test/Base|
Type: test.Child
Element 7
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/property|
@@ -1,9 +0,0 @@
package test
open class Base(i: Int)
val property = 10
class Child : Base {
constructor(): super(prop<caret>erty)
}
@@ -1,19 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class MyClass : R|test/MyInterface|
Type: test.MyClass
Element 7
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/property|
@@ -1,7 +0,0 @@
package test
interface MyInterface
val property: MyInterface = object : MyInterface {}
class MyClass: MyInterface by prop<caret>erty
@@ -1,27 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final companion object Companion : R|test/MyInterface|
Type: test.MyClass.Companion
Element 7
Scope: FirNestedClassifierScopeImpl
Classifiers:
FirRegularClassSymbol public final companion object Companion : R|test/MyInterface|
Element 8
Implicit receiver:
FirRegularClassSymbol public final class MyClass : R|test/MyInterface|
Type: test.MyClass
Element 9
Scope: FirLocalScope
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirResolvedQualifierImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
Q|test/MyClass.Companion|
@@ -1,7 +0,0 @@
package test
interface MyInterface
class MyClass: MyInterface by Comp<caret>anion {
companion object : MyInterface
}
@@ -1,17 +0,0 @@
Tower Data Context:
Element 0
Scope: FirDefaultStarImportingScope
Element 1
Scope: FirExplicitStarImportingScope
Element 2
Scope: FirDefaultSimpleImportingScope
Element 3
Scope: FirDefaultSimpleImportingScope
Element 4
Scope: FirPackageMemberScope
Element 5
Scope: FirExplicitSimpleImportingScope
Element 6
Implicit receiver:
FirRegularClassSymbol public final class MyClass : R|test/MyInterface|
Type: test.MyClass
@@ -1,6 +0,0 @@
KT element: KtNameReferenceExpression
FIR element: FirPropertyAccessExpressionImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|<local>/param|
@@ -1,5 +0,0 @@
package test
interface MyInterface
class MyClass(param: MyInterface): MyInterface by par<caret>am
@@ -1,37 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir
import org.jetbrains.kotlin.analysis.low.level.api.fir.test.configurators.AnalysisApiFirScriptTestConfigurator
import org.jetbrains.kotlin.analysis.low.level.api.fir.test.configurators.AnalysisApiFirSourceTestConfigurator
import org.jetbrains.kotlin.analysis.low.level.api.fir.util.ContextCollector
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin.test.services.TestModuleStructure
import org.jetbrains.kotlin.test.services.TestServices
import org.jetbrains.kotlin.test.services.assertions
abstract class AbstractDependentCopyContextTest : AbstractDependentCopyTest() {
context(LLFirResolveSessionDepended)
override fun doDependentCopyTest(file: KtFile, element: KtElement, moduleStructure: TestModuleStructure, testServices: TestServices) {
val context = getTowerContextProvider(file).getClosestAvailableParentContext(element)
testServices.assertions.assertNotNull(context)
val actual = buildString {
ElementContextRenderer.render(ContextCollector.Context(context!!, emptyMap()), this)
}
testServices.assertions.assertEqualsToTestDataFileSibling(actual, extension = ".context.txt")
}
}
abstract class AbstractSourceDependentCopyContextTest : AbstractDependentCopyContextTest() {
override val configurator: AnalysisApiTestConfigurator = AnalysisApiFirSourceTestConfigurator(analyseInDependentSession = false)
}
abstract class AbstractScriptDependentCopyContextTest : AbstractDependentCopyContextTest() {
override val configurator: AnalysisApiTestConfigurator = AnalysisApiFirScriptTestConfigurator(analyseInDependentSession = false)
}
@@ -1,32 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir
import org.jetbrains.kotlin.analysis.low.level.api.fir.test.configurators.AnalysisApiFirScriptTestConfigurator
import org.jetbrains.kotlin.analysis.low.level.api.fir.test.configurators.AnalysisApiFirSourceTestConfigurator
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.AnalysisApiTestConfigurator
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin.test.services.TestModuleStructure
import org.jetbrains.kotlin.test.services.TestServices
import org.jetbrains.kotlin.test.services.assertions
abstract class AbstractDependentCopyFirTest : AbstractDependentCopyTest() {
context(LLFirResolveSessionDepended)
override fun doDependentCopyTest(file: KtFile, element: KtElement, moduleStructure: TestModuleStructure, testServices: TestServices) {
val fir = getOrBuildFirFor(element)
val actual = renderActualFir(fir, element)
testServices.assertions.assertEqualsToTestDataFileSibling(actual, extension = ".fir.txt")
}
}
abstract class AbstractSourceDependentCopyFirTest : AbstractDependentCopyFirTest() {
override val configurator: AnalysisApiTestConfigurator = AnalysisApiFirSourceTestConfigurator(analyseInDependentSession = false)
}
abstract class AbstractScriptDependentCopyFirTest : AbstractDependentCopyFirTest() {
override val configurator: AnalysisApiTestConfigurator = AnalysisApiFirScriptTestConfigurator(analyseInDependentSession = false)
}
@@ -1,65 +0,0 @@
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir
import com.intellij.psi.util.PsiTreeUtil
import org.jetbrains.kotlin.analysis.low.level.api.fir.api.LowLevelFirApiFacadeForResolveOnAir.getFirResolveSessionForDependentCopy
import org.jetbrains.kotlin.analysis.test.framework.base.AbstractAnalysisApiBasedTest
import org.jetbrains.kotlin.analysis.test.framework.services.expressionMarkerProvider
import org.jetbrains.kotlin.psi.KtElement
import org.jetbrains.kotlin.psi.KtFile
import org.jetbrains.kotlin.psi.KtPsiFactory
import org.jetbrains.kotlin.test.model.TestModule
import org.jetbrains.kotlin.test.services.TestModuleStructure
import org.jetbrains.kotlin.test.services.TestServices
import org.jetbrains.kotlin.test.services.moduleStructure
import kotlin.io.path.exists
import kotlin.io.path.readText
/**
* This test class is supposed to specify the behavior of [getFirResolveSessionForDependentCopy].
* E.g., end test can check how a copied declaration is resolved or which content has.
*
* @see AbstractDependentCopyContextTest
* @see AbstractDependentCopyFirTest
*/
abstract class AbstractDependentCopyTest : AbstractAnalysisApiBasedTest() {
override fun doTestByMainFile(mainFile: KtFile, mainModule: TestModule, testServices: TestServices) {
val moduleStructure = testServices.moduleStructure
val element = testServices.expressionMarkerProvider.getElementOfTypeAtCaretByDirective<KtElement>(
file = mainFile,
registeredDirectives = moduleStructure.allDirectives,
)
val specialContentForCopiedFile = getTestDataFileSiblingPath(
extension = "copy.txt",
testPrefix = null,
).takeIf { it.exists() }?.readText()
val fileCopy = KtPsiFactory(mainFile.project).createFile(
mainFile.name,
specialContentForCopiedFile ?: mainFile.text,
)
fileCopy.originalFile = mainFile
val sameElementInCopy = PsiTreeUtil.findSameElementInCopy(element, fileCopy)
resolveWithClearCaches(mainFile) { originalSession ->
val dependentSession = getFirResolveSessionForDependentCopy(
originalFirResolveSession = originalSession,
originalKtFile = mainFile,
elementToAnalyze = sameElementInCopy,
) as LLFirResolveSessionDepended
with(dependentSession) {
doDependentCopyTest(fileCopy, sameElementInCopy, moduleStructure, testServices)
}
}
}
context(LLFirResolveSessionDepended)
abstract fun doDependentCopyTest(file: KtFile, element: KtElement, moduleStructure: TestModuleStructure, testServices: TestServices)
}
@@ -1,86 +0,0 @@
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/low-level-api-fir/testData/dependentCopy")
@TestDataPath("$PROJECT_ROOT")
public class ScriptDependentCopyContextTestGenerated extends AbstractScriptDependentCopyContextTest {
@Test
public void testAllFilesPresentInDependentCopy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testData/dependentCopy"), Pattern.compile("^(.+)\\.(kts)$"), null, true);
}
@Test
@TestMetadata("classBodyScript.kts")
public void testClassBodyScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classBodyScript.kts");
}
@Test
@TestMetadata("classScript.kts")
public void testClassScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classScript.kts");
}
@Test
@TestMetadata("moreStatementsInCopy.kts")
public void testMoreStatementsInCopy() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/moreStatementsInCopy.kts");
}
@Test
@TestMetadata("script.kts")
public void testScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/script.kts");
}
@Test
@TestMetadata("scriptFunction.kts")
public void testScriptFunction() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptFunction.kts");
}
@Test
@TestMetadata("scriptInsideLastStatement.kts")
public void testScriptInsideLastStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptInsideLastStatement.kts");
}
@Test
@TestMetadata("scriptLastStatement.kts")
public void testScriptLastStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptLastStatement.kts");
}
@Test
@TestMetadata("scriptLastStatementCall.kts")
public void testScriptLastStatementCall() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptLastStatementCall.kts");
}
@Test
@TestMetadata("scriptStatement.kts")
public void testScriptStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptStatement.kts");
}
@Test
@TestMetadata("scriptStatementCall.kts")
public void testScriptStatementCall() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptStatementCall.kts");
}
}
@@ -1,86 +0,0 @@
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/low-level-api-fir/testData/dependentCopy")
@TestDataPath("$PROJECT_ROOT")
public class ScriptDependentCopyFirTestGenerated extends AbstractScriptDependentCopyFirTest {
@Test
public void testAllFilesPresentInDependentCopy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testData/dependentCopy"), Pattern.compile("^(.+)\\.(kts)$"), null, true);
}
@Test
@TestMetadata("classBodyScript.kts")
public void testClassBodyScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classBodyScript.kts");
}
@Test
@TestMetadata("classScript.kts")
public void testClassScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classScript.kts");
}
@Test
@TestMetadata("moreStatementsInCopy.kts")
public void testMoreStatementsInCopy() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/moreStatementsInCopy.kts");
}
@Test
@TestMetadata("script.kts")
public void testScript() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/script.kts");
}
@Test
@TestMetadata("scriptFunction.kts")
public void testScriptFunction() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptFunction.kts");
}
@Test
@TestMetadata("scriptInsideLastStatement.kts")
public void testScriptInsideLastStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptInsideLastStatement.kts");
}
@Test
@TestMetadata("scriptLastStatement.kts")
public void testScriptLastStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptLastStatement.kts");
}
@Test
@TestMetadata("scriptLastStatementCall.kts")
public void testScriptLastStatementCall() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptLastStatementCall.kts");
}
@Test
@TestMetadata("scriptStatement.kts")
public void testScriptStatement() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptStatement.kts");
}
@Test
@TestMetadata("scriptStatementCall.kts")
public void testScriptStatementCall() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/scriptStatementCall.kts");
}
}
@@ -1,92 +0,0 @@
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/low-level-api-fir/testData/dependentCopy")
@TestDataPath("$PROJECT_ROOT")
public class SourceDependentCopyContextTestGenerated extends AbstractSourceDependentCopyContextTest {
@Test
public void testAllFilesPresentInDependentCopy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testData/dependentCopy"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/class.kt");
}
@Test
@TestMetadata("classBody.kt")
public void testClassBody() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classBody.kt");
}
@Test
@TestMetadata("enumBody.kt")
public void testEnumBody() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/enumBody.kt");
}
@Test
@TestMetadata("enumInitializer.kt")
public void testEnumInitializer() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/enumInitializer.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/function.kt");
}
@Test
@TestMetadata("superCallArgument_delegatedConstructor.kt")
public void testSuperCallArgument_delegatedConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_delegatedConstructor.kt");
}
@Test
@TestMetadata("superCallArgument_primaryConstructor.kt")
public void testSuperCallArgument_primaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_primaryConstructor.kt");
}
@Test
@TestMetadata("superCallArgument_secondaryConstructor.kt")
public void testSuperCallArgument_secondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_secondaryConstructor.kt");
}
@Test
@TestMetadata("superTypeDelegation.kt")
public void testSuperTypeDelegation() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation.kt");
}
@Test
@TestMetadata("superTypeDelegation_toCompanion.kt")
public void testSuperTypeDelegation_toCompanion() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation_toCompanion.kt");
}
@Test
@TestMetadata("superTypeDelegation_toPrimaryConstructorParam.kt")
public void testSuperTypeDelegation_toPrimaryConstructorParam() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation_toPrimaryConstructorParam.kt");
}
}
@@ -1,92 +0,0 @@
/*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/low-level-api-fir/testData/dependentCopy")
@TestDataPath("$PROJECT_ROOT")
public class SourceDependentCopyFirTestGenerated extends AbstractSourceDependentCopyFirTest {
@Test
public void testAllFilesPresentInDependentCopy() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testData/dependentCopy"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/class.kt");
}
@Test
@TestMetadata("classBody.kt")
public void testClassBody() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/classBody.kt");
}
@Test
@TestMetadata("enumBody.kt")
public void testEnumBody() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/enumBody.kt");
}
@Test
@TestMetadata("enumInitializer.kt")
public void testEnumInitializer() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/enumInitializer.kt");
}
@Test
@TestMetadata("function.kt")
public void testFunction() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/function.kt");
}
@Test
@TestMetadata("superCallArgument_delegatedConstructor.kt")
public void testSuperCallArgument_delegatedConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_delegatedConstructor.kt");
}
@Test
@TestMetadata("superCallArgument_primaryConstructor.kt")
public void testSuperCallArgument_primaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_primaryConstructor.kt");
}
@Test
@TestMetadata("superCallArgument_secondaryConstructor.kt")
public void testSuperCallArgument_secondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superCallArgument_secondaryConstructor.kt");
}
@Test
@TestMetadata("superTypeDelegation.kt")
public void testSuperTypeDelegation() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation.kt");
}
@Test
@TestMetadata("superTypeDelegation_toCompanion.kt")
public void testSuperTypeDelegation_toCompanion() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation_toCompanion.kt");
}
@Test
@TestMetadata("superTypeDelegation_toPrimaryConstructorParam.kt")
public void testSuperTypeDelegation_toPrimaryConstructorParam() throws Exception {
runTest("analysis/low-level-api-fir/testData/dependentCopy/superTypeDelegation_toPrimaryConstructorParam.kt");
}
}
@@ -277,22 +277,6 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() {
testClass<AbstractContextCollectorScriptTest> {
model("contextCollector", pattern = TestGeneratorUtil.KTS)
}
testClass<AbstractSourceDependentCopyContextTest> {
model("dependentCopy", pattern = TestGeneratorUtil.KT)
}
testClass<AbstractScriptDependentCopyContextTest> {
model("dependentCopy", pattern = TestGeneratorUtil.KTS)
}
testClass<AbstractSourceDependentCopyFirTest> {
model("dependentCopy", pattern = TestGeneratorUtil.KT)
}
testClass<AbstractScriptDependentCopyFirTest> {
model("dependentCopy", pattern = TestGeneratorUtil.KTS)
}
}
testGroup("analysis/low-level-api-fir/tests", "analysis/analysis-api/testData") {