HL API: Remove unused // CALL directive in resolve call test data.
This commit is contained in:
committed by
Ilya Kirillov
parent
8508017dbb
commit
f098bf449c
-2
@@ -3,5 +3,3 @@ fun function(a: Int) {}
|
||||
fun call() {
|
||||
<expr>function(1)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(a: kotlin.Int): kotlin.Unit
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ fun function(a: Int, b: (String) -> Boolean) {}
|
||||
fun call() {
|
||||
<expr>function(1) { s -> true }</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(a: kotlin.Int, b: (kotlin.String) -> kotlin.Boolean): kotlin.Unit
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ fun function(a: Int, b: String) {}
|
||||
fun call() {
|
||||
<expr>function(b = "foo", a = 1)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(a: kotlin.Int, b: kotlin.String): kotlin.Unit
|
||||
-2
@@ -3,5 +3,3 @@ fun function(a: Int, b: (String) -> Boolean) {}
|
||||
fun call() {
|
||||
<expr>function(1, { s -> true })</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(a: kotlin.Int, b: (String) -> Boolean): kotlin.Unit
|
||||
Vendored
-2
@@ -4,5 +4,3 @@ fun call() {
|
||||
val args = intArrayOf(1, 2, 3)
|
||||
<expr>function(*args)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(vararg a: kotlin.IntArray): kotlin.Unit
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ fun function(vararg a: Int) {}
|
||||
fun call() {
|
||||
<expr>function(1, 2, 3)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(vararg a: kotlin.IntArray): kotlin.Unit
|
||||
-2
@@ -3,5 +3,3 @@ fun String.function(a: Int) {}
|
||||
fun call() {
|
||||
"str".<expr>function(1)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(<receiver>: kotlin.String, a: kotlin.Int): kotlin.Unit
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ fun String.function(a: Int) {}
|
||||
fun call() {
|
||||
"str"?.<expr>function(1)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /function(<receiver>: kotlin.String, a: kotlin.Int): kotlin.Unit
|
||||
Vendored
-2
@@ -5,5 +5,3 @@ class A {
|
||||
fun call() {
|
||||
val a = <expr>A(42)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = <constructor>(i: kotlin.Int): A
|
||||
|
||||
-2
@@ -3,5 +3,3 @@ class A
|
||||
fun call() {
|
||||
val a = <expr>A()</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = <constructor>(): A
|
||||
-2
@@ -5,5 +5,3 @@ fun call() {
|
||||
|
||||
// FILE: A.java
|
||||
class A {}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = <constructor>(): A
|
||||
-2
@@ -8,5 +8,3 @@ fun call() {
|
||||
class JavaClass {
|
||||
void javaMethod() {}
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /JavaClass.javaMethod(): kotlin.Unit
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ infix fun <A, B> A.to(other: B) = this
|
||||
open class A<T>(x: T)
|
||||
|
||||
class B : A(<expr>1 to 2</expr>)
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /to(<receiver>: A, other: B): A
|
||||
Vendored
-2
@@ -3,5 +3,3 @@ fun x() {
|
||||
}
|
||||
|
||||
fun foo(){}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = ERR<Too many arguments for public final fun /foo(): R|kotlin/Unit|, [/foo(): kotlin.Unit]>
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
fun call(x: (Int) -> String) {
|
||||
<expr>x(1)</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionalTypeVariableCall: target = x: kotlin.Function1<kotlin.Int, kotlin.String>, targetFunction = kotlin/Function1.invoke(p1: kotlin.Int): kotlin.String
|
||||
-2
@@ -3,5 +3,3 @@ operator fun Int.invoke(): String {}
|
||||
fun call(x: kotlin.int) {
|
||||
<expr>x()</expr>
|
||||
}
|
||||
|
||||
// CALL: KtFunctionCall: targetFunction = /invoke(<receiver>: kotlin.Int): kotlin.String
|
||||
Reference in New Issue
Block a user