Render 'defined in' in resolved call tests

This commit is contained in:
Svetlana Isakova
2014-08-18 19:14:42 +04:00
parent bbeb44e6ee
commit 67aad53db7
55 changed files with 82 additions and 83 deletions
@@ -9,8 +9,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun Int.invoke(): Unit
Resulting descriptor: fun Int.invoke(): Unit defined in Foo
Explicit receiver kind = BOTH_RECEIVERS
This object = f {Foo}
Receiver argument = 1 {Int}
Receiver argument = 1 {Int}
@@ -11,8 +11,8 @@ fun bar(f: Foo, i: Int) {
Resolved call:
Resulting descriptor: fun Int.invoke(): Unit
Resulting descriptor: fun Int.invoke(): Unit defined in Foo
Explicit receiver kind = THIS_OBJECT
This object = f {Foo}
Receiver argument = IntExt{fun Int.<anonymous>(): Unit}
Receiver argument = IntExt{fun Int.<anonymous>(): Unit defined in bar}
@@ -9,7 +9,7 @@ fun test() = <caret>A(1)
Resolved call:
Resulting descriptor: class object
Resulting descriptor: class object defined in A
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
@@ -9,7 +9,7 @@ fun test() = A<caret>(1)
Resolved call:
Resulting descriptor: fun invoke(i: Int): Int
Resulting descriptor: fun invoke(i: Int): Int defined in A.<class-object-for-A>
Explicit receiver kind = THIS_OBJECT
This object = A {<class-object-for-A>}
@@ -10,7 +10,7 @@ fun test() = A.<caret>ONE(1)
Resolved call:
Resulting descriptor: enum entry ONE : A
Resulting descriptor: enum entry ONE : A defined in A
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
@@ -10,7 +10,7 @@ fun test() = A.ONE<caret>(1)
Resolved call:
Resulting descriptor: fun invoke(i: Int): Int
Resulting descriptor: fun invoke(i: Int): Int defined in A
Explicit receiver kind = THIS_OBJECT
This object = ONE {A}
@@ -7,7 +7,7 @@ fun test() = <caret>A(1)
Resolved call:
Resulting descriptor: object A
Resulting descriptor: object A defined in root package
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
@@ -7,7 +7,7 @@ fun test() = A<caret>(1)
Resolved call:
Resulting descriptor: fun invoke(i: Int): Int
Resulting descriptor: fun invoke(i: Int): Int defined in A
Explicit receiver kind = THIS_OBJECT
This object = A {A}
@@ -8,8 +8,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun Foo.invoke(): Unit
Resulting descriptor: fun Foo.invoke(): Unit defined in root package
Explicit receiver kind = RECEIVER_ARGUMENT
This object = NO_RECEIVER
Receiver argument = f {Foo}
Receiver argument = f {Foo}
@@ -9,7 +9,7 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun invoke(): Unit
Resulting descriptor: fun invoke(): Unit defined in Foo
Explicit receiver kind = THIS_OBJECT
This object = f {Foo}