[LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
This commit is contained in:
committed by
Space Team
parent
aef5290210
commit
33e6a85a2d
@@ -0,0 +1,5 @@
|
||||
fun x() {/* DeclarationStructureElement */
|
||||
val x = object: Any() {
|
||||
fun foo(){}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] annonymousClass.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval x: R|<anonymous>| = object : R|kotlin/Any| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
open class B(x: () -> Unit)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
|
||||
class A()/* DeclarationStructureElement */ : B(1, {
|
||||
foo()
|
||||
})/* ClassDeclarationStructureElement */
|
||||
|
||||
fun foo() {/* DeclarationStructureElement */}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] callInsideLambdaInsideSuperCallAndExplicitConstructor.kt
|
||||
public open [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|() -> kotlin/Unit|): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|B| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|B|>(Int(1), [ResolvedTo(RAW_FIR)] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/foo|()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
open class B(x: () -> Unit)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
|
||||
class A : B(1, {
|
||||
foo()
|
||||
})/* ClassDeclarationStructureElement */
|
||||
|
||||
fun foo() {/* DeclarationStructureElement */}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] callInsideLambdaInsideSuperCallAndImplicitConstructor.kt
|
||||
public open [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|() -> kotlin/Unit|): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|B| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|B|>(Int(1), [ResolvedTo(RAW_FIR)] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/foo|()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
open class A(x: () -> Unit)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
|
||||
class B : A {/* ClassDeclarationStructureElement */
|
||||
constructor(i: Int) : super(
|
||||
{
|
||||
foo(i)
|
||||
}
|
||||
)/* DeclarationStructureElement */
|
||||
|
||||
constructor(l: Long) : super(
|
||||
{
|
||||
foo(l)
|
||||
}
|
||||
)/* DeclarationStructureElement */
|
||||
}
|
||||
|
||||
fun foo(any: Any) {/* DeclarationStructureElement */}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt
|
||||
public open [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|() -> kotlin/Unit|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|A| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] i: R|kotlin/Int|): R|B| {
|
||||
super<R|A|>([ResolvedTo(RAW_FIR)] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/foo|(R|<local>/i|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] l: R|kotlin/Long|): R|B| {
|
||||
super<R|A|>([ResolvedTo(RAW_FIR)] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/foo|(R|<local>/l|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] any: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
open class A(x: () -> Unit)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
|
||||
class B : A {/* ClassDeclarationStructureElement */
|
||||
constructor(i: Int) : super(
|
||||
{
|
||||
foo(i)
|
||||
}
|
||||
)/* DeclarationStructureElement */
|
||||
}
|
||||
|
||||
fun foo(any: Any) {/* DeclarationStructureElement */}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt
|
||||
public open [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|() -> kotlin/Unit|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|A| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] i: R|kotlin/Int|): R|B| {
|
||||
super<R|A|>([ResolvedTo(RAW_FIR)] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/foo|(R|<local>/i|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] any: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun x() {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
fun y(): Int = 10/* DeclarationStructureElement */
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] class.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/Int| {
|
||||
^y Int(10)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class B {/* ClassDeclarationStructureElement */
|
||||
fun q(): C {/* DeclarationStructureElement */}
|
||||
private val y = q()/* DeclarationStructureElement */
|
||||
|
||||
fun foo(a: A) = with(a) {
|
||||
bar("a", y)
|
||||
}/* DeclarationStructureElement */
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] class2.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun q(): <ERROR TYPE REF: Symbol not found for C> {
|
||||
}
|
||||
|
||||
private final [ResolvedTo(BODY_RESOLVE)] val y: <ERROR TYPE REF: Symbol not found for C> = this@R|/B|.R|/B.q|()
|
||||
private [ResolvedTo(BODY_RESOLVE)] get(): <ERROR TYPE REF: Symbol not found for C>
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: <ERROR TYPE REF: Symbol not found for A>): <ERROR TYPE REF: Cannot infer argument for type parameter R> {
|
||||
^foo R|kotlin/with<Inapplicable(INAPPLICABLE): kotlin/with>#|<<ERROR TYPE REF: Cannot infer argument for type parameter T>, <ERROR TYPE REF: Cannot infer argument for type parameter R>>(R|<local>/a|, <L> = [ResolvedTo(BODY_RESOLVE)] with@fun <ERROR TYPE REF: Cannot infer argument for type parameter T>.<anonymous>(): <ERROR TYPE REF: Cannot infer argument for type parameter R> <inline=Unknown, kind=EXACTLY_ONCE> {
|
||||
^ <Unresolved name: bar>#(String(a), this@R|/B|.R|/B.y|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] class2.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun q(): <ERROR TYPE REF: Symbol not found for C> {
|
||||
}
|
||||
|
||||
private final [ResolvedTo(BODY_RESOLVE)] val y: <ERROR TYPE REF: Symbol not found for C> = this@R|/B|.R|/B.q|()
|
||||
private [ResolvedTo(BODY_RESOLVE)] get(): <ERROR TYPE REF: Symbol not found for C>
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: <ERROR TYPE REF: Symbol not found for A>): <ERROR TYPE REF: Unresolved name: with> {
|
||||
^foo <Unresolved name: with>#(R|<local>/a|, <L> = [ResolvedTo(BODY_RESOLVE)] with@fun <anonymous>(): <ERROR TYPE REF: Unresolved name: bar> <inline=Unknown> {
|
||||
^ <Unresolved name: bar>#(String(a), this@R|/B|.R|/B.y|)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class X {/* ClassDeclarationStructureElement */
|
||||
var x: Int/* DeclarationStructureElement */
|
||||
get() = field
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
val y = 42/* DeclarationStructureElement */
|
||||
|
||||
var z: Int = 15/* DeclarationStructureElement */
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] classMemberProperty.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
^ this@R|/X|.F|/X.x|
|
||||
}
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
this@R|/X|.F|/X.x| = R|<local>/value|
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val y: R|kotlin/Int| = Int(42)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var z: R|kotlin/Int| = Int(15)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/* RootScriptStructureElement */class X {/* ClassDeclarationStructureElement */
|
||||
var x: Int/* DeclarationStructureElement */
|
||||
get() = field
|
||||
set(value) {
|
||||
field = value
|
||||
}
|
||||
|
||||
val y = 42/* DeclarationStructureElement */
|
||||
|
||||
var z: Int = 15/* DeclarationStructureElement */
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] classMemberPropertyScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
^ this@R|/X|.F|/X.x|
|
||||
}
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| {
|
||||
this@R|/X|.F|/X.x| = R|<local>/value|
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val y: R|kotlin/Int| = Int(42)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var z: R|kotlin/Int| = Int(15)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/* RootScriptStructureElement */class A {/* ClassDeclarationStructureElement */
|
||||
fun x() {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
fun y(): Int = 10/* DeclarationStructureElement */
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] classScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/Int| {
|
||||
^y Int(10)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
class A(var x: Int)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] constructorParameter.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = R|<local>/x|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
class A(val x: String)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] constructorParameter2.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/String|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = R|<local>/x|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class A(
|
||||
@setparam:Ann
|
||||
@get:Ann
|
||||
@set:Ann
|
||||
@field:Ann
|
||||
@property:Ann
|
||||
var x: Int
|
||||
)/* DeclarationStructureElement *//* ClassDeclarationStructureElement */
|
||||
|
||||
annotation class Ann/* ClassDeclarationStructureElement */
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] constructorParameterWithAnnotations.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@PROPERTY:R|Ann|[Types]() field:@FIELD:R|Ann|[Types]() public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = R|<local>/x|
|
||||
@PROPERTY_GETTER:R|Ann|[Types]() public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
@PROPERTY_SETTER:R|Ann|[Types]() public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] @SETTER_PARAMETER:R|Ann|[Types]() value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] annotation class Ann : R|kotlin/Annotation| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Ann| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class A
|
||||
|
||||
(val a: Int)/* DeclarationStructureElement */
|
||||
|
||||
{/* ClassDeclarationStructureElement */
|
||||
constructor() : this(1) {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] constructors.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Int| = R|<local>/a|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
this<R|A|>(Int(1))
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* RootScriptStructureElement */class A
|
||||
|
||||
(val a: Int)/* DeclarationStructureElement */
|
||||
|
||||
{/* ClassDeclarationStructureElement */
|
||||
constructor() : this(1) {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] constructorsScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Int| = R|<local>/a|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
this<R|A|>(Int(1))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
class Foo {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
class Bar {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
class Outer {/* ClassDeclarationStructureElement */
|
||||
class Inner {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
class Local {
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] danglingAnnotationClassLevel.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Foo| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Bar : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Bar| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Outer : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Outer| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Inner : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Outer.Inner| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Local : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Local| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/* RootScriptStructureElement */class Foo {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
class Bar {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
class Outer {/* ClassDeclarationStructureElement */
|
||||
class Inner {/* ClassDeclarationStructureElement */
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
class Local {
|
||||
@Suppress("") @MustBeDocumented
|
||||
}
|
||||
}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] danglingAnnotationClassLevelScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Foo| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Bar : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Bar| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Outer : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Outer| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Inner : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Outer.Inner| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Local : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Local| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
@Suppress("") @MustBeDocumented/* DeclarationStructureElement */
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] danglingAnnotationTopLevel.kt
|
||||
@R|kotlin/Suppress|[Types](names = vararg(String())) @R|kotlin/annotation/MustBeDocumented|[Types]() <DANGLING MODIFIER: Top level declaration expected>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
val a = myRun {
|
||||
class X()
|
||||
|
||||
val y = 10
|
||||
}/* DeclarationStructureElement */
|
||||
}
|
||||
|
||||
inline fun <R> myRun(block: () -> R): R {/* DeclarationStructureElement */
|
||||
return block()
|
||||
}
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] declarationsInPropertyInit.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Unit| = R|/myRun|<R|kotlin/Unit|>(<L> = [ResolvedTo(BODY_RESOLVE)] myRun@fun <anonymous>(): R|kotlin/Unit| <inline=Inline, kind=UNKNOWN> {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = Int(10)
|
||||
}
|
||||
)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] R> myRun([ResolvedTo(BODY_RESOLVE)] block: R|() -> R|): R|R| {
|
||||
^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/* RootScriptStructureElement */class A {/* ClassDeclarationStructureElement */
|
||||
val a = run {
|
||||
class X()
|
||||
|
||||
val y = 10
|
||||
}/* DeclarationStructureElement */
|
||||
}
|
||||
|
||||
inline fun <R> run(block: () -> R): R {/* DeclarationStructureElement */
|
||||
return block()
|
||||
}
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] declarationsInPropertyInitScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Unit| = this@R|/A|.R|kotlin/run|<R|A|, R|kotlin/Unit|>(<L> = [ResolvedTo(BODY_RESOLVE)] run@fun R|A|.<anonymous>(): R|kotlin/Unit| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = Int(10)
|
||||
}
|
||||
)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] R> run([ResolvedTo(BODY_RESOLVE)] block: R|() -> R|): R|R| {
|
||||
^run R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
enum class Enum(val x: Int)/* DeclarationStructureElement */ {/* ClassDeclarationStructureElement */
|
||||
A(1),/* DeclarationStructureElement */
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] enum.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class Enum : R|kotlin/Enum<Enum>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|Enum| {
|
||||
super<R|kotlin/Enum<Enum>|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = R|<local>/x|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry A: R|Enum| = object : R|Enum| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|Enum|>(Int(1))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array<Enum>| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|Enum| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries<Enum>|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries<Enum>|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
enum class A {/* ClassDeclarationStructureElement */
|
||||
X,/* DeclarationStructureElement */
|
||||
Y,/* DeclarationStructureElement */
|
||||
Z
|
||||
|
||||
;/* DeclarationStructureElement */
|
||||
|
||||
fun foo(){/* DeclarationStructureElement */}
|
||||
|
||||
val x = 10/* DeclarationStructureElement */
|
||||
|
||||
fun bar() = 10/* DeclarationStructureElement */
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] enumClass.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class A : R|kotlin/Enum<A>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Enum<A>|>()
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry X: R|A|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Y: R|A|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Z: R|A|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(10)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun bar(): R|kotlin/Int| {
|
||||
^bar Int(10)
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array<A>| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|A| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries<A>|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries<A>|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* RootScriptStructureElement */enum class A {/* ClassDeclarationStructureElement */
|
||||
X,/* DeclarationStructureElement */
|
||||
Y,/* DeclarationStructureElement */
|
||||
Z
|
||||
|
||||
;/* DeclarationStructureElement */
|
||||
|
||||
fun foo(){/* DeclarationStructureElement */}
|
||||
|
||||
val x = 10/* DeclarationStructureElement */
|
||||
|
||||
fun bar() = 10/* DeclarationStructureElement */
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] enumClassScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class A : R|kotlin/Enum<A>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Enum<A>|>()
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry X: R|A|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Y: R|A|
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Z: R|A|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = Int(10)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun bar(): R|kotlin/Int| {
|
||||
^bar Int(10)
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array<A>| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|A| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries<A>|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries<A>|
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
enum class A {/* ClassDeclarationStructureElement */
|
||||
X {/* DeclarationStructureElement */
|
||||
fun localInX() = 1
|
||||
},
|
||||
Y {/* DeclarationStructureElement */
|
||||
override fun foo() {}
|
||||
},
|
||||
Z,
|
||||
|
||||
;/* DeclarationStructureElement */
|
||||
|
||||
open fun foo() {/* DeclarationStructureElement */}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] enumClassWithBody.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class A : R|kotlin/Enum<A>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Enum<A>|>()
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry X: R|A| = object : R|A| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|A|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun localInX(): R|kotlin/Int| {
|
||||
^localInX Int(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Y: R|A| = object : R|A| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|A|>()
|
||||
}
|
||||
|
||||
public open override [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Z: R|A|
|
||||
public open [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array<A>| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|A| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries<A>|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries<A>|
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/* RootScriptStructureElement */enum class A {/* ClassDeclarationStructureElement */
|
||||
X {/* DeclarationStructureElement */
|
||||
fun localInX() = 1
|
||||
},
|
||||
Y {/* DeclarationStructureElement */
|
||||
override fun foo() {}
|
||||
},
|
||||
Z,
|
||||
|
||||
;/* DeclarationStructureElement */
|
||||
|
||||
open fun foo() {/* DeclarationStructureElement */}
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] enumClassWithBodyScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] enum class A : R|kotlin/Enum<A>| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Enum<A>|>()
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry X: R|A| = object : R|A| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|A|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun localInX(): R|kotlin/Int| {
|
||||
^localInX Int(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Y: R|A| = object : R|A| {
|
||||
private [ResolvedTo(BODY_RESOLVE)] constructor(): R|<anonymous>| {
|
||||
super<R|A|>()
|
||||
}
|
||||
|
||||
public open override [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] enum entry Z: R|A|
|
||||
public open [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array<A>| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|A| {
|
||||
}
|
||||
|
||||
public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries<A>|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries<A>|
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
fun main() {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] funWithoutTypes.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun main(): R|kotlin/Unit| {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fun bar(a: Int, b: (Boolean) -> Unit) {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun foo(x: String, y: () -> String) {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] functionValueParameter.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun bar([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] b: R|(kotlin/Boolean) -> kotlin/Unit|): R|kotlin/Unit| {
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/String|, [ResolvedTo(BODY_RESOLVE)] y: R|() -> kotlin/String|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import java.util.Collections
|
||||
|
||||
fun <T> checkSubtype(t: T) = t/* DeclarationStructureElement */
|
||||
|
||||
val ab = checkSubtype<List<Int>?>(Collections.emptyList<Int>())/* DeclarationStructureElement */
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] functionWithImplicitType.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| {
|
||||
^checkSubtype R|<local>/t|
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val ab: R|kotlin/collections/List<kotlin/Int>?| = R|/checkSubtype|<R|kotlin/collections/List<kotlin/Int>?|>(Q|java/util/Collections|.R|java/util/Collections.emptyList|<R|kotlin/Int|>())
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/collections/List<kotlin/Int>?|
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] functionWithImplicitType.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| {
|
||||
^checkSubtype R|<local>/t|
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val ab: R|kotlin/collections/List<kotlin/Int>?| = R|/checkSubtype<Inapplicable(INAPPLICABLE): /checkSubtype>#|<R|kotlin/collections/List<kotlin/Int>?|>(<Unresolved name: Collections>#.<Unresolved name: emptyList>#<R|kotlin/Int|>())
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/collections/List<kotlin/Int>?|
|
||||
@@ -0,0 +1,3 @@
|
||||
class A(val x: Int = 10, val b: String)/* DeclarationStructureElement */ {/* ClassDeclarationStructureElement */
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] functionalType.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int| = Int(10), [ResolvedTo(BODY_RESOLVE)] b: R|kotlin/String|): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = R|<local>/x|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val b: R|kotlin/String| = R|<local>/b|
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
init {/* DeclarationStructureElement */
|
||||
val x = 10
|
||||
class B
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] initBlock.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
init {
|
||||
[ResolvedTo(RAW_FIR)] lval x: R|kotlin/Int| = Int(10)
|
||||
local final [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(RAW_FIR)] constructor(): R|<local>/B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* RootScriptStructureElement */class A {/* ClassDeclarationStructureElement */
|
||||
init {/* DeclarationStructureElement */
|
||||
val x = 10
|
||||
class B
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] initBlockScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
init {
|
||||
[ResolvedTo(RAW_FIR)] lval x: R|kotlin/Int| = Int(10)
|
||||
local final [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(RAW_FIR)] constructor(): R|<local>/B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
val x = myRun {
|
||||
val inLambda = 10
|
||||
println(inLambda)
|
||||
inLambda
|
||||
}/* DeclarationStructureElement */
|
||||
|
||||
fun println(any: Any) {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
|
||||
inline fun <R> myRun(block: () -> R): R {/* DeclarationStructureElement */
|
||||
return block()
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] lambda.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = R|/myRun|<R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] myRun@fun <anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval inLambda: R|kotlin/Int| = Int(10)
|
||||
R|/println|(R|<local>/inLambda|)
|
||||
^ R|<local>/inLambda|
|
||||
}
|
||||
)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun println([ResolvedTo(BODY_RESOLVE)] any: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
}
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] R> myRun([ResolvedTo(BODY_RESOLVE)] block: R|() -> R|): R|R| {
|
||||
^myRun R|<local>/block|.R|SubstitutionOverride<kotlin/Function0.invoke: R|R|>|()
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
inline fun <T, R> with(receiver: T, block: T.() -> R): R {/* DeclarationStructureElement */
|
||||
return receiver.block()
|
||||
}
|
||||
|
||||
inline fun <T, R> T.let(block: (T) -> R): R {/* DeclarationStructureElement */
|
||||
return block(this)
|
||||
}
|
||||
|
||||
class B {/* ClassDeclarationStructureElement */
|
||||
fun foo(a: Int) = with(a) {
|
||||
toString().let { it }
|
||||
}/* DeclarationStructureElement */
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] lambdaInImplicitFunBody.kt
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| {
|
||||
^let R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(this@R|/let|)
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|): R|kotlin/String| {
|
||||
^foo R|/with|<R|kotlin/Int|, R|kotlin/String|>(R|<local>/a|, <L> = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.<anonymous>(): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
|
||||
^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|<R|kotlin/String|, R|kotlin/String|>(<L> = [ResolvedTo(BODY_RESOLVE)] let@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/String|): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
|
||||
^ R|<local>/it|
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
inline fun <T, R> with(receiver: T, block: T.() -> R): R {/* DeclarationStructureElement */
|
||||
return receiver.block()
|
||||
}
|
||||
|
||||
inline fun <T, R> T.let(block: (T) -> R): R {/* DeclarationStructureElement */
|
||||
return block(this)
|
||||
}
|
||||
|
||||
class B {/* ClassDeclarationStructureElement */
|
||||
val a: Int = 10/* DeclarationStructureElement */
|
||||
val x = with(a) {
|
||||
toString().let { it }
|
||||
}/* DeclarationStructureElement */
|
||||
}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] lambdaInImplicitPropertyBody.kt
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| {
|
||||
^let R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(this@R|/let|)
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Int| = Int(10)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = R|/with|<R|kotlin/Int|, R|kotlin/String|>(this@R|/B|.R|/B.a|, <L> = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.<anonymous>(): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
|
||||
^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|<R|kotlin/String|, R|kotlin/String|>(<L> = [ResolvedTo(BODY_RESOLVE)] let@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/String|): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
|
||||
^ R|<local>/it|
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
inline fun <T, R> with(receiver: T, block: T.() -> R): R {/* DeclarationStructureElement */
|
||||
return receiver.block()
|
||||
}
|
||||
|
||||
inline fun <T, R> T.let(block: (T) -> R): R {/* DeclarationStructureElement */
|
||||
return block(this)
|
||||
}
|
||||
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
val a = with(1) {
|
||||
this.let { it }
|
||||
}.let { 2 }
|
||||
}
|
||||
}
|
||||
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] lambdasInWithBodyFunction.kt
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| {
|
||||
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
|
||||
}
|
||||
public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| {
|
||||
^let R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(this@R|/let|)
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|/with|<R|kotlin/Int|, R|kotlin/Int|>(Int(1), <L> = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.<anonymous>(): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
|
||||
^ this@R|special/anonymous|.R|/let|<R|kotlin/Int|, R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] let@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
|
||||
^ R|<local>/it|
|
||||
}
|
||||
)
|
||||
}
|
||||
).R|/let|<R|kotlin/Int|, R|kotlin/Int|>(<L> = [ResolvedTo(BODY_RESOLVE)] let@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Int| <inline=Inline, kind=UNKNOWN> {
|
||||
^ Int(2)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fun a() {/* DeclarationStructureElement */
|
||||
class X
|
||||
}
|
||||
|
||||
class Y {/* ClassDeclarationStructureElement */
|
||||
fun b() {/* DeclarationStructureElement */
|
||||
class Z
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localClass.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun a(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Y : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Y| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun b(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Z : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Z| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun x() {/* DeclarationStructureElement */
|
||||
class Local {
|
||||
fun foo(){}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localClass2.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Local : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Local| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* RootScriptStructureElement */fun a() {/* DeclarationStructureElement */
|
||||
class X
|
||||
}
|
||||
|
||||
class Y {/* ClassDeclarationStructureElement */
|
||||
fun b() {/* DeclarationStructureElement */
|
||||
class Z
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localClassScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun a(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/X| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Y : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Y| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun b(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Z : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Z| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
class Outer {/* ClassDeclarationStructureElement */
|
||||
val i: Int = 1/* DeclarationStructureElement */
|
||||
get() {
|
||||
class Inner {
|
||||
var i: Int = 2
|
||||
get() {
|
||||
field++
|
||||
return field
|
||||
}
|
||||
val j: Int = 3
|
||||
get() {
|
||||
field = 42
|
||||
return field
|
||||
}
|
||||
|
||||
fun innerMember() {
|
||||
field++
|
||||
}
|
||||
}
|
||||
return field
|
||||
}
|
||||
|
||||
val j: Int = 4/* DeclarationStructureElement */
|
||||
get() {
|
||||
fun local() {
|
||||
field++
|
||||
field++
|
||||
}
|
||||
local()
|
||||
return field
|
||||
}
|
||||
}
|
||||
Vendored
+67
@@ -0,0 +1,67 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localDeclarationsInAccessor.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class Outer : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Outer| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val i: R|kotlin/Int| = Int(1)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] class Inner : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|<local>/Inner| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] var i: R|kotlin/Int| = Int(2)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
{
|
||||
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/Int| = this@R|<local>/Inner|.F|<local>/i|
|
||||
this@R|<local>/Inner|.F|<local>/i| = R|<local>/<unary>|.R|kotlin/Int.inc|()
|
||||
R|<local>/<unary>|
|
||||
}
|
||||
|
||||
^ this@R|<local>/Inner|.F|<local>/i|
|
||||
}
|
||||
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val j: R|kotlin/Int| = Int(3)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
this@R|<local>/Inner|.F|<local>/j| = Int(42)
|
||||
^ this@R|<local>/Inner|.F|<local>/j|
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun innerMember(): R|kotlin/Unit| {
|
||||
{
|
||||
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/Int| = this@R|/Outer|.F|/Outer.i|
|
||||
this@R|/Outer|.F|/Outer.i| = R|<local>/<unary>|.R|kotlin/Int.inc|()
|
||||
R|<local>/<unary>|
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
^ this@R|/Outer|.F|/Outer.i|
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] val j: R|kotlin/Int| = Int(4)
|
||||
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun local(): R|kotlin/Unit| {
|
||||
{
|
||||
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/Int| = this@R|/Outer|.F|/Outer.j|
|
||||
this@R|/Outer|.F|/Outer.j| = R|<local>/<unary>|.R|kotlin/Int.inc|()
|
||||
R|<local>/<unary>|
|
||||
}
|
||||
|
||||
{
|
||||
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|kotlin/Int| = this@R|/Outer|.F|/Outer.j|
|
||||
this@R|/Outer|.F|/Outer.j| = R|<local>/<unary>|.R|kotlin/Int.inc|()
|
||||
R|<local>/<unary>|
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
R|<local>/local|()
|
||||
^ this@R|/Outer|.F|/Outer.j|
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
fun x() {/* DeclarationStructureElement */
|
||||
fun y() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun z() {/* DeclarationStructureElement */
|
||||
fun q() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localFun.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun z(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun q(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* RootScriptStructureElement */fun x() {/* DeclarationStructureElement */
|
||||
fun y() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun z() {/* DeclarationStructureElement */
|
||||
fun q() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localFunScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun y(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun z(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun q(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
fun local() = 0
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localFunctionWithImplicitType.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun local(): R|kotlin/Int| {
|
||||
^local Int(0)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
var x: Int
|
||||
}
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun q() {/* DeclarationStructureElement */
|
||||
val y = 42
|
||||
}
|
||||
}
|
||||
class B {/* ClassDeclarationStructureElement */
|
||||
class C {/* ClassDeclarationStructureElement */
|
||||
fun u() {/* DeclarationStructureElement */
|
||||
var z: Int = 15
|
||||
}
|
||||
}
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localProperty.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lvar x: R|kotlin/Int|
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun q(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = Int(42)
|
||||
}
|
||||
|
||||
}
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class C : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B.C| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun u(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lvar z: R|kotlin/Int| = Int(15)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/* RootScriptStructureElement */fun foo() {/* DeclarationStructureElement */
|
||||
var x: Int
|
||||
}
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun q() {/* DeclarationStructureElement */
|
||||
val y = 42
|
||||
}
|
||||
}
|
||||
class B {/* ClassDeclarationStructureElement */
|
||||
class C {/* ClassDeclarationStructureElement */
|
||||
fun u() {/* DeclarationStructureElement */
|
||||
var z: Int = 15
|
||||
}
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localPropertyScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lvar x: R|kotlin/Int|
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun q(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = Int(42)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class C : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B.C| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun u(): R|kotlin/Unit| {
|
||||
[ResolvedTo(BODY_RESOLVE)] lvar z: R|kotlin/Int| = Int(15)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo() {/* DeclarationStructureElement */
|
||||
fun local() {
|
||||
println("local")
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] localUnitFunction.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
|
||||
local final [ResolvedTo(BODY_RESOLVE)] fun local(): R|kotlin/Unit| {
|
||||
<Unresolved name: println>#(String(local))
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun foo1() = 10/* DeclarationStructureElement */
|
||||
|
||||
fun foo2() {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] memberFunctions.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo1(): R|kotlin/Int| {
|
||||
^foo1 Int(10)
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo2(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
fun foo1() = 10/* DeclarationStructureElement */
|
||||
|
||||
fun foo2() {/* DeclarationStructureElement */
|
||||
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] memberProperties.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo1(): R|kotlin/Int| {
|
||||
^foo1 Int(10)
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] fun foo2(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {/* ClassDeclarationStructureElement */
|
||||
typealias X = Int/* DeclarationStructureElement */
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] memberTypeAlias.kt
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] typealias X = R|kotlin/Int|
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
/* RootScriptStructureElement */class A {/* ClassDeclarationStructureElement */
|
||||
typealias X = Int/* DeclarationStructureElement */
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FILE: [ResolvedTo(BODY_RESOLVE)] memberTypeAliasScript.kts
|
||||
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
||||
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
|
||||
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| {
|
||||
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
public final [ResolvedTo(BODY_RESOLVE)] typealias X = R|kotlin/Int|
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user