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");
|
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")
|
@TestMetadata("lambdaNoPar.kt")
|
||||||
public void testLambdaNoPar() throws Exception {
|
public void testLambdaNoPar() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoPar.kt");
|
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")
|
@TestMetadata("lambdaNoParLabel.kt")
|
||||||
public void testLambdaNoParLabel() throws Exception {
|
public void testLambdaNoParLabel() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabel.kt");
|
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")
|
@TestMetadata("lambdaNoParRCurly.kt")
|
||||||
public void testLambdaNoParRCurly() throws Exception {
|
public void testLambdaNoParRCurly() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurly.kt");
|
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")
|
@TestMetadata("noParams.kt")
|
||||||
public void testNoParams() throws Exception {
|
public void testNoParams() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/noParams.kt");
|
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");
|
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")
|
@TestMetadata("oneParam.kt")
|
||||||
public void testOneParam() throws Exception {
|
public void testOneParam() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
// IGNORE_FIR
|
// IGNORE_FIR
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
fun invoke(vararg a: Any) {}
|
operator fun invoke(a: Any) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test(f: Foo) {
|
fun test(f: Foo) {
|
||||||
f() <caret>{}
|
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 {
|
class Foo {
|
||||||
fun invoke(vararg a: Any) {}
|
operator fun invoke(a: Any) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test(f: Foo) {
|
fun test(f: Foo) {
|
||||||
f <caret>{}
|
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 {
|
class Foo {
|
||||||
fun invoke(vararg a: Any) {}
|
operator fun invoke(a: Any) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test(f: Foo) {
|
fun test(f: Foo) {
|
||||||
f f@ <caret>{}
|
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 {
|
class Foo {
|
||||||
fun invoke(vararg a: Any) {}
|
operator fun invoke(a: Any) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test(f: Foo) {
|
fun test(f: Foo) {
|
||||||
f {<caret>}
|
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 {
|
class Foo {
|
||||||
fun invoke(vararg a: Any) {}
|
operator fun invoke(a: Any) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun test(f: Foo) {
|
fun test(f: Foo) {
|
||||||
f() { 1<caret>}
|
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");
|
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")
|
@TestMetadata("lambdaNoPar.kt")
|
||||||
public void testLambdaNoPar() throws Exception {
|
public void testLambdaNoPar() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoPar.kt");
|
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")
|
@TestMetadata("lambdaNoParLabel.kt")
|
||||||
public void testLambdaNoParLabel() throws Exception {
|
public void testLambdaNoParLabel() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParLabel.kt");
|
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")
|
@TestMetadata("lambdaNoParRCurly.kt")
|
||||||
public void testLambdaNoParRCurly() throws Exception {
|
public void testLambdaNoParRCurly() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/lambdaNoParRCurly.kt");
|
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")
|
@TestMetadata("noParams.kt")
|
||||||
public void testNoParams() throws Exception {
|
public void testNoParams() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/noParams.kt");
|
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");
|
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")
|
@TestMetadata("oneParam.kt")
|
||||||
public void testOneParam() throws Exception {
|
public void testOneParam() throws Exception {
|
||||||
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
runTest("idea/testData/resolve/references/invoke/oneParam.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user