Generate IrTypeParameter and IrValueParameter declarations

This commit is contained in:
Dmitry Petrov
2017-03-15 17:47:46 +03:00
parent 03b664febd
commit 8cea27b5bb
149 changed files with 2251 additions and 331 deletions
@@ -1,6 +1,7 @@
FILE /differentReceivers.kt
CLASS CLASS MyClass
CONSTRUCTOR public constructor MyClass(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='MyClass'
@@ -9,16 +10,23 @@ FILE /differentReceivers.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: MyClass>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: MyClass>' type=MyClass origin=null
FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER <receiver: provideDelegate(Any?, Any) on MyClass: String>
VALUE_PARAMETER value-parameter host: kotlin.Any?
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String'
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: provideDelegate(Any?, Any) on MyClass: String>' type=MyClass origin=null
FUN public operator fun kotlin.String.getValue(receiver: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER <receiver: getValue(Any?, Any) on String: String>
VALUE_PARAMETER value-parameter receiver: kotlin.Any?
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String'
GET_VAR '<receiver: getValue(Any?, Any) on String: String>' type=kotlin.String origin=null
@@ -1,6 +1,7 @@
FILE /local.kt
CLASS CLASS Delegate
CONSTRUCTOR public constructor Delegate(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Delegate'
@@ -9,17 +10,22 @@ FILE /local.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String'
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
CLASS CLASS DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider'
@@ -28,11 +34,15 @@ FILE /local.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: DelegateProvider>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: DelegateProvider>' type=DelegateProvider origin=null
FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate
$this: VALUE_PARAMETER <receiver: DelegateProvider>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate'
CALL 'constructor Delegate(String)' type=Delegate origin=null
@@ -1,6 +1,7 @@
FILE /localDifferentReceivers.kt
CLASS CLASS MyClass
CONSTRUCTOR public constructor MyClass(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='MyClass'
@@ -9,16 +10,23 @@ FILE /localDifferentReceivers.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: MyClass>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: MyClass>' type=MyClass origin=null
FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER <receiver: provideDelegate(Any?, Any) on MyClass: String>
VALUE_PARAMETER value-parameter host: kotlin.Any?
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String'
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: provideDelegate(Any?, Any) on MyClass: String>' type=MyClass origin=null
FUN public operator fun kotlin.String.getValue(receiver: kotlin.Any?, p: kotlin.Any): kotlin.String
$receiver: VALUE_PARAMETER <receiver: getValue(Any?, Any) on String: String>
VALUE_PARAMETER value-parameter receiver: kotlin.Any?
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String'
GET_VAR '<receiver: getValue(Any?, Any) on String: String>' type=kotlin.String origin=null
@@ -1,6 +1,7 @@
FILE /member.kt
CLASS CLASS Delegate
CONSTRUCTOR public constructor Delegate(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Delegate'
@@ -9,17 +10,22 @@ FILE /member.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String'
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
CLASS CLASS DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider'
@@ -28,11 +34,15 @@ FILE /member.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: DelegateProvider>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: DelegateProvider>' type=DelegateProvider origin=null
FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate
$this: VALUE_PARAMETER <receiver: DelegateProvider>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate'
CALL 'constructor Delegate(String)' type=Delegate origin=null
@@ -52,6 +62,7 @@ FILE /member.kt
thisRef: GET_VAR '<receiver: Host>' type=Host origin=null
property: CALLABLE_REFERENCE 'testMember: String' type=kotlin.reflect.KProperty1<Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE
FUN DELEGATED_PROPERTY_ACCESSOR public final fun <get-testMember>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Host>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-testMember>(): String'
CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null
@@ -6,6 +6,7 @@ FILE /memberExtension.kt
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
CLASS CLASS StringDelegate
CONSTRUCTOR public constructor StringDelegate(s: kotlin.String)
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='StringDelegate'
@@ -14,11 +15,15 @@ FILE /memberExtension.kt
EXPRESSION_BODY
GET_VAR 'value-parameter s: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-s>(): kotlin.String
$this: VALUE_PARAMETER <receiver: StringDelegate>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-s>(): String'
GET_FIELD 's: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: StringDelegate>' type=Host.StringDelegate origin=null
FUN public final operator fun getValue(receiver: kotlin.String, p: kotlin.Any): kotlin.String
$this: VALUE_PARAMETER <receiver: StringDelegate>
VALUE_PARAMETER value-parameter receiver: kotlin.String
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(String, Any): String'
CALL 'plus(Any?): String' type=kotlin.String origin=PLUS
@@ -26,6 +31,10 @@ FILE /memberExtension.kt
other: CALL '<get-s>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: StringDelegate>' type=Host.StringDelegate origin=null
FUN public final operator fun kotlin.String.provideDelegate(host: kotlin.Any?, p: kotlin.Any): Host.StringDelegate
$this: VALUE_PARAMETER <receiver: Host>
$receiver: VALUE_PARAMETER <receiver: provideDelegate(Any?, Any) on String: Host.StringDelegate>
VALUE_PARAMETER value-parameter host: kotlin.Any?
VALUE_PARAMETER value-parameter p: kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on String: Host.StringDelegate'
CALL 'constructor StringDelegate(String)' type=Host.StringDelegate origin=null
@@ -39,6 +48,8 @@ FILE /memberExtension.kt
host: GET_VAR '<receiver: Host>' type=Host origin=null
p: CALLABLE_REFERENCE 'plusK: String on String' type=kotlin.reflect.KProperty2<kotlin.String, Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE
FUN DELEGATED_PROPERTY_ACCESSOR public final fun kotlin.String.<get-plusK>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Host>
$receiver: VALUE_PARAMETER <receiver: plusK: String on String>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-plusK>() on String: String'
CALL 'getValue(String, Any): String' type=kotlin.String origin=null
@@ -53,6 +64,7 @@ FILE /memberExtension.kt
$this: GET_VAR '<receiver: Host>' type=Host origin=null
$receiver: CONST String type=kotlin.String value='O'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-ok>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Host>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-ok>(): String'
GET_FIELD 'ok: String' type=kotlin.String origin=null
@@ -1,6 +1,7 @@
FILE /topLevel.kt
CLASS CLASS Delegate
CONSTRUCTOR public constructor Delegate(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Delegate'
@@ -9,17 +10,22 @@ FILE /topLevel.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String
$this: VALUE_PARAMETER <receiver: Delegate>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String'
CALL '<get-value>(): String' type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: Delegate>' type=Delegate origin=null
CLASS CLASS DelegateProvider
CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String)
VALUE_PARAMETER value-parameter value: kotlin.String
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider'
@@ -28,11 +34,15 @@ FILE /topLevel.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.String
$this: VALUE_PARAMETER <receiver: DelegateProvider>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): String'
GET_FIELD 'value: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: DelegateProvider>' type=DelegateProvider origin=null
FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate
$this: VALUE_PARAMETER <receiver: DelegateProvider>
VALUE_PARAMETER value-parameter thisRef: kotlin.Any?
VALUE_PARAMETER value-parameter property: kotlin.Any?
BLOCK_BODY
RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate'
CALL 'constructor Delegate(String)' type=Delegate origin=null