Put 'thisReceiver' declaration in class

Interfaces also have 'thisReceiver'
This commit is contained in:
Dmitry Petrov
2017-05-02 10:54:56 +03:00
parent 90ec53b3b0
commit fa4dc26814
103 changed files with 439 additions and 205 deletions
@@ -1,7 +1,9 @@
FILE /class.kt
CLASS INTERFACE TestInterface
$this: VALUE_PARAMETER this@TestInterface: TestInterface<T>
TYPE_PARAMETER <T>
CLASS INTERFACE TestNestedInterface
$this: VALUE_PARAMETER this@TestNestedInterface: TestNestedInterface<TT>
TYPE_PARAMETER <TT>
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -10,14 +12,14 @@ FILE /class.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test
$new: VALUE_PARAMETER this@Test: Test<T0>
$this: VALUE_PARAMETER this@Test: Test<T0>
TYPE_PARAMETER <T0>
CONSTRUCTOR public constructor Test<T0>()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Test'
CLASS CLASS TestNested
$new: VALUE_PARAMETER this@TestNested: TestNested<T1>
$this: VALUE_PARAMETER this@TestNested: TestNested<T1>
TYPE_PARAMETER <T1>
CONSTRUCTOR public constructor TestNested<T1>()
BLOCK_BODY
@@ -27,7 +29,7 @@ FILE /class.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS TestInner
$new: VALUE_PARAMETER this@TestInner: TestInner<T2, T0>
$this: VALUE_PARAMETER this@TestInner: TestInner<T2, T0>
TYPE_PARAMETER <T2>
CONSTRUCTOR public constructor TestInner<T2>()
$outer: VALUE_PARAMETER this@Test: Test<T0>
@@ -1,6 +1,6 @@
FILE /constructor.kt
CLASS CLASS Test1
$new: VALUE_PARAMETER this@Test1: Test1<T1, T2>
$this: VALUE_PARAMETER this@Test1: Test1<T1, T2>
TYPE_PARAMETER <T1>
TYPE_PARAMETER <T2>
CONSTRUCTOR public constructor Test1<T1, T2>(x: T1, y: T2)
@@ -33,7 +33,7 @@ FILE /constructor.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test2
$new: VALUE_PARAMETER this@Test2: Test2
$this: VALUE_PARAMETER this@Test2: Test2
CONSTRUCTOR public constructor Test2(x: kotlin.Int, y: kotlin.String)
VALUE_PARAMETER value-parameter x: kotlin.Int
VALUE_PARAMETER value-parameter y: kotlin.String
@@ -51,7 +51,7 @@ FILE /constructor.kt
GET_FIELD 'y: String' type=kotlin.String origin=null
receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null
CLASS CLASS TestInner
$new: VALUE_PARAMETER this@TestInner: TestInner<Z>
$this: VALUE_PARAMETER this@TestInner: TestInner<Z>
TYPE_PARAMETER <Z>
CONSTRUCTOR public constructor TestInner<Z>(z: Z)
$outer: VALUE_PARAMETER this@Test2: Test2
@@ -85,7 +85,7 @@ FILE /constructor.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test3
$new: VALUE_PARAMETER this@Test3: Test3
$this: VALUE_PARAMETER this@Test3: Test3
CONSTRUCTOR public constructor Test3(x: kotlin.Int, y: kotlin.String = ...)
VALUE_PARAMETER value-parameter x: kotlin.Int
VALUE_PARAMETER value-parameter y: kotlin.String = ...
@@ -118,7 +118,7 @@ FILE /constructor.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test4
$new: VALUE_PARAMETER this@Test4: Test4<T>
$this: VALUE_PARAMETER this@Test4: Test4<T>
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor Test4<T>(x: kotlin.Int)
VALUE_PARAMETER value-parameter x: kotlin.Int
@@ -1,6 +1,6 @@
FILE /dataClassMembers.kt
CLASS CLASS Test
$new: VALUE_PARAMETER this@Test: Test<T>
$this: VALUE_PARAMETER this@Test: Test<T>
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor Test<T>(x: T, y: kotlin.String = ...)
VALUE_PARAMETER value-parameter x: T
@@ -21,7 +21,7 @@ FILE /defaultPropertyAccessors.kt
SET_FIELD 'test2: Int' type=kotlin.Unit origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS CLASS Host
$new: VALUE_PARAMETER this@Host: Host
$this: VALUE_PARAMETER this@Host: Host
CONSTRUCTOR public constructor Host()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -57,7 +57,7 @@ FILE /defaultPropertyAccessors.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS InPrimaryCtor
$new: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor<T>
$this: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor<T>
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor InPrimaryCtor<T>(testInPrimaryCtor1: T, testInPrimaryCtor2: kotlin.Int = ...)
VALUE_PARAMETER value-parameter testInPrimaryCtor1: T
@@ -1,5 +1,6 @@
FILE /delegatedMembers.kt
CLASS INTERFACE IBase
$this: VALUE_PARAMETER this@IBase: IBase<T>
TYPE_PARAMETER <T>
FUN public abstract fun foo(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER this@IBase: IBase<T>
@@ -16,7 +17,7 @@ FILE /delegatedMembers.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test
$new: VALUE_PARAMETER this@Test: Test<TT>
$this: VALUE_PARAMETER this@Test: Test<TT>
TYPE_PARAMETER <TT>
CONSTRUCTOR public constructor Test<TT>(impl: IBase<TT>)
VALUE_PARAMETER value-parameter impl: IBase<TT>
@@ -21,7 +21,7 @@ FILE /fun.kt
VALUE_PARAMETER value-parameter j: kotlin.String
BLOCK_BODY
CLASS CLASS Host
$new: VALUE_PARAMETER this@Host: Host
$this: VALUE_PARAMETER this@Host: Host
CONSTRUCTOR public constructor Host()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -1,13 +1,13 @@
FILE /genericInnerClass.kt
CLASS CLASS Outer
$new: VALUE_PARAMETER this@Outer: Outer<T1>
$this: VALUE_PARAMETER this@Outer: Outer<T1>
TYPE_PARAMETER <T1>
CONSTRUCTOR public constructor Outer<T1>()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Outer'
CLASS CLASS Inner
$new: VALUE_PARAMETER this@Inner: Inner<T2, T1>
$this: VALUE_PARAMETER this@Inner: Inner<T2, T1>
TYPE_PARAMETER <T2>
CONSTRUCTOR public constructor Inner<T2>()
$outer: VALUE_PARAMETER this@Outer: Outer<T1>
@@ -45,7 +45,7 @@ FILE /propertyAccessors.kt
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
CLASS CLASS Host
$new: VALUE_PARAMETER this@Host: Host<T>
$this: VALUE_PARAMETER this@Host: Host<T>
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor Host<T>()
BLOCK_BODY