Refactoring: AbstractResolvedCallsTest

Render resolved call to a separate file
This commit is contained in:
Svetlana Isakova
2014-05-30 09:59:44 +04:00
parent b2c2e1811c
commit 29ab166e1b
77 changed files with 770 additions and 208 deletions
@@ -1,6 +1,4 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: b = ArgumentMatch(a : A, ARGUMENT_HAS_NO_TYPE)
class A {}
@@ -0,0 +1,20 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(b)
}
Resolved call:
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
ARGUMENT_HAS_NO_TYPE a : A = b
@@ -1,6 +1,4 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: A() = ArgumentMatch(a : A, SUCCESS)
class A {}
@@ -0,0 +1,20 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo(A())
}
Resolved call:
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
SUCCESS a : A = A()
@@ -1,6 +1,4 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: "" = ArgumentMatch(a : A, TYPE_MISMATCH)
class A {}
@@ -0,0 +1,20 @@
// !CALL: foo
class A {}
fun foo(a: A) {}
fun bar() {
foo("")
}
Resolved call:
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
TYPE_MISMATCH a : A = ""
@@ -1,6 +1,4 @@
// !ONLY_ARGUMENTS
// !CALL: foo
// !ARG_1: "" = ArgumentUnmapped
fun foo() {}
@@ -0,0 +1,18 @@
// !CALL: foo
fun foo() {}
fun bar() {
foo("")
}
Resolved call:
Explicit receiver kind = NO_EXPLICIT_RECEIVER
This object = NO_RECEIVER
Receiver argument = NO_RECEIVER
Value arguments mapping:
ARGUMENT UNMAPPED: ""