Skip to content

Instantly share code, notes, and snippets.

@rnett

rnett/Ir Secret

Created May 17, 2020 22:24
Show Gist options
  • Save rnett/6c90b8d0441341048165f93304bf0212 to your computer and use it in GitHub Desktop.
Save rnett/6c90b8d0441341048165f93304bf0212 to your computer and use it in GitHub Desktop.
FILE fqName:com.rnett.klairvoyant fileName:C:/Users/jimne/Desktop/My Stuff/klairvoyant/klairvoyant-use/src/main/kotlin/com/rnett/klairvoyant/Test.kt
CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:com.rnett.klairvoyant.Test
CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:com.rnett.klairvoyant.Test [primary]
VALUE_PARAMETER name:x index:0 type:kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]'
PROPERTY name:x visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:x$watch type:com.rnett.klairvoyant.Watcher<kotlin.Int> visibility:public [final]
EXPRESSION_BODY
CALL 'public final fun watch <T> (value: T of com.rnett.klairvoyant.watch): com.rnett.klairvoyant.WatchedWrapper<T of com.rnett.klairvoyant.watch> declared in com.rnett.klairvoyant' type=com.rnett.klairvoyant.Watcher<kotlin.Int> origin=null
<T>: kotlin.Int
value: GET_VAR 'x: kotlin.Int declared in com.rnett.klairvoyant.Test.<init>' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:com.rnett.klairvoyant.Test) returnType:@[Watched] kotlin.Int
correspondingProperty: PROPERTY name:x visibility:public modality:FINAL [val]
$this: VALUE_PARAMETER name:$this type:com.rnett.klairvoyant.Test
EXPRESSION_BODY
CALL 'public abstract fun <get-value> (): T of com.rnett.klairvoyant.Watcher declared in com.rnett.klairvoyant.Watcher' type=@[Watched] kotlin.Int origin=null
$this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x$watch type:com.rnett.klairvoyant.Watcher<kotlin.Int> visibility:public [final]' type=com.rnett.klairvoyant.Watcher<kotlin.Int> origin=null
receiver: GET_VAR '$this: com.rnett.klairvoyant.Test declared in com.rnett.klairvoyant.Test.<get-x>' type=com.rnett.klairvoyant.Test origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-x> visibility:public modality:FINAL <> ($this:com.rnett.klairvoyant.Test, <set-value>:kotlin.Int) returnType:kotlin.Unit
correspondingProperty: PROPERTY name:x visibility:public modality:FINAL [val]
$this: VALUE_PARAMETER name:$this type:com.rnett.klairvoyant.Test
VALUE_PARAMETER name:<set-value> index:0 type:kotlin.Int
BLOCK_BODY
CALL 'public abstract fun <set-value> (<set-?>: T of com.rnett.klairvoyant.Watcher): kotlin.Unit declared in com.rnett.klairvoyant.Watcher' type=kotlin.Unit origin=null
$this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x$watch type:com.rnett.klairvoyant.Watcher<kotlin.Int> visibility:public [final]' type=com.rnett.klairvoyant.Watcher<kotlin.Int> origin=null
receiver: GET_VAR '$this: com.rnett.klairvoyant.Test declared in com.rnett.klairvoyant.Test.<set-x>' type=com.rnett.klairvoyant.Test origin=null
<set-?>: GET_VAR '<set-value>: kotlin.Int declared in com.rnett.klairvoyant.Test.<set-x>' type=kotlin.Int origin=null
FUN name:print visibility:public modality:FINAL <> ($this:com.rnett.klairvoyant.Test) returnType:kotlin.Unit
$this: VALUE_PARAMETER name:<this> type:com.rnett.klairvoyant.Test
BLOCK_BODY
CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null
message: STRING_CONCATENATION type=kotlin.String
CONST String type=kotlin.String value="Prop: "
CALL 'public final fun <get-x> (): @[Watched] kotlin.Int declared in com.rnett.klairvoyant.Test' type=@[Watched] kotlin.Int origin=null
$this: GET_VAR '<this>: com.rnett.klairvoyant.Test declared in com.rnett.klairvoyant.Test.print' type=com.rnett.klairvoyant.Test origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
overridden:
public open fun hashCode (): kotlin.Int declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
VAR name:t type:com.rnett.klairvoyant.Test [val]
CONSTRUCTOR_CALL 'public constructor <init> (x: kotlin.Int) [primary] declared in com.rnett.klairvoyant.Test' type=com.rnett.klairvoyant.Test origin=null
x: CONST Int type=kotlin.Int value=3
CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null
message: CALL 'public final fun <get-x> (): @[Watched] kotlin.Int declared in com.rnett.klairvoyant.Test' type=@[Watched] kotlin.Int origin=null
$this: GET_VAR 'val t: com.rnett.klairvoyant.Test [val] declared in com.rnett.klairvoyant.main' type=com.rnett.klairvoyant.Test origin=null
CALL 'public final fun print (): kotlin.Unit declared in com.rnett.klairvoyant.Test' type=kotlin.Unit origin=null
$this: GET_VAR 'val t: com.rnett.klairvoyant.Test [val] declared in com.rnett.klairvoyant.main' type=com.rnett.klairvoyant.Test origin=null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment