Generate parameter declarations for fake overrides

This commit is contained in:
Dmitry Petrov
2017-05-02 12:02:31 +03:00
parent fa4dc26814
commit 78a601af87
160 changed files with 1204 additions and 12 deletions
@@ -17,8 +17,12 @@ FILE /differentReceivers.kt
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER this@provideDelegate: MyClass
VALUE_PARAMETER value-parameter host: kotlin.Any?
@@ -70,3 +74,4 @@ FILE /differentReceivers.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-testOK>(): String'
GET_FIELD 'testOK: String' type=kotlin.String origin=null
@@ -25,8 +25,12 @@ FILE /local.kt
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
CLASS CLASS DelegateProvider
$this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
@@ -54,8 +58,12 @@ FILE /local.kt
value: CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public fun foo(): kotlin.Unit
BLOCK_BODY
LOCAL_DELEGATED_PROPERTY val testMember: kotlin.String
@@ -72,3 +80,4 @@ FILE /local.kt
$this: GET_VAR '`testMember$delegate`: Delegate' type=Delegate origin=null
thisRef: CONST Null type=kotlin.Nothing? value='null'
property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testMember: String' delegate='`testMember$delegate`: Delegate' getter='<get-testMember>(): String' setter=null type=kotlin.reflect.KProperty0<kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE
@@ -17,8 +17,12 @@ FILE /localDifferentReceivers.kt
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER this@provideDelegate: MyClass
VALUE_PARAMETER value-parameter host: kotlin.Any?
@@ -66,3 +70,4 @@ FILE /localDifferentReceivers.kt
other: CALL '<get-testK>(): String' type=kotlin.String origin=GET_LOCAL_PROPERTY
RETURN type=kotlin.Nothing from='box(): String'
GET_VAR 'testOK: String' type=kotlin.String origin=null
@@ -25,8 +25,12 @@ FILE /member.kt
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
CLASS CLASS DelegateProvider
$this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
@@ -54,8 +58,12 @@ FILE /member.kt
value: CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
CLASS CLASS Host
$this: VALUE_PARAMETER this@Host: Host
CONSTRUCTOR public constructor Host()
@@ -80,5 +88,10 @@ FILE /member.kt
thisRef: GET_VAR 'this@Host: Host' type=Host origin=null
property: PROPERTY_REFERENCE 'testMember: String' field=null getter='<get-testMember>(): String' setter=null type=kotlin.reflect.KProperty1<Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
@@ -33,8 +33,12 @@ FILE /memberExtension.kt
other: CALL '<get-s>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@StringDelegate: StringDelegate' type=Host.StringDelegate origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public final operator fun kotlin.String.provideDelegate(host: kotlin.Any?, p: kotlin.Any): Host.StringDelegate
$this: VALUE_PARAMETER this@Host: Host
$receiver: VALUE_PARAMETER this@provideDelegate: String
@@ -75,5 +79,10 @@ FILE /memberExtension.kt
GET_FIELD 'ok: String' type=kotlin.String origin=null
receiver: GET_VAR 'this@Host: Host' type=Host origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
@@ -25,8 +25,12 @@ FILE /topLevel.kt
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
CLASS CLASS DelegateProvider
$this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
@@ -54,8 +58,12 @@ FILE /topLevel.kt
value: CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
PROPERTY public val testTopLevel: kotlin.String
FIELD DELEGATE val `testTopLevel$delegate`: Delegate
EXPRESSION_BODY
@@ -71,3 +79,4 @@ FILE /topLevel.kt
$this: GET_FIELD '`testTopLevel$delegate`: Delegate' type=Delegate origin=null
thisRef: CONST Null type=kotlin.Nothing? value='null'
property: PROPERTY_REFERENCE 'testTopLevel: String' field=null getter='<get-testTopLevel>(): String' setter=null type=kotlin.reflect.KProperty0<kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE