Generate parameter declarations for fake overrides
This commit is contained in:
@@ -11,3 +11,4 @@ FILE /anonymousFunction.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-anonymous>(): () -> Unit'
|
||||
GET_FIELD 'anonymous: () -> Unit' type=() -> kotlin.Unit origin=null
|
||||
|
||||
|
||||
@@ -153,3 +153,4 @@ FILE /destructuringInLambda.kt
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'fn: (A) -> Int' type=kotlin.Unit origin=null
|
||||
value: GET_VAR 'value-parameter <set-?>: (A) -> Int' type=(A) -> kotlin.Int origin=null
|
||||
|
||||
|
||||
@@ -14,3 +14,4 @@ FILE /extensionLambda.kt
|
||||
CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
|
||||
$this: GET_VAR 'this@<anonymous>: String' type=kotlin.String origin=null
|
||||
FUNCTION_REFERENCE '<anonymous>() on String: Int' type=kotlin.String.() -> kotlin.Int origin=LAMBDA
|
||||
|
||||
|
||||
@@ -25,3 +25,4 @@ FILE /justLambda.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-test2>(): () -> Unit'
|
||||
GET_FIELD 'test2: () -> Unit' type=() -> kotlin.Unit origin=null
|
||||
|
||||
|
||||
@@ -14,3 +14,4 @@ FILE /localFunction.kt
|
||||
$this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null
|
||||
GET_VAR 'tmp0: Int' type=kotlin.Int origin=null
|
||||
CALL 'local(): Unit' type=kotlin.Unit origin=null
|
||||
|
||||
|
||||
@@ -6,8 +6,12 @@ FILE /multipleImplicitReceivers.kt
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='A'
|
||||
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 OBJECT B
|
||||
$this: VALUE_PARAMETER this@B: B
|
||||
CONSTRUCTOR private constructor B()
|
||||
@@ -15,8 +19,12 @@ FILE /multipleImplicitReceivers.kt
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='B'
|
||||
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 INTERFACE IFoo
|
||||
$this: VALUE_PARAMETER this@IFoo: IFoo
|
||||
PROPERTY public open val A.foo: B
|
||||
@@ -27,8 +35,12 @@ FILE /multipleImplicitReceivers.kt
|
||||
RETURN type=kotlin.Nothing from='<get-foo>() on A: B'
|
||||
GET_OBJECT 'B' type=B
|
||||
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 INTERFACE IInvoke
|
||||
$this: VALUE_PARAMETER this@IInvoke: IInvoke
|
||||
FUN public open operator fun B.invoke(): kotlin.Int
|
||||
@@ -38,8 +50,12 @@ FILE /multipleImplicitReceivers.kt
|
||||
RETURN type=kotlin.Nothing from='invoke() on B: Int'
|
||||
CONST Int type=kotlin.Int value='42'
|
||||
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 test(fooImpl: IFoo, invokeImpl: IInvoke): kotlin.Unit
|
||||
VALUE_PARAMETER value-parameter fooImpl: IFoo
|
||||
VALUE_PARAMETER value-parameter invokeImpl: IInvoke
|
||||
@@ -80,3 +96,4 @@ FILE /multipleImplicitReceivers.kt
|
||||
FUNCTION_REFERENCE '<anonymous>() on IInvoke: Int' type=IInvoke.() -> kotlin.Int origin=LAMBDA
|
||||
FUNCTION_REFERENCE '<anonymous>() on IFoo: Int' type=IFoo.() -> kotlin.Int origin=LAMBDA
|
||||
FUNCTION_REFERENCE '<anonymous>() on A: Int' type=A.() -> kotlin.Int origin=LAMBDA
|
||||
|
||||
|
||||
@@ -71,3 +71,4 @@ FILE /nonLocalReturn.kt
|
||||
CALL 'print(Int): Unit' type=kotlin.Unit origin=null
|
||||
message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null
|
||||
FUNCTION_REFERENCE '<anonymous>(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA
|
||||
|
||||
|
||||
@@ -12,3 +12,4 @@ FILE /samAdapter.kt
|
||||
FUNCTION_REFERENCE '<anonymous>(): Unit' type=() -> kotlin.Unit origin=LAMBDA
|
||||
CALL 'run(): Unit' type=kotlin.Unit origin=null
|
||||
$this: GET_VAR 'hello: Runnable' type=java.lang.Runnable origin=null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user