Add invoke reference resolve test without errors in test data
This commit is contained in:
Generated
+25
@@ -581,21 +581,41 @@ public class FirReferenceResolveTestGenerated extends AbstractFirReferenceResolv
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaAndParens.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAndParensIncorrectVararg.kt")
|
||||
public void testLambdaAndParensIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaAndParensIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoPar.kt")
|
||||
public void testLambdaNoPar() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParIncorrectVararg.kt")
|
||||
public void testLambdaNoParIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParLabel.kt")
|
||||
public void testLambdaNoParLabel() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParLabelIncorrectVararg.kt")
|
||||
public void testLambdaNoParLabelIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabelIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParRCurly.kt")
|
||||
public void testLambdaNoParRCurly() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParRCurlyIncorrectVararg.kt")
|
||||
public void testLambdaNoParRCurlyIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurlyIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noParams.kt")
|
||||
public void testNoParams() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/noParams.kt");
|
||||
@@ -611,6 +631,11 @@ public class FirReferenceResolveTestGenerated extends AbstractFirReferenceResolv
|
||||
runTest("idea/testData/resolve/references/invoke/nonemptyLambdaRPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonemptyLambdaRParIncorrectVararg.kt")
|
||||
public void testNonemptyLambdaRParIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/nonemptyLambdaRParIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("oneParam.kt")
|
||||
public void testOneParam() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f() <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
// REF: (in Foo).invoke(Any)
|
||||
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f() <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(Any)
|
||||
+2
-4
@@ -1,11 +1,9 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
// REF: (in Foo).invoke(Any)
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
@@ -1,11 +1,9 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f f@ <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
// REF: (in Foo).invoke(Any)
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f f@ <caret>{}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
@@ -1,11 +1,9 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f {<caret>}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
// REF: (in Foo).invoke(Any)
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f {<caret>}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
@@ -1,11 +1,9 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
operator fun invoke(a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f() { 1<caret>}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
// REF: (in Foo).invoke(Any)
|
||||
@@ -0,0 +1,11 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
class Foo {
|
||||
fun invoke(vararg a: Any) {}
|
||||
}
|
||||
|
||||
fun test(f: Foo) {
|
||||
f() { 1<caret>}
|
||||
}
|
||||
|
||||
// REF: (in Foo).invoke(vararg Any)
|
||||
+25
@@ -581,21 +581,41 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaAndParens.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaAndParensIncorrectVararg.kt")
|
||||
public void testLambdaAndParensIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaAndParensIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoPar.kt")
|
||||
public void testLambdaNoPar() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParIncorrectVararg.kt")
|
||||
public void testLambdaNoParIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParLabel.kt")
|
||||
public void testLambdaNoParLabel() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParLabelIncorrectVararg.kt")
|
||||
public void testLambdaNoParLabelIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabelIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParRCurly.kt")
|
||||
public void testLambdaNoParRCurly() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurly.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("lambdaNoParRCurlyIncorrectVararg.kt")
|
||||
public void testLambdaNoParRCurlyIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurlyIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noParams.kt")
|
||||
public void testNoParams() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/noParams.kt");
|
||||
@@ -611,6 +631,11 @@ public class ReferenceResolveTestGenerated extends AbstractReferenceResolveTest
|
||||
runTest("idea/testData/resolve/references/invoke/nonemptyLambdaRPar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonemptyLambdaRParIncorrectVararg.kt")
|
||||
public void testNonemptyLambdaRParIncorrectVararg() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/nonemptyLambdaRParIncorrectVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("oneParam.kt")
|
||||
public void testOneParam() throws Exception {
|
||||
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
||||
|
||||
Reference in New Issue
Block a user