diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt index bab8b977475..b9e36d6efa8 100644 --- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt +++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt @@ -51,6 +51,7 @@ import org.jetbrains.kotlin.idea.codeInsight.moveUpDown.AbstractMoveStatementTes import org.jetbrains.kotlin.idea.codeInsight.postfix.AbstractPostfixTemplateProviderTest import org.jetbrains.kotlin.idea.codeInsight.surroundWith.AbstractSurroundWithTest import org.jetbrains.kotlin.idea.codeInsight.unwrap.AbstractUnwrapRemoveTest +import org.jetbrains.kotlin.idea.completion.AbstractHighLevelJvmBasicCompletionTest import org.jetbrains.kotlin.idea.completion.test.* import org.jetbrains.kotlin.idea.completion.test.handlers.AbstractBasicCompletionHandlerTest import org.jetbrains.kotlin.idea.completion.test.handlers.AbstractCompletionCharFilterTest @@ -1036,6 +1037,13 @@ fun main(args: Array) { } } + testGroup("idea/idea-fir/tests", "idea/idea-completion/testData") { + testClass { + model("basic/common") + model("basic/java") + } + } + testGroup("idea/scripting-support/test", "idea/scripting-support/testData") { testClass { model( diff --git a/idea/idea-completion/testData/basic/common/AfterFloatOnNewLine.kt b/idea/idea-completion/testData/basic/common/AfterFloatOnNewLine.kt index cfbbbd031bc..54600423ad9 100644 --- a/idea/idea-completion/testData/basic/common/AfterFloatOnNewLine.kt +++ b/idea/idea-completion/testData/basic/common/AfterFloatOnNewLine.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { val some = 1 val f = 1.0f diff --git a/idea/idea-completion/testData/basic/common/BasicAny.kt b/idea/idea-completion/testData/basic/common/BasicAny.kt index 4e58b56e273..7af363608d0 100644 --- a/idea/idea-completion/testData/basic/common/BasicAny.kt +++ b/idea/idea-completion/testData/basic/common/BasicAny.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { var a : A } diff --git a/idea/idea-completion/testData/basic/common/BasicInt.kt b/idea/idea-completion/testData/basic/common/BasicInt.kt index fb4dcf288c0..1ad66612f0c 100644 --- a/idea/idea-completion/testData/basic/common/BasicInt.kt +++ b/idea/idea-completion/testData/basic/common/BasicInt.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { var a : In } diff --git a/idea/idea-completion/testData/basic/common/CallLocalLambda.kt b/idea/idea-completion/testData/basic/common/CallLocalLambda.kt index 8f8eb1abe30..d9537412fb2 100644 --- a/idea/idea-completion/testData/basic/common/CallLocalLambda.kt +++ b/idea/idea-completion/testData/basic/common/CallLocalLambda.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { public fun testMethod() { } diff --git a/idea/idea-completion/testData/basic/common/ComponentFunction.kt b/idea/idea-completion/testData/basic/common/ComponentFunction.kt index 3308da60981..1b169b000d4 100644 --- a/idea/idea-completion/testData/basic/common/ComponentFunction.kt +++ b/idea/idea-completion/testData/basic/common/ComponentFunction.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON data class X { operator fun component1(): Int = 0 } diff --git a/idea/idea-completion/testData/basic/common/DataClassMembers2.kt b/idea/idea-completion/testData/basic/common/DataClassMembers2.kt index 109190726d9..5d80887caa1 100644 --- a/idea/idea-completion/testData/basic/common/DataClassMembers2.kt +++ b/idea/idea-completion/testData/basic/common/DataClassMembers2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON data class Data(val val1: Int, val val2: String) fun foo(d: Data) { diff --git a/idea/idea-completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt b/idea/idea-completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt index 7514047d6c3..93580b00999 100644 --- a/idea/idea-completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt +++ b/idea/idea-completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A typealias TA = A diff --git a/idea/idea-completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt b/idea/idea-completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt index 663b8601d21..f7a37b4948e 100644 --- a/idea/idea-completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt +++ b/idea/idea-completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON open class Base class Test diff --git a/idea/idea-completion/testData/basic/common/InCallExpression.kt b/idea/idea-completion/testData/basic/common/InCallExpression.kt index 16fad2dbc1c..bf1e6b3ee0c 100644 --- a/idea/idea-completion/testData/basic/common/InCallExpression.kt +++ b/idea/idea-completion/testData/basic/common/InCallExpression.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package something class SomeTempClass { diff --git a/idea/idea-completion/testData/basic/common/InClassObject.kt b/idea/idea-completion/testData/basic/common/InClassObject.kt index ed1d6d48a63..e9b6eefdb02 100644 --- a/idea/idea-completion/testData/basic/common/InClassObject.kt +++ b/idea/idea-completion/testData/basic/common/InClassObject.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { val field = 0 class NestedClass diff --git a/idea/idea-completion/testData/basic/common/InInnerClass.kt b/idea/idea-completion/testData/basic/common/InInnerClass.kt index d941c387c56..ee7e8da621f 100644 --- a/idea/idea-completion/testData/basic/common/InInnerClass.kt +++ b/idea/idea-completion/testData/basic/common/InInnerClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { val field = 0 class NestedClass diff --git a/idea/idea-completion/testData/basic/common/InLambda.kt b/idea/idea-completion/testData/basic/common/InLambda.kt index 92092c39dcd..5ec6c7cf2e4 100644 --- a/idea/idea-completion/testData/basic/common/InLambda.kt +++ b/idea/idea-completion/testData/basic/common/InLambda.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Iterable) { p.filter { it. } } diff --git a/idea/idea-completion/testData/basic/common/InLocalObjectDeclaration.kt b/idea/idea-completion/testData/basic/common/InLocalObjectDeclaration.kt index f62eaf6050c..b20d4405e3d 100644 --- a/idea/idea-completion/testData/basic/common/InLocalObjectDeclaration.kt +++ b/idea/idea-completion/testData/basic/common/InLocalObjectDeclaration.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun hello(moParam : Int) : Int { val more = 12 diff --git a/idea/idea-completion/testData/basic/common/InNestedClass.kt b/idea/idea-completion/testData/basic/common/InNestedClass.kt index c92f2c79748..1da6ffaa1aa 100644 --- a/idea/idea-completion/testData/basic/common/InNestedClass.kt +++ b/idea/idea-completion/testData/basic/common/InNestedClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { val field = 0 class NestedClass diff --git a/idea/idea-completion/testData/basic/common/KT10664.kt b/idea/idea-completion/testData/basic/common/KT10664.kt index c2280a8c9a5..feb833978b4 100644 --- a/idea/idea-completion/testData/basic/common/KT10664.kt +++ b/idea/idea-completion/testData/basic/common/KT10664.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): String? = null fun bar() { diff --git a/idea/idea-completion/testData/basic/common/KT12033.kt b/idea/idea-completion/testData/basic/common/KT12033.kt index f5e61745318..190dd7b050c 100644 --- a/idea/idea-completion/testData/basic/common/KT12033.kt +++ b/idea/idea-completion/testData/basic/common/KT12033.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun main(foo: Foo) { foo.apply { is diff --git a/idea/idea-completion/testData/basic/common/KT13780.kt b/idea/idea-completion/testData/basic/common/KT13780.kt index cf0c1107f3b..6a249456982 100644 --- a/idea/idea-completion/testData/basic/common/KT13780.kt +++ b/idea/idea-completion/testData/basic/common/KT13780.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class ResolvedCall(val candidateDescriptor: D) fun test(myResolvedCall: ResolvedCall) { diff --git a/idea/idea-completion/testData/basic/common/KT13780_1.kt b/idea/idea-completion/testData/basic/common/KT13780_1.kt index 621f21ed8df..624af725663 100644 --- a/idea/idea-completion/testData/basic/common/KT13780_1.kt +++ b/idea/idea-completion/testData/basic/common/KT13780_1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class ResolvedCall(val candidateDescriptor: D) fun test(myResolvedCall: ResolvedCall) { diff --git a/idea/idea-completion/testData/basic/common/LocalMultideclarationValues.kt b/idea/idea-completion/testData/basic/common/LocalMultideclarationValues.kt index 8665cf3fc8a..77a0680fda9 100644 --- a/idea/idea-completion/testData/basic/common/LocalMultideclarationValues.kt +++ b/idea/idea-completion/testData/basic/common/LocalMultideclarationValues.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON data class TestData(val first: Int, val second: String) fun f() : TestData = TestData(42, "Second") diff --git a/idea/idea-completion/testData/basic/common/NameWithDollars.kt b/idea/idea-completion/testData/basic/common/NameWithDollars.kt index c4305ae1c07..abf2f2b331b 100644 --- a/idea/idea-completion/testData/basic/common/NameWithDollars.kt +++ b/idea/idea-completion/testData/basic/common/NameWithDollars.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun `$$$$`() {} fun foo() { diff --git a/idea/idea-completion/testData/basic/common/NamedObject.kt b/idea/idea-completion/testData/basic/common/NamedObject.kt index 20b23963ac8..c14198cde8b 100644 --- a/idea/idea-completion/testData/basic/common/NamedObject.kt +++ b/idea/idea-completion/testData/basic/common/NamedObject.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package testing public object SimpleTestClass { diff --git a/idea/idea-completion/testData/basic/common/NoClassNameDuplication.kt b/idea/idea-completion/testData/basic/common/NoClassNameDuplication.kt index 212af9a99e2..46636a63874 100644 --- a/idea/idea-completion/testData/basic/common/NoClassNameDuplication.kt +++ b/idea/idea-completion/testData/basic/common/NoClassNameDuplication.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package testing class Testing { diff --git a/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt b/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt index 621d59adff3..9ca36d7e1f7 100644 --- a/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt +++ b/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { kotlin.coroutines.experimental. } diff --git a/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt b/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt index a043ce0b5e2..d7687820bed 100644 --- a/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt +++ b/idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { kotlin.coroutines.experimental.jvm. } diff --git a/idea/idea-completion/testData/basic/common/NoCompletionForExcluded.kt b/idea/idea-completion/testData/basic/common/NoCompletionForExcluded.kt index 89f4137c121..f6de938c8bf 100644 --- a/idea/idea-completion/testData/basic/common/NoCompletionForExcluded.kt +++ b/idea/idea-completion/testData/basic/common/NoCompletionForExcluded.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { kotlin.jvm. } diff --git a/idea/idea-completion/testData/basic/common/NoEmptyPackage.kt b/idea/idea-completion/testData/basic/common/NoEmptyPackage.kt index 4bd30127fba..6d4818d44f9 100644 --- a/idea/idea-completion/testData/basic/common/NoEmptyPackage.kt +++ b/idea/idea-completion/testData/basic/common/NoEmptyPackage.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { } diff --git a/idea/idea-completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt b/idea/idea-completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt index 0c46f8cf8cd..67d50724487 100644 --- a/idea/idea-completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt +++ b/idea/idea-completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON enum class E { A B diff --git a/idea/idea-completion/testData/basic/common/NoExtensionsAfterQualifier.kt b/idea/idea-completion/testData/basic/common/NoExtensionsAfterQualifier.kt index d955d457a48..9529d021b0e 100644 --- a/idea/idea-completion/testData/basic/common/NoExtensionsAfterQualifier.kt +++ b/idea/idea-completion/testData/basic/common/NoExtensionsAfterQualifier.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package pack fun String.extFoo(){} diff --git a/idea/idea-completion/testData/basic/common/NoLocalsDeclaredAhead.kt b/idea/idea-completion/testData/basic/common/NoLocalsDeclaredAhead.kt index 54b08b5b50b..dbb5301dea0 100644 --- a/idea/idea-completion/testData/basic/common/NoLocalsDeclaredAhead.kt +++ b/idea/idea-completion/testData/basic/common/NoLocalsDeclaredAhead.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { val v = { diff --git a/idea/idea-completion/testData/basic/common/NoPackageFacadeClasses.kt b/idea/idea-completion/testData/basic/common/NoPackageFacadeClasses.kt index cd05e01ecf7..e66647188f4 100644 --- a/idea/idea-completion/testData/basic/common/NoPackageFacadeClasses.kt +++ b/idea/idea-completion/testData/basic/common/NoPackageFacadeClasses.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { UtilPack } diff --git a/idea/idea-completion/testData/basic/common/ObjectInTypePosition.kt b/idea/idea-completion/testData/basic/common/ObjectInTypePosition.kt index bc7646695bc..db69d255dab 100644 --- a/idea/idea-completion/testData/basic/common/ObjectInTypePosition.kt +++ b/idea/idea-completion/testData/basic/common/ObjectInTypePosition.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON object NamedObject fun test() { diff --git a/idea/idea-completion/testData/basic/common/ObjectMembersFromNested.kt b/idea/idea-completion/testData/basic/common/ObjectMembersFromNested.kt index bd7a921c478..f4e3de6cc91 100644 --- a/idea/idea-completion/testData/basic/common/ObjectMembersFromNested.kt +++ b/idea/idea-completion/testData/basic/common/ObjectMembersFromNested.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON object O { fun foo() {} diff --git a/idea/idea-completion/testData/basic/common/OverloadFunctions.kt b/idea/idea-completion/testData/basic/common/OverloadFunctions.kt index e22e880b0a1..a8068ee1e21 100644 --- a/idea/idea-completion/testData/basic/common/OverloadFunctions.kt +++ b/idea/idea-completion/testData/basic/common/OverloadFunctions.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package Test.MyTest class A { diff --git a/idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt b/idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt index e448d839226..f529cd700d3 100644 --- a/idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt +++ b/idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON abstract class ProtectedTest { fun foo() { "". diff --git a/idea/idea-completion/testData/basic/common/RecieverMembersFromExtFun.kt b/idea/idea-completion/testData/basic/common/RecieverMembersFromExtFun.kt index caeb956d114..2aa35d852e8 100644 --- a/idea/idea-completion/testData/basic/common/RecieverMembersFromExtFun.kt +++ b/idea/idea-completion/testData/basic/common/RecieverMembersFromExtFun.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { public fun foo(): Int = 1 public val bar: Int = 1 diff --git a/idea/idea-completion/testData/basic/common/ShortClassNamesInTypePosition.kt b/idea/idea-completion/testData/basic/common/ShortClassNamesInTypePosition.kt index 55b7749f0ed..43a05c0ff89 100644 --- a/idea/idea-completion/testData/basic/common/ShortClassNamesInTypePosition.kt +++ b/idea/idea-completion/testData/basic/common/ShortClassNamesInTypePosition.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package testing class Hello() { diff --git a/idea/idea-completion/testData/basic/common/TopLevelClassName-3.kt b/idea/idea-completion/testData/basic/common/TopLevelClassName-3.kt index 65d8be12730..2bb4b12f6a7 100644 --- a/idea/idea-completion/testData/basic/common/TopLevelClassName-3.kt +++ b/idea/idea-completion/testData/basic/common/TopLevelClassName-3.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class // NUMBER: 0 \ No newline at end of file diff --git a/idea/idea-completion/testData/basic/common/TopLevelClassName4.kt b/idea/idea-completion/testData/basic/common/TopLevelClassName4.kt index 53ddef5c1d0..257ab923053 100644 --- a/idea/idea-completion/testData/basic/common/TopLevelClassName4.kt +++ b/idea/idea-completion/testData/basic/common/TopLevelClassName4.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { class } diff --git a/idea/idea-completion/testData/basic/common/TopLevelClassName5.kt b/idea/idea-completion/testData/basic/common/TopLevelClassName5.kt index 4a1b9a32b66..5936b884d27 100644 --- a/idea/idea-completion/testData/basic/common/TopLevelClassName5.kt +++ b/idea/idea-completion/testData/basic/common/TopLevelClassName5.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class class TopLevelClassName5 { diff --git a/idea/idea-completion/testData/basic/common/VariableClassName.kt b/idea/idea-completion/testData/basic/common/VariableClassName.kt index 744f18edced..529f26b18c5 100644 --- a/idea/idea-completion/testData/basic/common/VariableClassName.kt +++ b/idea/idea-completion/testData/basic/common/VariableClassName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package some open class MyClass() { diff --git a/idea/idea-completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt b/idea/idea-completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt index c3b137681d9..e550d74747a 100644 --- a/idea/idea-completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt +++ b/idea/idea-completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun f() { try { diff --git a/idea/idea-completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt b/idea/idea-completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt index 20c15323f13..bd743523b09 100644 --- a/idea/idea-completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt +++ b/idea/idea-completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON var v: Int get(){} set(v) diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt index 100cbf960f9..8912dc27e82 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val v = 1. // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt index a4c5d06b2ca..ea4a5f52b3b 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { val } diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt index b936fd5f832..9b1dbb146be 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun f // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt index d5f66ff9777..b4a90a89754 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt index 171cd88a049..1f0687bfda3 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt index f46d748d38d..762e79776e1 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON var // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt index 9baed57e43f..07a09d5f77c 100644 --- a/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt +++ b/idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON var // INVOCATION_COUNT: 0 diff --git a/idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt b/idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt index ce1f7f87137..604fce91b99 100644 --- a/idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt +++ b/idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface T { fun foo1(){} fun foo2(){} diff --git a/idea/idea-completion/testData/basic/common/classObjectElementsInClass.kt b/idea/idea-completion/testData/basic/common/classObjectElementsInClass.kt index 181acc3ab1b..266cf376041 100644 --- a/idea/idea-completion/testData/basic/common/classObjectElementsInClass.kt +++ b/idea/idea-completion/testData/basic/common/classObjectElementsInClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Some { companion object { val coProp = 12 diff --git a/idea/idea-completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt b/idea/idea-completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt index 2c76b9419e2..67d1ec29a67 100644 --- a/idea/idea-completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt +++ b/idea/idea-completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON @DslMarker annotation class MyDSL diff --git a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt index 60b9e51fa75..496f82fc8b6 100644 --- a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt +++ b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package Test class Some() { diff --git a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt index a8f97b0ee84..f5c0b0794cb 100644 --- a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt +++ b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Some() { fun methodName() { this. diff --git a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtension.kt b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtension.kt index 9365ddaa7e4..f28378c17ab 100644 --- a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtension.kt +++ b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtension.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun Some.first() { } diff --git a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt index f5eabe4ee0b..59b8016b3bc 100644 --- a/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt +++ b/idea/idea-completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt @@ -1,3 +1,5 @@ +// FIR_COMPARISON + fun Some.first() { } diff --git a/idea/idea-completion/testData/basic/common/extensions/InvalidTypeParameters.kt b/idea/idea-completion/testData/basic/common/extensions/InvalidTypeParameters.kt index 7dd4fee1e9a..693c4d0cf43 100644 --- a/idea/idea-completion/testData/basic/common/extensions/InvalidTypeParameters.kt +++ b/idea/idea-completion/testData/basic/common/extensions/InvalidTypeParameters.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class SomeObject() { var field : T? = null } diff --git a/idea/idea-completion/testData/basic/common/extensions/IrrelevantExtension.kt b/idea/idea-completion/testData/basic/common/extensions/IrrelevantExtension.kt index 808583c66eb..82d45030273 100644 --- a/idea/idea-completion/testData/basic/common/extensions/IrrelevantExtension.kt +++ b/idea/idea-completion/testData/basic/common/extensions/IrrelevantExtension.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun Some.simpleKotlinExtension() { } diff --git a/idea/idea-completion/testData/basic/common/extensions/KotlinTypeExtension.kt b/idea/idea-completion/testData/basic/common/extensions/KotlinTypeExtension.kt index 0707b815317..8820b9b853f 100644 --- a/idea/idea-completion/testData/basic/common/extensions/KotlinTypeExtension.kt +++ b/idea/idea-completion/testData/basic/common/extensions/KotlinTypeExtension.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun Some.simpleKotlinExtension() { } diff --git a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionFromWith.kt b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionFromWith.kt index be228423596..5bc536ffe96 100644 --- a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionFromWith.kt +++ b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionFromWith.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class X { fun String.f() {} } diff --git a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt index 8d8c68934ba..d116511f39a 100644 --- a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class B { fun A.extFunInBForA() {} fun B.extFunInBForB() {} diff --git a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt index cae52affb13..6b1a6e439fe 100644 --- a/idea/idea-completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt +++ b/idea/idea-completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt @@ -1,3 +1,5 @@ +// FIR_COMPARISON + class C { fun String.extFun() { diff --git a/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt b/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt index ae5ffcd70c8..4f4db73c6de 100644 --- a/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt +++ b/idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt @@ -1,3 +1,5 @@ +// FIR_COMPARISON + interface A { fun foo(): Int } diff --git a/idea/idea-completion/testData/basic/common/extensions/NoExtensionFromOuter.kt b/idea/idea-completion/testData/basic/common/extensions/NoExtensionFromOuter.kt index d66275f9bb9..9e2594ae760 100644 --- a/idea/idea-completion/testData/basic/common/extensions/NoExtensionFromOuter.kt +++ b/idea/idea-completion/testData/basic/common/extensions/NoExtensionFromOuter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { fun String.memberExtForString(){} diff --git a/idea/idea-completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt b/idea/idea-completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt index 616c482b7b8..e73079a1557 100644 --- a/idea/idea-completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt +++ b/idea/idea-completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { fun String.extFun() { } diff --git a/idea/idea-completion/testData/basic/common/extensions/WrongExplicitReceiver.kt b/idea/idea-completion/testData/basic/common/extensions/WrongExplicitReceiver.kt index 9ec750b2964..1bc64cc15c3 100644 --- a/idea/idea-completion/testData/basic/common/extensions/WrongExplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/extensions/WrongExplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Foo { fun Int.bar() = this } diff --git a/idea/idea-completion/testData/basic/common/extensions/WrongImplicitReceiver.kt b/idea/idea-completion/testData/basic/common/extensions/WrongImplicitReceiver.kt index 93cdf6d4157..9fa27cab56d 100644 --- a/idea/idea-completion/testData/basic/common/extensions/WrongImplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/extensions/WrongImplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class X { fun String.f() {} } diff --git a/idea/idea-completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt b/idea/idea-completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt index 4cd409b7823..b02b4d7d8ee 100644 --- a/idea/idea-completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt +++ b/idea/idea-completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Xyzzz fun foo(xyz: Xyzzzz){} diff --git a/idea/idea-completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt b/idea/idea-completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt index 7d3c60b4a20..fb8b6ace707 100644 --- a/idea/idea-completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt +++ b/idea/idea-completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // RUN_HIGHLIGHTING_BEFORE fun foo() { diff --git a/idea/idea-completion/testData/basic/common/getOperator/NotForSafeCall.kt b/idea/idea-completion/testData/basic/common/getOperator/NotForSafeCall.kt index 2ea65531e39..4ee4be6d0a9 100644 --- a/idea/idea-completion/testData/basic/common/getOperator/NotForSafeCall.kt +++ b/idea/idea-completion/testData/basic/common/getOperator/NotForSafeCall.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some(list: List?) { list?. } diff --git a/idea/idea-completion/testData/basic/common/inStringLiterals/EA76497.kt b/idea/idea-completion/testData/basic/common/inStringLiterals/EA76497.kt index 1c9aa92f84e..74a7dfebc0e 100644 --- a/idea/idea-completion/testData/basic/common/inStringLiterals/EA76497.kt +++ b/idea/idea-completion/testData/basic/common/inStringLiterals/EA76497.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val v = "$x.1" // NUMBER: 0 diff --git a/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate1.kt b/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate1.kt index 48562c3b74c..4697794355b 100644 --- a/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate1.kt +++ b/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(param: String) { val s = "$bla-bla-bla" } diff --git a/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate2.kt b/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate2.kt index 83bd658fedf..16bf1d80ef3 100644 --- a/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate2.kt +++ b/idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(param: String) { val s = "${}" } diff --git a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName2.kt b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName2.kt index c69b8158009..3434bc4d46a 100644 --- a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName2.kt +++ b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun bar() { val handler = { i: Int, } } diff --git a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName3.kt b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName3.kt index 260f160dd77..ed54727f115 100644 --- a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName3.kt +++ b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName3.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun bar() { val handler = { i, } } diff --git a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName5.kt b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName5.kt index a8d58c9dc4f..231333ff781 100644 --- a/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName5.kt +++ b/idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName5.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun bar() { val handler = { p1: Int, p2: List, } } diff --git a/idea/idea-completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt b/idea/idea-completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt index fa1f8dab04d..779d8670be1 100644 --- a/idea/idea-completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt +++ b/idea/idea-completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() {} fun some() { val localVal = 1 diff --git a/idea/idea-completion/testData/basic/common/namedArguments/NotAfterDot.kt b/idea/idea-completion/testData/basic/common/namedArguments/NotAfterDot.kt index 56c19a06706..0cce6373736 100644 --- a/idea/idea-completion/testData/basic/common/namedArguments/NotAfterDot.kt +++ b/idea/idea-completion/testData/basic/common/namedArguments/NotAfterDot.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(abcdef: Int) { } diff --git a/idea/idea-completion/testData/basic/common/namedArguments/NotInBrackets.kt b/idea/idea-completion/testData/basic/common/namedArguments/NotInBrackets.kt index 8ecd34206e3..a58f78450bf 100644 --- a/idea/idea-completion/testData/basic/common/namedArguments/NotInBrackets.kt +++ b/idea/idea-completion/testData/basic/common/namedArguments/NotInBrackets.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON operator fun String.get(p1: Int, p2: Int): Int = 0 fun bar() { diff --git a/idea/idea-completion/testData/basic/common/namedArguments/NotInElse.kt b/idea/idea-completion/testData/basic/common/namedArguments/NotInElse.kt index f83cdb88d76..7564ae9593c 100644 --- a/idea/idea-completion/testData/basic/common/namedArguments/NotInElse.kt +++ b/idea/idea-completion/testData/basic/common/namedArguments/NotInElse.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p1: Int, p2: Int) { } diff --git a/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt b/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt index 5a9f02a0716..e750a1f2574 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON /// KT-1187 Wrong unnecessary completion fun anyfun() { diff --git a/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt b/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt index 1e9a3d898b3..7536ad7dffd 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON /// KT-1187 Wrong unnecessary completion fun anyfun() { diff --git a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt index 092782e5488..1d8ae65bd01 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val a = 1.0F // NUMBER: 0 \ No newline at end of file diff --git a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt index be7e44ce8ce..c34a62bdd04 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val a = 1.0f // NUMBER: 0 diff --git a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt index 4c8afd79429..bbd1aae570e 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { val a = 10 } diff --git a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt index 8d10049b23d..f7b150eb03d 100644 --- a/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt +++ b/idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val a = 1L // NUMBER: 0 diff --git a/idea/idea-completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt b/idea/idea-completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt index e40b31a1231..3d77ffae6e9 100644 --- a/idea/idea-completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt +++ b/idea/idea-completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON operator fun () { } diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt index 193acda1e8b..24ee81a28b6 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // we disabled parameter name/type completion because not all types are acceptable and it's not very useful in such context anyway class FooBar diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt index 875ec4421b0..9a9df4c206f 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package pack class Boo diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt index 1b2cf462dc7..162bbb75e63 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun f() { try { diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt index 2c1ea938720..ee90b8416f5 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package pack class Boo diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt index a64457b0089..835f51c5a25 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class AAA fun foo(p: (Int, String) -> Unit) { } diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt index 67fadf7b58e..83a88204fe3 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class BBB fun foo(p: (Int, String) -> Unit) { } diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt index 210bede7a66..273c057e5a7 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Voo var v: Int diff --git a/idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt b/idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt index 3c09c535aaf..4acd74cecf8 100644 --- a/idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt +++ b/idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package ppp class X { diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt index d9baf7bc1aa..f2e2e65e061 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun Int.intExtFun() {} val Int.intExtVal: Int get() = 0 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt index 1562f024dbb..fb2c21ba797 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt index 51d41c594e2..8c663548863 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class B { fun bb() {} val bbb = 20 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt index 93fb705107f..a7724f88620 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON open class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt index b337c4e664d..577033ff702 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt index 3a8aed20a07..377e5d18b84 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt index 274b840cf09..7d8efdf860d 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun usage() { val a = } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt index 2fa5b91dcb4..ef1ef9357f8 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt index 1c732122102..120798d06cb 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt index 275b0070733..c44c26cbb9d 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun aaa() {} val aa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt index 8400243a857..d87fc48d154 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test(a: Int, b: Int) { } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt index a831f19062e..5fca6583183 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { fun aa() {} val aaa = 10 diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt index 39f1f190339..27911d2f60d 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun run(action: () -> Unit) = action() fun test() { diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt index d0defd9c382..64c294bd81d 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { 3 } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt index 129e6b6accd..a982fc9b2ab 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { 3. } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt index 0a5f965f5e9..934d9c56f5f 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun usage() { val a = "10".toIntOrNull() diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt index 4b53e742f59..f898b0cc261 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface A { fun a() } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt index 5f76fc8297e..f6d3d2281d3 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun usage() { "". } diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt index dffdf90b0a6..306b52cfc94 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class DefaultConstructor class TwoConstructors(s: String) { diff --git a/idea/idea-completion/testData/basic/common/primitiveCompletion/twoReceivers.kt b/idea/idea-completion/testData/basic/common/primitiveCompletion/twoReceivers.kt index cb78345ffcc..c65f9dfaafb 100644 --- a/idea/idea-completion/testData/basic/common/primitiveCompletion/twoReceivers.kt +++ b/idea/idea-completion/testData/basic/common/primitiveCompletion/twoReceivers.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A class OuterClass { diff --git a/idea/idea-completion/testData/basic/common/shadowing/InInitializer2.kt b/idea/idea-completion/testData/basic/common/shadowing/InInitializer2.kt index 552c7d1563f..2489da7852f 100644 --- a/idea/idea-completion/testData/basic/common/shadowing/InInitializer2.kt +++ b/idea/idea-completion/testData/basic/common/shadowing/InInitializer2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { var xxx: Int = } diff --git a/idea/idea-completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt b/idea/idea-completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt index da744675c32..bb1b1b5addb 100644 --- a/idea/idea-completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt +++ b/idea/idea-completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface A { fun memberA() } diff --git a/idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIf.kt b/idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIf.kt index 849a7046bb0..2dd57b43fc1 100644 --- a/idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIf.kt +++ b/idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIf.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface Expr class Num(val value : Int) : Expr diff --git a/idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt b/idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt index cc3e7b5f902..2bd56051c5e 100644 --- a/idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt +++ b/idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface Expr { public fun testThis() { if (this is Num) { diff --git a/idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt b/idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt index 1397fefb4b8..18f48bc05ec 100644 --- a/idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt +++ b/idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON interface Expr class Sum(val left : Expr, val right : Expr) : Expr diff --git a/idea/idea-completion/testData/basic/common/smartCast/functionWithContract.kt b/idea/idea-completion/testData/basic/common/smartCast/functionWithContract.kt index 861896b47c3..3972fdda5f5 100644 --- a/idea/idea-completion/testData/basic/common/smartCast/functionWithContract.kt +++ b/idea/idea-completion/testData/basic/common/smartCast/functionWithContract.kt @@ -1,4 +1,5 @@ -// COMPILER_ARGUMENTS: -XXLanguage:+ReadDeserializedContracts -XXLanguage:+UseReturnsEffect +// FIR_COMPARISON +`// COMPILER_ARGUMENTS: -XXLanguage:+ReadDeserializedContracts -XXLanguage:+UseReturnsEffect interface Foo { val x: Int diff --git a/idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt b/idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt index cc3a52b9f62..044fea93ab0 100644 --- a/idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt +++ b/idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON import kotlin.internal.Exact interface Column diff --git a/idea/idea-completion/testData/basic/common/topLevelClassName2.kt b/idea/idea-completion/testData/basic/common/topLevelClassName2.kt index 65d8be12730..2bb4b12f6a7 100644 --- a/idea/idea-completion/testData/basic/common/topLevelClassName2.kt +++ b/idea/idea-completion/testData/basic/common/topLevelClassName2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class // NUMBER: 0 \ No newline at end of file diff --git a/idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt b/idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt index 066dc11cc0d..78667facf6c 100644 --- a/idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt +++ b/idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON import java.util.HashMap fun foo() { diff --git a/idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt b/idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt index 35f95856c41..1090c80b17a 100644 --- a/idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt +++ b/idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Some() { public val testPublic : Int = 12 protected val testProtected : Int = 12 diff --git a/idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt b/idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt index 5f7ea4af444..3e1e6ccad98 100644 --- a/idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt +++ b/idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Some() { public val testPublic = 12 protected val testProtected = 12 diff --git a/idea/idea-completion/testData/basic/java/Number.kt b/idea/idea-completion/testData/basic/java/Number.kt index 51f450e4bc6..c092b170271 100644 --- a/idea/idea-completion/testData/basic/java/Number.kt +++ b/idea/idea-completion/testData/basic/java/Number.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test(x: java.lang.Integer) { x. } diff --git a/idea/idea-completion/testData/basic/java/syntheticExtensions/DoNotHideGetterWhenExtensionCannotBeUsed.kt b/idea/idea-completion/testData/basic/java/syntheticExtensions/DoNotHideGetterWhenExtensionCannotBeUsed.kt index d8274d9f860..dd5d7ad5613 100644 --- a/idea/idea-completion/testData/basic/java/syntheticExtensions/DoNotHideGetterWhenExtensionCannotBeUsed.kt +++ b/idea/idea-completion/testData/basic/java/syntheticExtensions/DoNotHideGetterWhenExtensionCannotBeUsed.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON import java.io.File fun File.foo(absolutePath: String?) { diff --git a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt index 30baccaf1a2..a2ea1532d70 100644 --- a/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt +++ b/idea/idea-completion/tests/org/jetbrains/kotlin/idea/completion/test/KotlinFixtureCompletionBaseTestCase.kt @@ -36,21 +36,26 @@ abstract class KotlinFixtureCompletionBaseTestCase : KotlinLightCodeInsightFixtu if (ExpectedCompletionUtils.shouldRunHighlightingBeforeCompletion(fileText)) { myFixture.doHighlighting() } - - testCompletion( - fileText, - getPlatform(), - { completionType, count -> complete(completionType, count) }, - defaultCompletionType(), - defaultInvocationCount(), - additionalValidDirectives = CompilerTestDirectives.ALL_COMPILER_TEST_DIRECTIVES - ) + executeTest { + testCompletion( + fileText, + getPlatform(), + { completionType, count -> complete(completionType, count) }, + defaultCompletionType(), + defaultInvocationCount(), + additionalValidDirectives = CompilerTestDirectives.ALL_COMPILER_TEST_DIRECTIVES + "FIR_COMPARISON" + ) + } } } finally { tearDownFixture() } } + protected open fun executeTest(test: () -> Unit) { + test() + } + protected open fun setUpFixture(testPath: String) { //TODO: this is a hacky workaround for js second completion tests failing with PsiInvalidElementAccessException LibraryModificationTracker.getInstance(project).incModificationCount() diff --git a/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractHighLevelJvmBasicCompletionTest.kt b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractHighLevelJvmBasicCompletionTest.kt new file mode 100644 index 00000000000..3930cb796e7 --- /dev/null +++ b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractHighLevelJvmBasicCompletionTest.kt @@ -0,0 +1,26 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.completion + +import org.jetbrains.kotlin.idea.completion.test.AbstractJvmBasicCompletionTest +import org.jetbrains.kotlin.test.InTextDirectivesUtils + +abstract class AbstractHighLevelJvmBasicCompletionTest : AbstractJvmBasicCompletionTest() { + override val captureExceptions: Boolean = false + + override fun executeTest(test: () -> Unit) { + val doComparison = InTextDirectivesUtils.isDirectiveDefined(myFixture.file.text, "FIR_COMPARISON") + try { + test() + } catch (e: Throwable) { + if (doComparison) throw e + return + } + if (!doComparison) { + throw AssertionError("Looks like test is passing, please add // FIR_COMPARISON at the beginning of the file") + } + } +} \ No newline at end of file diff --git a/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/HighLevelJvmBasicCompletionTestGenerated.java b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/HighLevelJvmBasicCompletionTestGenerated.java new file mode 100644 index 00000000000..a6b80bea8c0 --- /dev/null +++ b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/HighLevelJvmBasicCompletionTestGenerated.java @@ -0,0 +1,3117 @@ +/* + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.idea.completion; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +import org.jetbrains.kotlin.test.TestMetadata; +import org.junit.runner.RunWith; + +import java.io.File; +import java.util.regex.Pattern; + +/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ +@SuppressWarnings("all") +@RunWith(JUnit3RunnerWithInners.class) +public class HighLevelJvmBasicCompletionTestGenerated extends AbstractHighLevelJvmBasicCompletionTest { + @TestMetadata("idea/idea-completion/testData/basic/common") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Common extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterFloatOnNewLine.kt") + public void testAfterFloatOnNewLine() throws Exception { + runTest("idea/idea-completion/testData/basic/common/AfterFloatOnNewLine.kt"); + } + + @TestMetadata("AfterIntSeparatedWithComments.kt") + public void testAfterIntSeparatedWithComments() throws Exception { + runTest("idea/idea-completion/testData/basic/common/AfterIntSeparatedWithComments.kt"); + } + + public void testAllFilesPresentInCommon() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("BasicAny.kt") + public void testBasicAny() throws Exception { + runTest("idea/idea-completion/testData/basic/common/BasicAny.kt"); + } + + @TestMetadata("BasicInt.kt") + public void testBasicInt() throws Exception { + runTest("idea/idea-completion/testData/basic/common/BasicInt.kt"); + } + + @TestMetadata("BeforeDotInCall.kt") + public void testBeforeDotInCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/BeforeDotInCall.kt"); + } + + @TestMetadata("CallLocalLambda.kt") + public void testCallLocalLambda() throws Exception { + runTest("idea/idea-completion/testData/basic/common/CallLocalLambda.kt"); + } + + @TestMetadata("classObjectElementsInClass.kt") + public void testClassObjectElementsInClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/classObjectElementsInClass.kt"); + } + + @TestMetadata("ClassRedeclaration1.kt") + public void testClassRedeclaration1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ClassRedeclaration1.kt"); + } + + @TestMetadata("ClassRedeclaration2.kt") + public void testClassRedeclaration2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ClassRedeclaration2.kt"); + } + + @TestMetadata("CompletionInSetter.kt") + public void testCompletionInSetter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/CompletionInSetter.kt"); + } + + @TestMetadata("ComponentFunction.kt") + public void testComponentFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ComponentFunction.kt"); + } + + @TestMetadata("CoroutineContext.kt") + public void testCoroutineContext() throws Exception { + runTest("idea/idea-completion/testData/basic/common/CoroutineContext.kt"); + } + + @TestMetadata("CoroutineContextReleaseCoroutines.kt") + public void testCoroutineContextReleaseCoroutines() throws Exception { + runTest("idea/idea-completion/testData/basic/common/CoroutineContextReleaseCoroutines.kt"); + } + + @TestMetadata("DataClassMembers.kt") + public void testDataClassMembers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/DataClassMembers.kt"); + } + + @TestMetadata("DataClassMembers2.kt") + public void testDataClassMembers2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/DataClassMembers2.kt"); + } + + @TestMetadata("EnumItemsThroughChainedTypeAlias.kt") + public void testEnumItemsThroughChainedTypeAlias() throws Exception { + runTest("idea/idea-completion/testData/basic/common/EnumItemsThroughChainedTypeAlias.kt"); + } + + @TestMetadata("EnumItemsThroughSingleTypeAlias.kt") + public void testEnumItemsThroughSingleTypeAlias() throws Exception { + runTest("idea/idea-completion/testData/basic/common/EnumItemsThroughSingleTypeAlias.kt"); + } + + @TestMetadata("ExtendClassName.kt") + public void testExtendClassName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtendClassName.kt"); + } + + @TestMetadata("ExtendQualifiedClassName.kt") + public void testExtendQualifiedClassName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtendQualifiedClassName.kt"); + } + + @TestMetadata("ExtensionForProperty.kt") + public void testExtensionForProperty() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionForProperty.kt"); + } + + @TestMetadata("ExtensionFunReceiver.kt") + public void testExtensionFunReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionFunReceiver.kt"); + } + + @TestMetadata("ExtensionFunReceiverForce.kt") + public void testExtensionFunReceiverForce() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionFunReceiverForce.kt"); + } + + @TestMetadata("ExtensionFunctionInClassObject.kt") + public void testExtensionFunctionInClassObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionFunctionInClassObject.kt"); + } + + @TestMetadata("ExtensionInsideFunction.kt") + public void testExtensionInsideFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionInsideFunction.kt"); + } + + @TestMetadata("ExtensionOnTypeAliasFromOtherTypeAlias.kt") + public void testExtensionOnTypeAliasFromOtherTypeAlias() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionOnTypeAliasFromOtherTypeAlias.kt"); + } + + @TestMetadata("ExtensionToIntInFloatStyle.kt") + public void testExtensionToIntInFloatStyle() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionToIntInFloatStyle.kt"); + } + + @TestMetadata("ExtensionWithAdditionalTypeParameters.kt") + public void testExtensionWithAdditionalTypeParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionWithAdditionalTypeParameters.kt"); + } + + @TestMetadata("ExtensionWithGenericParamInReceiver.kt") + public void testExtensionWithGenericParamInReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionWithGenericParamInReceiver.kt"); + } + + @TestMetadata("ExtensionWithGenericReceiver.kt") + public void testExtensionWithGenericReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionWithGenericReceiver.kt"); + } + + @TestMetadata("ExtensionWithInternalGenericParameters.kt") + public void testExtensionWithInternalGenericParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionWithInternalGenericParameters.kt"); + } + + @TestMetadata("ExtensionWithManyTypeParamsInReceiver.kt") + public void testExtensionWithManyTypeParamsInReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ExtensionWithManyTypeParamsInReceiver.kt"); + } + + @TestMetadata("FromImports.kt") + public void testFromImports() throws Exception { + runTest("idea/idea-completion/testData/basic/common/FromImports.kt"); + } + + @TestMetadata("FunctionCompletionFormatting.kt") + public void testFunctionCompletionFormatting() throws Exception { + runTest("idea/idea-completion/testData/basic/common/FunctionCompletionFormatting.kt"); + } + + @TestMetadata("FunctionVariableCallArgument.kt") + public void testFunctionVariableCallArgument() throws Exception { + runTest("idea/idea-completion/testData/basic/common/FunctionVariableCallArgument.kt"); + } + + @TestMetadata("GenericExtensionFunReceiver1.kt") + public void testGenericExtensionFunReceiver1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/GenericExtensionFunReceiver1.kt"); + } + + @TestMetadata("GenericExtensionFunReceiver2.kt") + public void testGenericExtensionFunReceiver2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/GenericExtensionFunReceiver2.kt"); + } + + @TestMetadata("GenericKotlinClass.kt") + public void testGenericKotlinClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/GenericKotlinClass.kt"); + } + + @TestMetadata("GetPrefixForProperties.kt") + public void testGetPrefixForProperties() throws Exception { + runTest("idea/idea-completion/testData/basic/common/GetPrefixForProperties.kt"); + } + + @TestMetadata("ImportedEnumMembers.kt") + public void testImportedEnumMembers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ImportedEnumMembers.kt"); + } + + @TestMetadata("ImportedMemberFromObject.kt") + public void testImportedMemberFromObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ImportedMemberFromObject.kt"); + } + + @TestMetadata("InCallExpression.kt") + public void testInCallExpression() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InCallExpression.kt"); + } + + @TestMetadata("InClassInitializer.kt") + public void testInClassInitializer() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InClassInitializer.kt"); + } + + @TestMetadata("InClassObject.kt") + public void testInClassObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InClassObject.kt"); + } + + @TestMetadata("InClassPropertyAccessor.kt") + public void testInClassPropertyAccessor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InClassPropertyAccessor.kt"); + } + + @TestMetadata("InEmptyImport.kt") + public void testInEmptyImport() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InEmptyImport.kt"); + } + + @TestMetadata("InEmptyPackage.kt") + public void testInEmptyPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InEmptyPackage.kt"); + } + + @TestMetadata("InExpressionNoPrefix.kt") + public void testInExpressionNoPrefix() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InExpressionNoPrefix.kt"); + } + + @TestMetadata("InExtendTypeAnnotation.kt") + public void testInExtendTypeAnnotation() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InExtendTypeAnnotation.kt"); + } + + @TestMetadata("InFileWithMultiDeclaration.kt") + public void testInFileWithMultiDeclaration() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InFileWithMultiDeclaration.kt"); + } + + @TestMetadata("InFileWithTypedef.kt") + public void testInFileWithTypedef() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InFileWithTypedef.kt"); + } + + @TestMetadata("InFunInClassInitializer.kt") + public void testInFunInClassInitializer() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InFunInClassInitializer.kt"); + } + + @TestMetadata("InFunctionArguments.kt") + public void testInFunctionArguments() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InFunctionArguments.kt"); + } + + @TestMetadata("InGlobalPropertyInitializer.kt") + public void testInGlobalPropertyInitializer() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InGlobalPropertyInitializer.kt"); + } + + @TestMetadata("InImport.kt") + public void testInImport() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InImport.kt"); + } + + @TestMetadata("InInitializerInPropertyAccessor.kt") + public void testInInitializerInPropertyAccessor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InInitializerInPropertyAccessor.kt"); + } + + @TestMetadata("InInnerClass.kt") + public void testInInnerClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InInnerClass.kt"); + } + + @TestMetadata("InLambda.kt") + public void testInLambda() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InLambda.kt"); + } + + @TestMetadata("InLocalObjectDeclaration.kt") + public void testInLocalObjectDeclaration() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InLocalObjectDeclaration.kt"); + } + + @TestMetadata("InLongDotQualifiedExpression.kt") + public void testInLongDotQualifiedExpression() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InLongDotQualifiedExpression.kt"); + } + + @TestMetadata("InMiddleOfPackage.kt") + public void testInMiddleOfPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InMiddleOfPackage.kt"); + } + + @TestMetadata("InMiddleOfPackageDirective.kt") + public void testInMiddleOfPackageDirective() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InMiddleOfPackageDirective.kt"); + } + + @TestMetadata("InNestedClass.kt") + public void testInNestedClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InNestedClass.kt"); + } + + @TestMetadata("InObjectInDelegationSpecifier.kt") + public void testInObjectInDelegationSpecifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InObjectInDelegationSpecifier.kt"); + } + + @TestMetadata("InPackage.kt") + public void testInPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InPackage.kt"); + } + + @TestMetadata("InParametersTypes.kt") + public void testInParametersTypes() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InParametersTypes.kt"); + } + + @TestMetadata("InParametersTypesForce.kt") + public void testInParametersTypesForce() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InParametersTypesForce.kt"); + } + + @TestMetadata("InPropertyAccessor.kt") + public void testInPropertyAccessor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InPropertyAccessor.kt"); + } + + @TestMetadata("InPropertyInitializer.kt") + public void testInPropertyInitializer() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InPropertyInitializer.kt"); + } + + @TestMetadata("InSecondaryConstructorBody.kt") + public void testInSecondaryConstructorBody() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InSecondaryConstructorBody.kt"); + } + + @TestMetadata("InSecondaryConstructorDefaultParameter.kt") + public void testInSecondaryConstructorDefaultParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InSecondaryConstructorDefaultParameter.kt"); + } + + @TestMetadata("InSecondaryConstructorDelegationCall.kt") + public void testInSecondaryConstructorDelegationCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InSecondaryConstructorDelegationCall.kt"); + } + + @TestMetadata("InSecondaryConstructorFirstDefaultParameter.kt") + public void testInSecondaryConstructorFirstDefaultParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InSecondaryConstructorFirstDefaultParameter.kt"); + } + + @TestMetadata("InTypeAnnotation.kt") + public void testInTypeAnnotation() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InTypeAnnotation.kt"); + } + + @TestMetadata("InfixCall.kt") + public void testInfixCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InfixCall.kt"); + } + + @TestMetadata("InfixCallNoSpecialLambdaArgumentItem.kt") + public void testInfixCallNoSpecialLambdaArgumentItem() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InfixCallNoSpecialLambdaArgumentItem.kt"); + } + + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InnerClass.kt"); + } + + @TestMetadata("InnerInBaseClass.kt") + public void testInnerInBaseClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InnerInBaseClass.kt"); + } + + @TestMetadata("InsideAnonymousClass.kt") + public void testInsideAnonymousClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InsideAnonymousClass.kt"); + } + + @TestMetadata("InterfaceNameBeforeRunBug.kt") + public void testInterfaceNameBeforeRunBug() throws Exception { + runTest("idea/idea-completion/testData/basic/common/InterfaceNameBeforeRunBug.kt"); + } + + @TestMetadata("KT10664.kt") + public void testKT10664() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT10664.kt"); + } + + @TestMetadata("KT12033.kt") + public void testKT12033() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT12033.kt"); + } + + @TestMetadata("KT13780.kt") + public void testKT13780() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT13780.kt"); + } + + @TestMetadata("KT13780_1.kt") + public void testKT13780_1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT13780_1.kt"); + } + + @TestMetadata("KT31762.kt") + public void testKT31762() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT31762.kt"); + } + + @TestMetadata("KT33903_1.kt") + public void testKT33903_1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT33903_1.kt"); + } + + @TestMetadata("KT33903_2.kt") + public void testKT33903_2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/KT33903_2.kt"); + } + + @TestMetadata("LocalMultideclarationValues.kt") + public void testLocalMultideclarationValues() throws Exception { + runTest("idea/idea-completion/testData/basic/common/LocalMultideclarationValues.kt"); + } + + @TestMetadata("NameWithDollars.kt") + public void testNameWithDollars() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NameWithDollars.kt"); + } + + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NamedObject.kt"); + } + + @TestMetadata("NestedBuiltInClass.kt") + public void testNestedBuiltInClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedBuiltInClass.kt"); + } + + @TestMetadata("NestedClassBug.kt") + public void testNestedClassBug() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassBug.kt"); + } + + @TestMetadata("NestedClassNameForExtension.kt") + public void testNestedClassNameForExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassNameForExtension.kt"); + } + + @TestMetadata("NestedClassNameForExtension2.kt") + public void testNestedClassNameForExtension2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassNameForExtension2.kt"); + } + + @TestMetadata("NestedClassesOnClassWithDefaultObject.kt") + public void testNestedClassesOnClassWithDefaultObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassesOnClassWithDefaultObject.kt"); + } + + @TestMetadata("NestedClassesOnClassWithNamedDefaultObject.kt") + public void testNestedClassesOnClassWithNamedDefaultObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassesOnClassWithNamedDefaultObject.kt"); + } + + @TestMetadata("NestedClassesOnDefaultObjectLiteral.kt") + public void testNestedClassesOnDefaultObjectLiteral() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NestedClassesOnDefaultObjectLiteral.kt"); + } + + @TestMetadata("NoAutoInsertionOfNotImported.kt") + public void testNoAutoInsertionOfNotImported() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoAutoInsertionOfNotImported.kt"); + } + + @TestMetadata("NoClassNameDuplication.kt") + public void testNoClassNameDuplication() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoClassNameDuplication.kt"); + } + + @TestMetadata("NoCompletionForCoroutinesIntinsics.kt") + public void testNoCompletionForCoroutinesIntinsics() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesIntinsics.kt"); + } + + @TestMetadata("NoCompletionForCoroutinesJvmInternal.kt") + public void testNoCompletionForCoroutinesJvmInternal() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoCompletionForCoroutinesJvmInternal.kt"); + } + + @TestMetadata("NoCompletionForExcluded.kt") + public void testNoCompletionForExcluded() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoCompletionForExcluded.kt"); + } + + @TestMetadata("NoEmptyPackage.kt") + public void testNoEmptyPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoEmptyPackage.kt"); + } + + @TestMetadata("NoEnumEntryType.kt") + public void testNoEnumEntryType() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoEnumEntryType.kt"); + } + + @TestMetadata("NoEnumMembersFromImplicitQualifier.kt") + public void testNoEnumMembersFromImplicitQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoEnumMembersFromImplicitQualifier.kt"); + } + + @TestMetadata("NoExtensionsAfterQualifier.kt") + public void testNoExtensionsAfterQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoExtensionsAfterQualifier.kt"); + } + + @TestMetadata("NoLocalsDeclaredAhead.kt") + public void testNoLocalsDeclaredAhead() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoLocalsDeclaredAhead.kt"); + } + + @TestMetadata("NoNestedClassAfterReceiver.kt") + public void testNoNestedClassAfterReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoNestedClassAfterReceiver.kt"); + } + + @TestMetadata("NoNestedClassesFromImplicitQualifier.kt") + public void testNoNestedClassesFromImplicitQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoNestedClassesFromImplicitQualifier.kt"); + } + + @TestMetadata("NoPackageFacadeClasses.kt") + public void testNoPackageFacadeClasses() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoPackageFacadeClasses.kt"); + } + + @TestMetadata("NoParameterAnnotationInPresentation.kt") + public void testNoParameterAnnotationInPresentation() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoParameterAnnotationInPresentation.kt"); + } + + @TestMetadata("NoTopLevelCompletionInQualifiedUserTypes.kt") + public void testNoTopLevelCompletionInQualifiedUserTypes() throws Exception { + runTest("idea/idea-completion/testData/basic/common/NoTopLevelCompletionInQualifiedUserTypes.kt"); + } + + @TestMetadata("ObjectInTypePosition.kt") + public void testObjectInTypePosition() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ObjectInTypePosition.kt"); + } + + @TestMetadata("ObjectMembersFromNested.kt") + public void testObjectMembersFromNested() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ObjectMembersFromNested.kt"); + } + + @TestMetadata("ObjectRedeclaration1.kt") + public void testObjectRedeclaration1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ObjectRedeclaration1.kt"); + } + + @TestMetadata("ObjectRedeclaration2.kt") + public void testObjectRedeclaration2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ObjectRedeclaration2.kt"); + } + + @TestMetadata("OverloadFunctions.kt") + public void testOverloadFunctions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/OverloadFunctions.kt"); + } + + @TestMetadata("PreferLessParameters.kt") + public void testPreferLessParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/PreferLessParameters.kt"); + } + + @TestMetadata("PrivatesInSecondPressCompletion.kt") + public void testPrivatesInSecondPressCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/PrivatesInSecondPressCompletion.kt"); + } + + @TestMetadata("ProtectedExtensionMethod.kt") + public void testProtectedExtensionMethod() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ProtectedExtensionMethod.kt"); + } + + @TestMetadata("QualifiedSuperMembers.kt") + public void testQualifiedSuperMembers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/QualifiedSuperMembers.kt"); + } + + @TestMetadata("RecieverMembersFromExtAccessor.kt") + public void testRecieverMembersFromExtAccessor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/RecieverMembersFromExtAccessor.kt"); + } + + @TestMetadata("RecieverMembersFromExtFun.kt") + public void testRecieverMembersFromExtFun() throws Exception { + runTest("idea/idea-completion/testData/basic/common/RecieverMembersFromExtFun.kt"); + } + + @TestMetadata("SetPrefixForProperties.kt") + public void testSetPrefixForProperties() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SetPrefixForProperties.kt"); + } + + @TestMetadata("ShortClassNamesInTypePosition.kt") + public void testShortClassNamesInTypePosition() throws Exception { + runTest("idea/idea-completion/testData/basic/common/ShortClassNamesInTypePosition.kt"); + } + + @TestMetadata("StandardJetArrayFirst.kt") + public void testStandardJetArrayFirst() throws Exception { + runTest("idea/idea-completion/testData/basic/common/StandardJetArrayFirst.kt"); + } + + @TestMetadata("StandardJetDoubleFirst.kt") + public void testStandardJetDoubleFirst() throws Exception { + runTest("idea/idea-completion/testData/basic/common/StandardJetDoubleFirst.kt"); + } + + @TestMetadata("SubpackageInFun.kt") + public void testSubpackageInFun() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SubpackageInFun.kt"); + } + + @TestMetadata("SuperMembers.kt") + public void testSuperMembers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SuperMembers.kt"); + } + + @TestMetadata("SuperMembers2.kt") + public void testSuperMembers2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SuperMembers2.kt"); + } + + @TestMetadata("SuperMembers3.kt") + public void testSuperMembers3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SuperMembers3.kt"); + } + + @TestMetadata("SuperMembers4.kt") + public void testSuperMembers4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/SuperMembers4.kt"); + } + + @TestMetadata("TopLevelClassCompletionInQualifiedCall.kt") + public void testTopLevelClassCompletionInQualifiedCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassCompletionInQualifiedCall.kt"); + } + + @TestMetadata("TopLevelClassName1.kt") + public void testTopLevelClassName1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassName1.kt"); + } + + @TestMetadata("topLevelClassName2.kt") + public void testTopLevelClassName2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/topLevelClassName2.kt"); + } + + @TestMetadata("TopLevelClassName4.kt") + public void testTopLevelClassName4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassName4.kt"); + } + + @TestMetadata("TopLevelClassName5.kt") + public void testTopLevelClassName5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassName5.kt"); + } + + @TestMetadata("TopLevelClassName6.kt") + public void testTopLevelClassName6() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassName6.kt"); + } + + @TestMetadata("TopLevelClassName-3.kt") + public void testTopLevelClassName_3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TopLevelClassName-3.kt"); + } + + @TestMetadata("TypeArgCompletionBug.kt") + public void testTypeArgCompletionBug() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TypeArgCompletionBug.kt"); + } + + @TestMetadata("TypeArgFromTheSameFile.kt") + public void testTypeArgFromTheSameFile() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TypeArgFromTheSameFile.kt"); + } + + @TestMetadata("TypeArgOfOwnerClass.kt") + public void testTypeArgOfOwnerClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TypeArgOfOwnerClass.kt"); + } + + @TestMetadata("TypeParameterFromOuterClass.kt") + public void testTypeParameterFromOuterClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/TypeParameterFromOuterClass.kt"); + } + + @TestMetadata("VariableClassName.kt") + public void testVariableClassName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/VariableClassName.kt"); + } + + @TestMetadata("idea/idea-completion/testData/basic/common/annotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Annotations extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterPackageName.kt") + public void testAfterPackageName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/AfterPackageName.kt"); + } + + public void testAllFilesPresentInAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/annotations"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("Annotated.kt") + public void testAnnotated() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/Annotated.kt"); + } + + @TestMetadata("AnnotationTarget.kt") + public void testAnnotationTarget() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/AnnotationTarget.kt"); + } + + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/Deprecated.kt"); + } + + @TestMetadata("Deprecated2.kt") + public void testDeprecated2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/Deprecated2.kt"); + } + + @TestMetadata("ForType.kt") + public void testForType() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ForType.kt"); + } + + @TestMetadata("FunctionAnnotation1.kt") + public void testFunctionAnnotation1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/FunctionAnnotation1.kt"); + } + + @TestMetadata("FunctionAnnotation2.kt") + public void testFunctionAnnotation2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/FunctionAnnotation2.kt"); + } + + @TestMetadata("NoCatchParameterAutopopup.kt") + public void testNoCatchParameterAutopopup() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/NoCatchParameterAutopopup.kt"); + } + + @TestMetadata("NoSetterParameterAutopopup.kt") + public void testNoSetterParameterAutopopup() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/NoSetterParameterAutopopup.kt"); + } + + @TestMetadata("OnlyAnnotations.kt") + public void testOnlyAnnotations() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/OnlyAnnotations.kt"); + } + + @TestMetadata("ParameterAnnotation1.kt") + public void testParameterAnnotation1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation1.kt"); + } + + @TestMetadata("ParameterAnnotation2.kt") + public void testParameterAnnotation2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation2.kt"); + } + + @TestMetadata("ParameterAnnotation3.kt") + public void testParameterAnnotation3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation3.kt"); + } + + @TestMetadata("ParameterAnnotation4.kt") + public void testParameterAnnotation4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation4.kt"); + } + + @TestMetadata("ParameterAnnotation5.kt") + public void testParameterAnnotation5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation5.kt"); + } + + @TestMetadata("ParameterAnnotation6.kt") + public void testParameterAnnotation6() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation6.kt"); + } + + @TestMetadata("ParameterAnnotation7.kt") + public void testParameterAnnotation7() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation7.kt"); + } + + @TestMetadata("ParameterAnnotation8.kt") + public void testParameterAnnotation8() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation8.kt"); + } + + @TestMetadata("ParameterAnnotation9.kt") + public void testParameterAnnotation9() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotation9.kt"); + } + + @TestMetadata("ParameterAnnotationArgs.kt") + public void testParameterAnnotationArgs() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotationArgs.kt"); + } + + @TestMetadata("ParameterAnnotationAutoPopup1.kt") + public void testParameterAnnotationAutoPopup1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotationAutoPopup1.kt"); + } + + @TestMetadata("ParameterAnnotationAutoPopup2.kt") + public void testParameterAnnotationAutoPopup2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/ParameterAnnotationAutoPopup2.kt"); + } + + @TestMetadata("TopLevelAnnotation1.kt") + public void testTopLevelAnnotation1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotation1.kt"); + } + + @TestMetadata("TopLevelAnnotation2.kt") + public void testTopLevelAnnotation2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotation2.kt"); + } + + @TestMetadata("TopLevelAnnotation3.kt") + public void testTopLevelAnnotation3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotation3.kt"); + } + + @TestMetadata("TopLevelAnnotation4.kt") + public void testTopLevelAnnotation4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotation4.kt"); + } + + @TestMetadata("TopLevelAnnotationArg1.kt") + public void testTopLevelAnnotationArg1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotationArg1.kt"); + } + + @TestMetadata("TopLevelAnnotationArg2.kt") + public void testTopLevelAnnotationArg2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TopLevelAnnotationArg2.kt"); + } + + @TestMetadata("TypeAliasToAnnotation.kt") + public void testTypeAliasToAnnotation() throws Exception { + runTest("idea/idea-completion/testData/basic/common/annotations/TypeAliasToAnnotation.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/autoPopup") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class AutoPopup extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInAutoPopup() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/autoPopup"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("AutopopupInFunExtensionReceiver.kt") + public void testAutopopupInFunExtensionReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/AutopopupInFunExtensionReceiver.kt"); + } + + @TestMetadata("GenericExtensionFunTypeArgument.kt") + public void testGenericExtensionFunTypeArgument() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/GenericExtensionFunTypeArgument.kt"); + } + + @TestMetadata("GenericExtensionFunTypeArgument2.kt") + public void testGenericExtensionFunTypeArgument2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/GenericExtensionFunTypeArgument2.kt"); + } + + @TestMetadata("InExtFunName.kt") + public void testInExtFunName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/InExtFunName.kt"); + } + + @TestMetadata("InGenericExtFunName.kt") + public void testInGenericExtFunName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/InGenericExtFunName.kt"); + } + + @TestMetadata("InValExtType.kt") + public void testInValExtType() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/InValExtType.kt"); + } + + @TestMetadata("NoAutoPopupAfterNumberLiteral.kt") + public void testNoAutoPopupAfterNumberLiteral() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupAfterNumberLiteral.kt"); + } + + @TestMetadata("NoAutoPopupInValName.kt") + public void testNoAutoPopupInValName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutoPopupInValName.kt"); + } + + @TestMetadata("NoAutopopupInFunName.kt") + public void testNoAutopopupInFunName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInFunName.kt"); + } + + @TestMetadata("NoAutopopupInGenericFunName.kt") + public void testNoAutopopupInGenericFunName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericFunName.kt"); + } + + @TestMetadata("NoAutopopupInGenericValName.kt") + public void testNoAutopopupInGenericValName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericValName.kt"); + } + + @TestMetadata("NoAutopopupInGenericVarName.kt") + public void testNoAutopopupInGenericVarName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInGenericVarName.kt"); + } + + @TestMetadata("NoAutopopupInVarName.kt") + public void testNoAutopopupInVarName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoAutopopupInVarName.kt"); + } + + @TestMetadata("NoSecondPressCompletionInAutoPopup.kt") + public void testNoSecondPressCompletionInAutoPopup() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/NoSecondPressCompletionInAutoPopup.kt"); + } + + @TestMetadata("OnlyScopedClassesWithoutExplicit.kt") + public void testOnlyScopedClassesWithoutExplicit() throws Exception { + runTest("idea/idea-completion/testData/basic/common/autoPopup/OnlyScopedClassesWithoutExplicit.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/boldOrGrayed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BoldOrGrayed extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterNullable.kt") + public void testAfterNullable() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/AfterNullable.kt"); + } + + @TestMetadata("AfterNullableAutoCast.kt") + public void testAfterNullableAutoCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/AfterNullableAutoCast.kt"); + } + + @TestMetadata("AfterNullableAutoCast2.kt") + public void testAfterNullableAutoCast2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/AfterNullableAutoCast2.kt"); + } + + public void testAllFilesPresentInBoldOrGrayed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/boldOrGrayed"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ImmediateExtensionMembers1.kt") + public void testImmediateExtensionMembers1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers1.kt"); + } + + @TestMetadata("ImmediateExtensionMembers2.kt") + public void testImmediateExtensionMembers2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers2.kt"); + } + + @TestMetadata("ImmediateExtensionMembers3.kt") + public void testImmediateExtensionMembers3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers3.kt"); + } + + @TestMetadata("ImmediateExtensionMembers4.kt") + public void testImmediateExtensionMembers4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembers4.kt"); + } + + @TestMetadata("ImmediateExtensionMembersGeneric.kt") + public void testImmediateExtensionMembersGeneric() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateExtensionMembersGeneric.kt"); + } + + @TestMetadata("ImmediateMembers1.kt") + public void testImmediateMembers1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers1.kt"); + } + + @TestMetadata("ImmediateMembers2.kt") + public void testImmediateMembers2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers2.kt"); + } + + @TestMetadata("ImmediateMembers3.kt") + public void testImmediateMembers3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers3.kt"); + } + + @TestMetadata("ImmediateMembers4.kt") + public void testImmediateMembers4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers4.kt"); + } + + @TestMetadata("ImmediateMembers5.kt") + public void testImmediateMembers5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/ImmediateMembers5.kt"); + } + + @TestMetadata("InExtensionForNullable.kt") + public void testInExtensionForNullable() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/InExtensionForNullable.kt"); + } + + @TestMetadata("KT9835.kt") + public void testKT9835() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/KT9835.kt"); + } + + @TestMetadata("NonPredictableSmartCast.kt") + public void testNonPredictableSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/NonPredictableSmartCast.kt"); + } + + @TestMetadata("NonPredictableSmartCastWithWrongReturnType.kt") + public void testNonPredictableSmartCastWithWrongReturnType() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/NonPredictableSmartCastWithWrongReturnType.kt"); + } + + @TestMetadata("SafeCallAfterNullable.kt") + public void testSafeCallAfterNullable() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/SafeCallAfterNullable.kt"); + } + + @TestMetadata("TwoReceivers.kt") + public void testTwoReceivers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/boldOrGrayed/TwoReceivers.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/callableReference") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class CallableReference extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInCallableReference() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("EmptyQualifier.kt") + public void testEmptyQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/EmptyQualifier.kt"); + } + + @TestMetadata("EmptyQualifierInExtensionFun.kt") + public void testEmptyQualifierInExtensionFun() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/EmptyQualifierInExtensionFun.kt"); + } + + @TestMetadata("ExpressionQualifier.kt") + public void testExpressionQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/ExpressionQualifier.kt"); + } + + @TestMetadata("GenericConstructor.kt") + public void testGenericConstructor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/GenericConstructor.kt"); + } + + @TestMetadata("HigherOrderFunction.kt") + public void testHigherOrderFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/HigherOrderFunction.kt"); + } + + @TestMetadata("NonEmptyQualifier.kt") + public void testNonEmptyQualifier() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/NonEmptyQualifier.kt"); + } + + @TestMetadata("SyntheticExtensions.kt") + public void testSyntheticExtensions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/SyntheticExtensions.kt"); + } + + @TestMetadata("SyntheticExtensions2.kt") + public void testSyntheticExtensions2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/callableReference/SyntheticExtensions2.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/dslMarker") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DslMarker extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("2dslsInsideOtherChild.kt") + public void test2dslsInsideOtherChild() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/2dslsInsideOtherChild.kt"); + } + + @TestMetadata("2receivers.kt") + public void test2receivers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/2receivers.kt"); + } + + public void testAllFilesPresentInDslMarker() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/dslMarker"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("child.kt") + public void testChild() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/child.kt"); + } + + @TestMetadata("compositeDsl.kt") + public void testCompositeDsl() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/compositeDsl.kt"); + } + + @TestMetadata("container.kt") + public void testContainer() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/container.kt"); + } + + @TestMetadata("noDslCompletionForNonDslReciever.kt") + public void testNoDslCompletionForNonDslReciever() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/noDslCompletionForNonDslReciever.kt"); + } + + @TestMetadata("root.kt") + public void testRoot() throws Exception { + runTest("idea/idea-completion/testData/basic/common/dslMarker/root.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionFunctionTypeValues extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInExtensionFunctionTypeValues() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ImplicitReceiver.kt") + public void testImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues/ImplicitReceiver.kt"); + } + + @TestMetadata("SafeCall.kt") + public void testSafeCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues/SafeCall.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues/Simple.kt"); + } + + @TestMetadata("SmartCast.kt") + public void testSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionFunctionTypeValues/SmartCast.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/extensionMethodInObject") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ExtensionMethodInObject extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInExtensionMethodInObject() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/extensionMethodInObject"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("CompanionObjectExplicitReceiver.kt") + public void testCompanionObjectExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiver.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverInfixExtension.kt") + public void testCompanionObjectExplicitReceiverInfixExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverInfixExtension.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverNoPrefix.kt") + public void testCompanionObjectExplicitReceiverNoPrefix() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverNoPrefix.kt"); + } + + @TestMetadata("CompanionObjectExplicitReceiverSafeAccess.kt") + public void testCompanionObjectExplicitReceiverSafeAccess() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectExplicitReceiverSafeAccess.kt"); + } + + @TestMetadata("CompanionObjectImplicitReceiver.kt") + public void testCompanionObjectImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CompanionObjectImplicitReceiver.kt"); + } + + @TestMetadata("CorrectTypeExplicitReceiver.kt") + public void testCorrectTypeExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CorrectTypeExplicitReceiver.kt"); + } + + @TestMetadata("CorrectTypeImplicitReceiver.kt") + public void testCorrectTypeImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/CorrectTypeImplicitReceiver.kt"); + } + + @TestMetadata("MultipleImplicitReceivers.kt") + public void testMultipleImplicitReceivers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/MultipleImplicitReceivers.kt"); + } + + @TestMetadata("ObjectExplicitReceiver.kt") + public void testObjectExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/ObjectExplicitReceiver.kt"); + } + + @TestMetadata("ObjectImplicitReceiver.kt") + public void testObjectImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/ObjectImplicitReceiver.kt"); + } + + @TestMetadata("OverridenExtensionsInObject.kt") + public void testOverridenExtensionsInObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensionMethodInObject/OverridenExtensionsInObject.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/extensions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Extensions extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInExtensions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/extensions"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ComplexCapture.kt") + public void testComplexCapture() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ComplexCapture.kt"); + } + + @TestMetadata("ComplexCapture2.kt") + public void testComplexCapture2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ComplexCapture2.kt"); + } + + @TestMetadata("ExtensionInExtendedClass.kt") + public void testExtensionInExtendedClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClass.kt"); + } + + @TestMetadata("ExtensionInExtendedClassThis.kt") + public void testExtensionInExtendedClassThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionInExtendedClassThis.kt"); + } + + @TestMetadata("ExtensionInExtension.kt") + public void testExtensionInExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionInExtension.kt"); + } + + @TestMetadata("ExtensionInExtensionThis.kt") + public void testExtensionInExtensionThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionInExtensionThis.kt"); + } + + @TestMetadata("ExtensionOnFQObject.kt") + public void testExtensionOnFQObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionOnFQObject.kt"); + } + + @TestMetadata("ExtensionOnNestedClassObject.kt") + public void testExtensionOnNestedClassObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/ExtensionOnNestedClassObject.kt"); + } + + @TestMetadata("Extensions.kt") + public void testExtensions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/Extensions.kt"); + } + + @TestMetadata("InvalidTypeParameters.kt") + public void testInvalidTypeParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/InvalidTypeParameters.kt"); + } + + @TestMetadata("IrrelevantExtension.kt") + public void testIrrelevantExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/IrrelevantExtension.kt"); + } + + @TestMetadata("JavaTypeExtension.kt") + public void testJavaTypeExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/JavaTypeExtension.kt"); + } + + @TestMetadata("KotlinGenericTypeExtension.kt") + public void testKotlinGenericTypeExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/KotlinGenericTypeExtension.kt"); + } + + @TestMetadata("KotlinTypeExtension.kt") + public void testKotlinTypeExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/KotlinTypeExtension.kt"); + } + + @TestMetadata("MemberExtensionFromWith.kt") + public void testMemberExtensionFromWith() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/MemberExtensionFromWith.kt"); + } + + @TestMetadata("MemberExtensionWithoutExplicitReceiver.kt") + public void testMemberExtensionWithoutExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/MemberExtensionWithoutExplicitReceiver.kt"); + } + + @TestMetadata("MemberExtensionsFromMemberExtension.kt") + public void testMemberExtensionsFromMemberExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/MemberExtensionsFromMemberExtension.kt"); + } + + @TestMetadata("NoDuplicatedMethodForSmartCast.kt") + public void testNoDuplicatedMethodForSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/NoDuplicatedMethodForSmartCast.kt"); + } + + @TestMetadata("NoExtensionFromOuter.kt") + public void testNoExtensionFromOuter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/NoExtensionFromOuter.kt"); + } + + @TestMetadata("NoMemberExtensionsFromCompanionObject.kt") + public void testNoMemberExtensionsFromCompanionObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/NoMemberExtensionsFromCompanionObject.kt"); + } + + @TestMetadata("StarTypeArg.kt") + public void testStarTypeArg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/StarTypeArg.kt"); + } + + @TestMetadata("WrongExplicitReceiver.kt") + public void testWrongExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/WrongExplicitReceiver.kt"); + } + + @TestMetadata("WrongImplicitReceiver.kt") + public void testWrongImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/extensions/WrongImplicitReceiver.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/fromSmart") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FromSmart extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterAs.kt") + public void testAfterAs() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/AfterAs.kt"); + } + + @TestMetadata("AfterAsNoDuplicates.kt") + public void testAfterAsNoDuplicates() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/AfterAsNoDuplicates.kt"); + } + + public void testAllFilesPresentInFromSmart() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/fromSmart"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ArrayLiteralAnnotationConstructorAsDefaultValueForArray.kt") + public void testArrayLiteralAnnotationConstructorAsDefaultValueForArray() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationConstructorAsDefaultValueForArray.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationConstructorAsDefaultValueForVararg.kt") + public void testArrayLiteralAnnotationConstructorAsDefaultValueForVararg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationConstructorAsDefaultValueForVararg.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationUseForArray.kt") + public void testArrayLiteralAnnotationUseForArray() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationUseForArray.kt"); + } + + @TestMetadata("ArrayLiteralAnnotationUseForVararg.kt") + public void testArrayLiteralAnnotationUseForVararg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/ArrayLiteralAnnotationUseForVararg.kt"); + } + + @TestMetadata("EnumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/EnumEntries.kt"); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethods2.kt") + public void testJavaStaticMethods2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/JavaStaticMethods2.kt"); + } + + @TestMetadata("MultipleArgs.kt") + public void testMultipleArgs() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/MultipleArgs.kt"); + } + + @TestMetadata("PropertyDelegate.kt") + public void testPropertyDelegate() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/PropertyDelegate.kt"); + } + + @TestMetadata("WhenByEnum.kt") + public void testWhenByEnum() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromSmart/WhenByEnum.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/fromUnresolvedNames") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FromUnresolvedNames extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInFromUnresolvedNames() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/fromUnresolvedNames"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("FunctionInCompanionObject.kt") + public void testFunctionInCompanionObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/FunctionInCompanionObject.kt"); + } + + @TestMetadata("LocalVal.kt") + public void testLocalVal() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/LocalVal.kt"); + } + + @TestMetadata("MemberFunction.kt") + public void testMemberFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/MemberFunction.kt"); + } + + @TestMetadata("MemberProperty.kt") + public void testMemberProperty() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/MemberProperty.kt"); + } + + @TestMetadata("NotForExtensionFunction.kt") + public void testNotForExtensionFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/NotForExtensionFunction.kt"); + } + + @TestMetadata("Parameter.kt") + public void testParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/Parameter.kt"); + } + + @TestMetadata("TopLevelClass.kt") + public void testTopLevelClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/TopLevelClass.kt"); + } + + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/TopLevelFunction.kt"); + } + + @TestMetadata("TopLevelInterface.kt") + public void testTopLevelInterface() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/TopLevelInterface.kt"); + } + + @TestMetadata("TopLevelObject.kt") + public void testTopLevelObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/fromUnresolvedNames/TopLevelObject.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/getOperator") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class GetOperator extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInGetOperator() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/getOperator"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("Extension.kt") + public void testExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/getOperator/Extension.kt"); + } + + @TestMetadata("NotForSafeCall.kt") + public void testNotForSafeCall() throws Exception { + runTest("idea/idea-completion/testData/basic/common/getOperator/NotForSafeCall.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("idea/idea-completion/testData/basic/common/getOperator/Simple.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/highOrderFunctions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class HighOrderFunctions extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInHighOrderFunctions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/highOrderFunctions"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ContextVariables1.kt") + public void testContextVariables1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariables1.kt"); + } + + @TestMetadata("ContextVariables2.kt") + public void testContextVariables2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariables2.kt"); + } + + @TestMetadata("ContextVariables3.kt") + public void testContextVariables3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariables3.kt"); + } + + @TestMetadata("ContextVariablesFilter.kt") + public void testContextVariablesFilter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariablesFilter.kt"); + } + + @TestMetadata("ContextVariablesMap.kt") + public void testContextVariablesMap() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariablesMap.kt"); + } + + @TestMetadata("ContextVariablesShadowing.kt") + public void testContextVariablesShadowing() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/ContextVariablesShadowing.kt"); + } + + @TestMetadata("HigherOrderFunction1.kt") + public void testHigherOrderFunction1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/HigherOrderFunction1.kt"); + } + + @TestMetadata("HigherOrderFunction2.kt") + public void testHigherOrderFunction2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/HigherOrderFunction2.kt"); + } + + @TestMetadata("OptionalParameters.kt") + public void testOptionalParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/OptionalParameters.kt"); + } + + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/highOrderFunctions/SuspendFunction.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/inStringLiterals") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class InStringLiterals extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInInStringLiterals() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/inStringLiterals"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("EA76497.kt") + public void testEA76497() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/EA76497.kt"); + } + + @TestMetadata("StringTemplate1.kt") + public void testStringTemplate1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate1.kt"); + } + + @TestMetadata("StringTemplate2.kt") + public void testStringTemplate2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplate2.kt"); + } + + @TestMetadata("StringTemplateDot.kt") + public void testStringTemplateDot() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplateDot.kt"); + } + + @TestMetadata("StringTemplateDot2.kt") + public void testStringTemplateDot2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplateDot2.kt"); + } + + @TestMetadata("StringTemplateDotSomething.kt") + public void testStringTemplateDotSomething() throws Exception { + runTest("idea/idea-completion/testData/basic/common/inStringLiterals/StringTemplateDotSomething.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/lambdaSignature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class LambdaSignature extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInLambdaSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/lambdaSignature"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ParameterName1.kt") + public void testParameterName1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName1.kt"); + } + + @TestMetadata("ParameterName2.kt") + public void testParameterName2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName2.kt"); + } + + @TestMetadata("ParameterName3.kt") + public void testParameterName3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName3.kt"); + } + + @TestMetadata("ParameterName4.kt") + public void testParameterName4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName4.kt"); + } + + @TestMetadata("ParameterName5.kt") + public void testParameterName5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterName5.kt"); + } + + @TestMetadata("ParameterType1.kt") + public void testParameterType1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterType1.kt"); + } + + @TestMetadata("ParameterType2.kt") + public void testParameterType2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterType2.kt"); + } + + @TestMetadata("ParameterType3.kt") + public void testParameterType3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterType3.kt"); + } + + @TestMetadata("ParameterType4.kt") + public void testParameterType4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterType4.kt"); + } + + @TestMetadata("ParameterType5.kt") + public void testParameterType5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/lambdaSignature/ParameterType5.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/namedArguments") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NamedArguments extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterBrace.kt") + public void testAfterBrace() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/AfterBrace.kt"); + } + + @TestMetadata("AfterComma.kt") + public void testAfterComma() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/AfterComma.kt"); + } + + @TestMetadata("AfterVararg.kt") + public void testAfterVararg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/AfterVararg.kt"); + } + + public void testAllFilesPresentInNamedArguments() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/namedArguments"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("BooleanArgumentExpected.kt") + public void testBooleanArgumentExpected() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/BooleanArgumentExpected.kt"); + } + + @TestMetadata("CompactTypeNames.kt") + public void testCompactTypeNames() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/CompactTypeNames.kt"); + } + + @TestMetadata("ForEmptyParametersFunction.kt") + public void testForEmptyParametersFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/ForEmptyParametersFunction.kt"); + } + + @TestMetadata("InParameterExpression.kt") + public void testInParameterExpression() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/InParameterExpression.kt"); + } + + @TestMetadata("NamedArgumentOnIncorrectPosition.kt") + public void testNamedArgumentOnIncorrectPosition() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NamedArgumentOnIncorrectPosition.kt"); + } + + @TestMetadata("NamedArgumentOnItsOwnPosition.kt") + public void testNamedArgumentOnItsOwnPosition() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NamedArgumentOnItsOwnPosition.kt"); + } + + @TestMetadata("NamedArgumentOnItsOwnPosition2.kt") + public void testNamedArgumentOnItsOwnPosition2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NamedArgumentOnItsOwnPosition2.kt"); + } + + @TestMetadata("NamedArgumentsFromOverloads.kt") + public void testNamedArgumentsFromOverloads() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NamedArgumentsFromOverloads.kt"); + } + + @TestMetadata("NamedArgumentsFromOverloads2.kt") + public void testNamedArgumentsFromOverloads2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NamedArgumentsFromOverloads2.kt"); + } + + @TestMetadata("NoAlreadyUsedParameters.kt") + public void testNoAlreadyUsedParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NoAlreadyUsedParameters.kt"); + } + + @TestMetadata("NoParamsFromUnapplicableOverload.kt") + public void testNoParamsFromUnapplicableOverload() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NoParamsFromUnapplicableOverload.kt"); + } + + @TestMetadata("NotAfterDot.kt") + public void testNotAfterDot() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NotAfterDot.kt"); + } + + @TestMetadata("NotInBrackets.kt") + public void testNotInBrackets() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NotInBrackets.kt"); + } + + @TestMetadata("NotInElse.kt") + public void testNotInElse() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NotInElse.kt"); + } + + @TestMetadata("NotOnlyNamedArguments.kt") + public void testNotOnlyNamedArguments() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NotOnlyNamedArguments.kt"); + } + + @TestMetadata("NotOnlyNamedArguments2.kt") + public void testNotOnlyNamedArguments2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/NotOnlyNamedArguments2.kt"); + } + + @TestMetadata("OfConstructor.kt") + public void testOfConstructor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/OfConstructor.kt"); + } + + @TestMetadata("OnlyNamedArguments.kt") + public void testOnlyNamedArguments() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/OnlyNamedArguments.kt"); + } + + @TestMetadata("WithParameterExpression.kt") + public void testWithParameterExpression() throws Exception { + runTest("idea/idea-completion/testData/basic/common/namedArguments/WithParameterExpression.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/noCompletion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NoCompletion extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInNoCompletion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/noCompletion"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("DoNotCompleteForErrorReceivers.kt") + public void testDoNotCompleteForErrorReceivers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceivers.kt"); + } + + @TestMetadata("DoNotCompleteForErrorReceiversForce.kt") + public void testDoNotCompleteForErrorReceiversForce() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/DoNotCompleteForErrorReceiversForce.kt"); + } + + @TestMetadata("InPackageBegin.kt") + public void testInPackageBegin() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/InPackageBegin.kt"); + } + + @TestMetadata("NoCompletionAfterBigFloat.kt") + public void testNoCompletionAfterBigFloat() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterBigFloat.kt"); + } + + @TestMetadata("NoCompletionAfterFloat.kt") + public void testNoCompletionAfterFloat() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterFloat.kt"); + } + + @TestMetadata("NoCompletionAfterInt.kt") + public void testNoCompletionAfterInt() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterInt.kt"); + } + + @TestMetadata("NoCompletionAfterLong.kt") + public void testNoCompletionAfterLong() throws Exception { + runTest("idea/idea-completion/testData/basic/common/noCompletion/NoCompletionAfterLong.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/objects") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Objects extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInObjects() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/objects"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("PropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass.kt") + public void testPropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/objects/PropertyFromCompanionObjectFromTypeAliasToNestedInObjectClass.kt"); + } + + @TestMetadata("PropertyOfTypeAliasToObject.kt") + public void testPropertyOfTypeAliasToObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/objects/PropertyOfTypeAliasToObject.kt"); + } + + @TestMetadata("TypeAliasToNestedObject.kt") + public void testTypeAliasToNestedObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/objects/TypeAliasToNestedObject.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/operatorNames") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class OperatorNames extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInOperatorNames() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/operatorNames"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("NoOperatorNameForTopLevel.kt") + public void testNoOperatorNameForTopLevel() throws Exception { + runTest("idea/idea-completion/testData/basic/common/operatorNames/NoOperatorNameForTopLevel.kt"); + } + + @TestMetadata("OperatorNameForExtension.kt") + public void testOperatorNameForExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/operatorNames/OperatorNameForExtension.kt"); + } + + @TestMetadata("OperatorNameForMember.kt") + public void testOperatorNameForMember() throws Exception { + runTest("idea/idea-completion/testData/basic/common/operatorNames/OperatorNameForMember.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/override") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Override extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterFunKeyword.kt") + public void testAfterFunKeyword() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/AfterFunKeyword.kt"); + } + + @TestMetadata("AfterValKeyword.kt") + public void testAfterValKeyword() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/AfterValKeyword.kt"); + } + + @TestMetadata("AfterValKeywordInConstructorParameter.kt") + public void testAfterValKeywordInConstructorParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/AfterValKeywordInConstructorParameter.kt"); + } + + @TestMetadata("AfterVarKeyword.kt") + public void testAfterVarKeyword() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/AfterVarKeyword.kt"); + } + + public void testAllFilesPresentInOverride() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/override"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("Generics.kt") + public void testGenerics() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/Generics.kt"); + } + + @TestMetadata("InConstructorParameters.kt") + public void testInConstructorParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/InConstructorParameters.kt"); + } + + @TestMetadata("InConstructorParameters2.kt") + public void testInConstructorParameters2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/InConstructorParameters2.kt"); + } + + @TestMetadata("NoOverrideAfterFunKeyword.kt") + public void testNoOverrideAfterFunKeyword() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/NoOverrideAfterFunKeyword.kt"); + } + + @TestMetadata("PreferImplementToOverride.kt") + public void testPreferImplementToOverride() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/PreferImplementToOverride.kt"); + } + + @TestMetadata("SecondConstructorParameter.kt") + public void testSecondConstructorParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/SecondConstructorParameter.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/Simple.kt"); + } + + @TestMetadata("TypeFunctionName.kt") + public void testTypeFunctionName() throws Exception { + runTest("idea/idea-completion/testData/basic/common/override/TypeFunctionName.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/parameterNameAndType") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ParameterNameAndType extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInParameterNameAndType() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/parameterNameAndType"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ByAbbreviation.kt") + public void testByAbbreviation() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ByAbbreviation.kt"); + } + + @TestMetadata("NoAutoInsertion.kt") + public void testNoAutoInsertion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NoAutoInsertion.kt"); + } + + @TestMetadata("NoDuplication.kt") + public void testNoDuplication() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NoDuplication.kt"); + } + + @TestMetadata("NoDuplicationJava.kt") + public void testNoDuplicationJava() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NoDuplicationJava.kt"); + } + + @TestMetadata("NoFromFileAndFromClassesDuplication.kt") + public void testNoFromFileAndFromClassesDuplication() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NoFromFileAndFromClassesDuplication.kt"); + } + + @TestMetadata("NotForAnnnotationTypeConstructor.kt") + public void testNotForAnnnotationTypeConstructor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnnnotationTypeConstructor.kt"); + } + + @TestMetadata("NotForAnonymousFunction.kt") + public void testNotForAnonymousFunction() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForAnonymousFunction.kt"); + } + + @TestMetadata("NotForCatchParameter.kt") + public void testNotForCatchParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForCatchParameter.kt"); + } + + @TestMetadata("NotForLambdaParameter1.kt") + public void testNotForLambdaParameter1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter1.kt"); + } + + @TestMetadata("NotForLambdaParameter2.kt") + public void testNotForLambdaParameter2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter2.kt"); + } + + @TestMetadata("NotForLambdaParameter3.kt") + public void testNotForLambdaParameter3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForLambdaParameter3.kt"); + } + + @TestMetadata("NotForSetterParameter.kt") + public void testNotForSetterParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotForSetterParameter.kt"); + } + + @TestMetadata("NotImported.kt") + public void testNotImported() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotImported.kt"); + } + + @TestMetadata("NotImportedJava.kt") + public void testNotImportedJava() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/NotImportedJava.kt"); + } + + @TestMetadata("ParametersInFile.kt") + public void testParametersInFile() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFile.kt"); + } + + @TestMetadata("ParametersInFileInaccessibleType.kt") + public void testParametersInFileInaccessibleType() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileInaccessibleType.kt"); + } + + @TestMetadata("ParametersInFileInaccessibleType2.kt") + public void testParametersInFileInaccessibleType2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileInaccessibleType2.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter1.kt") + public void testParametersInFileTypeParameter1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter1.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter2.kt") + public void testParametersInFileTypeParameter2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter2.kt"); + } + + @TestMetadata("ParametersInFileTypeParameter3.kt") + public void testParametersInFileTypeParameter3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileTypeParameter3.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/Simple.kt"); + } + + @TestMetadata("URLConnection.kt") + public void testURLConnection() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/URLConnection.kt"); + } + + @TestMetadata("UserPrefix1.kt") + public void testUserPrefix1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/UserPrefix1.kt"); + } + + @TestMetadata("UserPrefix2.kt") + public void testUserPrefix2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/UserPrefix2.kt"); + } + + @TestMetadata("UserPrefix3.kt") + public void testUserPrefix3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/UserPrefix3.kt"); + } + + @TestMetadata("ValParameter.kt") + public void testValParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/ValParameter.kt"); + } + + @TestMetadata("VarParameter.kt") + public void testVarParameter() throws Exception { + runTest("idea/idea-completion/testData/basic/common/parameterNameAndType/VarParameter.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/primitiveCompletion") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PrimitiveCompletion extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInPrimitiveCompletion() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/primitiveCompletion"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("classExtensionFunctionExplicitReceiver.kt") + public void testClassExtensionFunctionExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classExtensionFunctionExplicitReceiver.kt"); + } + + @TestMetadata("classFieldsAndFunctions.kt") + public void testClassFieldsAndFunctions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctions.kt"); + } + + @TestMetadata("classFieldsAndFunctionsExplicitReceiver.kt") + public void testClassFieldsAndFunctionsExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsExplicitReceiver.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInheritor.kt") + public void testClassFieldsAndFunctionsFromInheritor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInheritor.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInnerClass.kt") + public void testClassFieldsAndFunctionsFromInnerClass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClass.kt"); + } + + @TestMetadata("classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt") + public void testClassFieldsAndFunctionsFromInnerClassExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt"); + } + + @TestMetadata("defaultKotlinImports.kt") + public void testDefaultKotlinImports() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt"); + } + + @TestMetadata("explicitReceiverCompletion.kt") + public void testExplicitReceiverCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt"); + } + + @TestMetadata("extensionPropertyAndFunctionExplicitReceiver.kt") + public void testExtensionPropertyAndFunctionExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/extensionPropertyAndFunctionExplicitReceiver.kt"); + } + + @TestMetadata("extensionPropertyAndFunctionImplicitReceiver.kt") + public void testExtensionPropertyAndFunctionImplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/extensionPropertyAndFunctionImplicitReceiver.kt"); + } + + @TestMetadata("genericExtensionPropertyAndFunctionExplicitReceiver.kt") + public void testGenericExtensionPropertyAndFunctionExplicitReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/genericExtensionPropertyAndFunctionExplicitReceiver.kt"); + } + + @TestMetadata("implicitReceiverCompletion.kt") + public void testImplicitReceiverCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverCompletion.kt"); + } + + @TestMetadata("implicitReceiverFromExtensionMethod.kt") + public void testImplicitReceiverFromExtensionMethod() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt"); + } + + @TestMetadata("insideFunctionWithParameters.kt") + public void testInsideFunctionWithParameters() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt"); + } + + @TestMetadata("localVariablesAndFunctions.kt") + public void testLocalVariablesAndFunctions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt"); + } + + @TestMetadata("localVariablesAndFunctionsFromNestedScope.kt") + public void testLocalVariablesAndFunctionsFromNestedScope() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt"); + } + + @TestMetadata("noCompletionAfterNumberLiteral1.kt") + public void testNoCompletionAfterNumberLiteral1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt"); + } + + @TestMetadata("noCompletionAfterNumberLiteral2.kt") + public void testNoCompletionAfterNumberLiteral2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt"); + } + + @TestMetadata("nullableCompletion.kt") + public void testNullableCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt"); + } + + @TestMetadata("smartCast.kt") + public void testSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt"); + } + + @TestMetadata("stringCompletion.kt") + public void testStringCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt"); + } + + @TestMetadata("topLevelClasses.kt") + public void testTopLevelClasses() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelClasses.kt"); + } + + @TestMetadata("topLevelVariablesAndFunctions.kt") + public void testTopLevelVariablesAndFunctions() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelVariablesAndFunctions.kt"); + } + + @TestMetadata("twoReceivers.kt") + public void testTwoReceivers() throws Exception { + runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/twoReceivers.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/shadowing") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Shadowing extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInShadowing() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/shadowing"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ExtensionShadows.kt") + public void testExtensionShadows() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/ExtensionShadows.kt"); + } + + @TestMetadata("InInitializer1.kt") + public void testInInitializer1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer1.kt"); + } + + @TestMetadata("InInitializer2.kt") + public void testInInitializer2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer2.kt"); + } + + @TestMetadata("InInitializer3.kt") + public void testInInitializer3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer3.kt"); + } + + @TestMetadata("InInitializer4.kt") + public void testInInitializer4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer4.kt"); + } + + @TestMetadata("InInitializer5.kt") + public void testInInitializer5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer5.kt"); + } + + @TestMetadata("InInitializer6.kt") + public void testInInitializer6() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer6.kt"); + } + + @TestMetadata("InInitializer7.kt") + public void testInInitializer7() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/InInitializer7.kt"); + } + + @TestMetadata("Locals1.kt") + public void testLocals1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/Locals1.kt"); + } + + @TestMetadata("Locals2.kt") + public void testLocals2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/Locals2.kt"); + } + + @TestMetadata("Overloads.kt") + public void testOverloads() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/Overloads.kt"); + } + + @TestMetadata("OverloadsAndVararg.kt") + public void testOverloadsAndVararg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/OverloadsAndVararg.kt"); + } + + @TestMetadata("PreferCloserMember.kt") + public void testPreferCloserMember() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferCloserMember.kt"); + } + + @TestMetadata("PreferCloserReceiverGeneric.kt") + public void testPreferCloserReceiverGeneric() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferCloserReceiverGeneric.kt"); + } + + @TestMetadata("PreferMemberExtension.kt") + public void testPreferMemberExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMemberExtension.kt"); + } + + @TestMetadata("PreferMemberToExtension.kt") + public void testPreferMemberToExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMemberToExtension.kt"); + } + + @TestMetadata("PreferMemberToGlobal.kt") + public void testPreferMemberToGlobal() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMemberToGlobal.kt"); + } + + @TestMetadata("PreferMoreSpecificExtension.kt") + public void testPreferMoreSpecificExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMoreSpecificExtension.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGeneric.kt") + public void testPreferMoreSpecificExtensionGeneric() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGeneric.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGenericWithMultipleParam.kt") + public void testPreferMoreSpecificExtensionGenericWithMultipleParam() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGenericWithMultipleParam.kt"); + } + + @TestMetadata("PreferMoreSpecificExtensionGenericWithParam.kt") + public void testPreferMoreSpecificExtensionGenericWithParam() throws Exception { + runTest("idea/idea-completion/testData/basic/common/shadowing/PreferMoreSpecificExtensionGenericWithParam.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/smartCast") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SmartCast extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInSmartCast() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/smartCast"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("functionWithContract.kt") + public void testFunctionWithContract() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/functionWithContract.kt"); + } + + @TestMetadata("MemberExtensionAfterThisSmartCast.kt") + public void testMemberExtensionAfterThisSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/MemberExtensionAfterThisSmartCast.kt"); + } + + @TestMetadata("MembersAfterSmartCast.kt") + public void testMembersAfterSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/MembersAfterSmartCast.kt"); + } + + @TestMetadata("SmartCastAfterIf.kt") + public void testSmartCastAfterIf() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIf.kt"); + } + + @TestMetadata("SmartCastAfterIfMethod.kt") + public void testSmartCastAfterIfMethod() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/SmartCastAfterIfMethod.kt"); + } + + @TestMetadata("SmartCastForThis.kt") + public void testSmartCastForThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt"); + } + + @TestMetadata("SmartCastInWhen.kt") + public void testSmartCastInWhen() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/SmartCastInWhen.kt"); + } + + @TestMetadata("SmartCastThis.kt") + public void testSmartCastThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/smartCast/SmartCastThis.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/staticMembers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class StaticMembers extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInStaticMembers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/staticMembers"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ImportsFromEnumEntry.kt") + public void testImportsFromEnumEntry() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/ImportsFromEnumEntry.kt"); + } + + @TestMetadata("ImportsFromNonObject.kt") + public void testImportsFromNonObject() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/ImportsFromNonObject.kt"); + } + + @TestMetadata("ImportsFromObjectNoDuplicates.kt") + public void testImportsFromObjectNoDuplicates() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/ImportsFromObjectNoDuplicates.kt"); + } + + @TestMetadata("JavaStaticFields.kt") + public void testJavaStaticFields() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticFields.kt"); + } + + @TestMetadata("JavaStaticFieldsFromImports.kt") + public void testJavaStaticFieldsFromImports() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticFieldsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethods.kt") + public void testJavaStaticMethods() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticMethods.kt"); + } + + @TestMetadata("JavaStaticMethodsFromImports.kt") + public void testJavaStaticMethodsFromImports() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticMethodsFromImports.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicates.kt") + public void testJavaStaticMethodsNoDuplicates() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicates.kt"); + } + + @TestMetadata("JavaStaticMethodsNoDuplicatesFromBases.kt") + public void testJavaStaticMethodsNoDuplicatesFromBases() throws Exception { + runTest("idea/idea-completion/testData/basic/common/staticMembers/JavaStaticMethodsNoDuplicatesFromBases.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/substitutedSignature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SubstitutedSignature extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInSubstitutedSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/substitutedSignature"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("SubstitutedSignature1.kt") + public void testSubstitutedSignature1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature1.kt"); + } + + @TestMetadata("SubstitutedSignature2.kt") + public void testSubstitutedSignature2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature2.kt"); + } + + @TestMetadata("SubstitutedSignature3.kt") + public void testSubstitutedSignature3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature3.kt"); + } + + @TestMetadata("SubstitutedSignature4.kt") + public void testSubstitutedSignature4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature4.kt"); + } + + @TestMetadata("SubstitutedSignature5.kt") + public void testSubstitutedSignature5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature5.kt"); + } + + @TestMetadata("SubstitutedSignature6.kt") + public void testSubstitutedSignature6() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignature6.kt"); + } + + @TestMetadata("SubstitutedSignatureSOE.kt") + public void testSubstitutedSignatureSOE() throws Exception { + runTest("idea/idea-completion/testData/basic/common/substitutedSignature/SubstitutedSignatureSOE.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/super") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Super extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInSuper() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/super"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("QualifierType1.kt") + public void testQualifierType1() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType1.kt"); + } + + @TestMetadata("QualifierType2.kt") + public void testQualifierType2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType2.kt"); + } + + @TestMetadata("QualifierType3.kt") + public void testQualifierType3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType3.kt"); + } + + @TestMetadata("QualifierType4.kt") + public void testQualifierType4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType4.kt"); + } + + @TestMetadata("QualifierType5.kt") + public void testQualifierType5() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType5.kt"); + } + + @TestMetadata("QualifierType6.kt") + public void testQualifierType6() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierType6.kt"); + } + + @TestMetadata("QualifierTypeAny.kt") + public void testQualifierTypeAny() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierTypeAny.kt"); + } + + @TestMetadata("QualifierTypeAnyInInterface.kt") + public void testQualifierTypeAnyInInterface() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierTypeAnyInInterface.kt"); + } + + @TestMetadata("QualifierTypeGeneric.kt") + public void testQualifierTypeGeneric() throws Exception { + runTest("idea/idea-completion/testData/basic/common/super/QualifierTypeGeneric.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/typeArgsOrNot") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeArgsOrNot extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInTypeArgsOrNot() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/typeArgsOrNot"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ConstructorTypeArg.kt") + public void testConstructorTypeArg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/ConstructorTypeArg.kt"); + } + + @TestMetadata("FunctionTypeArg.kt") + public void testFunctionTypeArg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/FunctionTypeArg.kt"); + } + + @TestMetadata("FunctionTypeArg2.kt") + public void testFunctionTypeArg2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/FunctionTypeArg2.kt"); + } + + @TestMetadata("LessThan.kt") + public void testLessThan() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/LessThan.kt"); + } + + @TestMetadata("NestedTypeArg.kt") + public void testNestedTypeArg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/NestedTypeArg.kt"); + } + + @TestMetadata("SecondTypeArg.kt") + public void testSecondTypeArg() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg.kt"); + } + + @TestMetadata("SecondTypeArg2.kt") + public void testSecondTypeArg2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg2.kt"); + } + + @TestMetadata("SecondTypeArg3.kt") + public void testSecondTypeArg3() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg3.kt"); + } + + @TestMetadata("SecondTypeArg4.kt") + public void testSecondTypeArg4() throws Exception { + runTest("idea/idea-completion/testData/basic/common/typeArgsOrNot/SecondTypeArg4.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/variableNameAndType") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class VariableNameAndType extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInVariableNameAndType() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/variableNameAndType"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("Lateinit.kt") + public void testLateinit() throws Exception { + runTest("idea/idea-completion/testData/basic/common/variableNameAndType/Lateinit.kt"); + } + + @TestMetadata("Local.kt") + public void testLocal() throws Exception { + runTest("idea/idea-completion/testData/basic/common/variableNameAndType/Local.kt"); + } + + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("idea/idea-completion/testData/basic/common/variableNameAndType/TopLevel.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/common/visibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Visibility extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInVisibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/common/visibility"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("KT9970.kt") + public void testKT9970() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/KT9970.kt"); + } + + @TestMetadata("VisibilityClassMembersFromExternal.kt") + public void testVisibilityClassMembersFromExternal() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternal.kt"); + } + + @TestMetadata("VisibilityClassMembersFromExternalForce.kt") + public void testVisibilityClassMembersFromExternalForce() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityClassMembersFromExternalForce.kt"); + } + + @TestMetadata("VisibilityInSubclass.kt") + public void testVisibilityInSubclass() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclass.kt"); + } + + @TestMetadata("VisibilityInSubclassForce.kt") + public void testVisibilityInSubclassForce() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityInSubclassForce.kt"); + } + + @TestMetadata("VisibilityPrivateToThis.kt") + public void testVisibilityPrivateToThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInConstructor.kt") + public void testVisibilityPrivateToThisInConstructor() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisInConstructor.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInConstructorWithThis.kt") + public void testVisibilityPrivateToThisInConstructorWithThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisInConstructorWithThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisInSpecialScope.kt") + public void testVisibilityPrivateToThisInSpecialScope() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisInSpecialScope.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithReceiver.kt") + public void testVisibilityPrivateToThisWithReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisWithReceiver.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithReceiver2.kt") + public void testVisibilityPrivateToThisWithReceiver2() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisWithReceiver2.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithThis.kt") + public void testVisibilityPrivateToThisWithThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisWithThis.kt"); + } + + @TestMetadata("VisibilityPrivateToThisWithWrongThis.kt") + public void testVisibilityPrivateToThisWithWrongThis() throws Exception { + runTest("idea/idea-completion/testData/basic/common/visibility/VisibilityPrivateToThisWithWrongThis.kt"); + } + } + } + + @TestMetadata("idea/idea-completion/testData/basic/java") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Java extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInJava() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/java"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("AutoForceCompletion.kt") + public void testAutoForceCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/java/AutoForceCompletion.kt"); + } + + @TestMetadata("CompletionForExcludedWhenInternalUse.kt") + public void testCompletionForExcludedWhenInternalUse() throws Exception { + runTest("idea/idea-completion/testData/basic/java/CompletionForExcludedWhenInternalUse.kt"); + } + + @TestMetadata("ExtensionFromStandardLibrary.kt") + public void testExtensionFromStandardLibrary() throws Exception { + runTest("idea/idea-completion/testData/basic/java/ExtensionFromStandardLibrary.kt"); + } + + @TestMetadata("InPackage.kt") + public void testInPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/java/InPackage.kt"); + } + + @TestMetadata("JavaClassNames.kt") + public void testJavaClassNames() throws Exception { + runTest("idea/idea-completion/testData/basic/java/JavaClassNames.kt"); + } + + @TestMetadata("JavaPackage.kt") + public void testJavaPackage() throws Exception { + runTest("idea/idea-completion/testData/basic/java/JavaPackage.kt"); + } + + @TestMetadata("KProperty.kt") + public void testKProperty() throws Exception { + runTest("idea/idea-completion/testData/basic/java/KProperty.kt"); + } + + @TestMetadata("KT9166.kt") + public void testKT9166() throws Exception { + runTest("idea/idea-completion/testData/basic/java/KT9166.kt"); + } + + @TestMetadata("NoDuplicationForImportedJavaClass.kt") + public void testNoDuplicationForImportedJavaClass() throws Exception { + runTest("idea/idea-completion/testData/basic/java/NoDuplicationForImportedJavaClass.kt"); + } + + @TestMetadata("NoDuplicationForRuntimeClass.kt") + public void testNoDuplicationForRuntimeClass() throws Exception { + runTest("idea/idea-completion/testData/basic/java/NoDuplicationForRuntimeClass.kt"); + } + + @TestMetadata("NoSyntheticClasses.kt") + public void testNoSyntheticClasses() throws Exception { + runTest("idea/idea-completion/testData/basic/java/NoSyntheticClasses.kt"); + } + + @TestMetadata("NonImportedPrefixMatching1.kt") + public void testNonImportedPrefixMatching1() throws Exception { + runTest("idea/idea-completion/testData/basic/java/NonImportedPrefixMatching1.kt"); + } + + @TestMetadata("NonImportedPrefixMatching2.kt") + public void testNonImportedPrefixMatching2() throws Exception { + runTest("idea/idea-completion/testData/basic/java/NonImportedPrefixMatching2.kt"); + } + + @TestMetadata("Number.kt") + public void testNumber() throws Exception { + runTest("idea/idea-completion/testData/basic/java/Number.kt"); + } + + @TestMetadata("PackageDirective.kt") + public void testPackageDirective() throws Exception { + runTest("idea/idea-completion/testData/basic/java/PackageDirective.kt"); + } + + @TestMetadata("SAMAdaptersStatic.kt") + public void testSAMAdaptersStatic() throws Exception { + runTest("idea/idea-completion/testData/basic/java/SAMAdaptersStatic.kt"); + } + + @TestMetadata("StandardKotlinTypeAliasAfterExplicitlyImported.kt") + public void testStandardKotlinTypeAliasAfterExplicitlyImported() throws Exception { + runTest("idea/idea-completion/testData/basic/java/StandardKotlinTypeAliasAfterExplicitlyImported.kt"); + } + + @TestMetadata("StandardKotlinTypeAliasFirst.kt") + public void testStandardKotlinTypeAliasFirst() throws Exception { + runTest("idea/idea-completion/testData/basic/java/StandardKotlinTypeAliasFirst.kt"); + } + + @TestMetadata("TopLevelFromStandardLibrary.kt") + public void testTopLevelFromStandardLibrary() throws Exception { + runTest("idea/idea-completion/testData/basic/java/TopLevelFromStandardLibrary.kt"); + } + + @TestMetadata("idea/idea-completion/testData/basic/java/boldOrGrayed") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class BoldOrGrayed extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInBoldOrGrayed() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/java/boldOrGrayed"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("ImmediateMembersForPlatformType.kt") + public void testImmediateMembersForPlatformType() throws Exception { + runTest("idea/idea-completion/testData/basic/java/boldOrGrayed/ImmediateMembersForPlatformType.kt"); + } + + @TestMetadata("NonPredictableSmartCast1.kt") + public void testNonPredictableSmartCast1() throws Exception { + runTest("idea/idea-completion/testData/basic/java/boldOrGrayed/NonPredictableSmartCast1.kt"); + } + + @TestMetadata("NonPredictableSmartCast2.kt") + public void testNonPredictableSmartCast2() throws Exception { + runTest("idea/idea-completion/testData/basic/java/boldOrGrayed/NonPredictableSmartCast2.kt"); + } + + @TestMetadata("SyntheticJavaProperties1.kt") + public void testSyntheticJavaProperties1() throws Exception { + runTest("idea/idea-completion/testData/basic/java/boldOrGrayed/SyntheticJavaProperties1.kt"); + } + + @TestMetadata("SyntheticJavaProperties2.kt") + public void testSyntheticJavaProperties2() throws Exception { + runTest("idea/idea-completion/testData/basic/java/boldOrGrayed/SyntheticJavaProperties2.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/java/importAliases") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ImportAliases extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInImportAliases() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/java/importAliases"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/Class.kt"); + } + + @TestMetadata("ExtensionFun.kt") + public void testExtensionFun() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/ExtensionFun.kt"); + } + + @TestMetadata("ExtensionValSmart.kt") + public void testExtensionValSmart() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/ExtensionValSmart.kt"); + } + + @TestMetadata("KDoc.kt") + public void testKDoc() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/KDoc.kt"); + } + + @TestMetadata("KDocExtension.kt") + public void testKDocExtension() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/KDocExtension.kt"); + } + + @TestMetadata("PrefixUsed.kt") + public void testPrefixUsed() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/PrefixUsed.kt"); + } + + @TestMetadata("TopLevelFun.kt") + public void testTopLevelFun() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/TopLevelFun.kt"); + } + + @TestMetadata("TopLevelVal.kt") + public void testTopLevelVal() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/TopLevelVal.kt"); + } + + @TestMetadata("TypeAlias.kt") + public void testTypeAlias() throws Exception { + runTest("idea/idea-completion/testData/basic/java/importAliases/TypeAlias.kt"); + } + } + + @TestMetadata("idea/idea-completion/testData/basic/java/syntheticExtensions") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class SyntheticExtensions extends AbstractHighLevelJvmBasicCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInSyntheticExtensions() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/basic/java/syntheticExtensions"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("DoNotHideGetterWhenExtensionCannotBeUsed.kt") + public void testDoNotHideGetterWhenExtensionCannotBeUsed() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/DoNotHideGetterWhenExtensionCannotBeUsed.kt"); + } + + @TestMetadata("InGenericClass.kt") + public void testInGenericClass() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/InGenericClass.kt"); + } + + @TestMetadata("NullableReceiver.kt") + public void testNullableReceiver() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/NullableReceiver.kt"); + } + + @TestMetadata("SafeCall.kt") + public void testSafeCall() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SafeCall.kt"); + } + + @TestMetadata("ShowGetSetOnSecondCompletion.kt") + public void testShowGetSetOnSecondCompletion() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/ShowGetSetOnSecondCompletion.kt"); + } + + @TestMetadata("SmartCast.kt") + public void testSmartCast() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SmartCast.kt"); + } + + @TestMetadata("SmartCast2.kt") + public void testSmartCast2() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SmartCast2.kt"); + } + + @TestMetadata("SuppressedByNotPropertyList.kt") + public void testSuppressedByNotPropertyList() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SuppressedByNotPropertyList.kt"); + } + + @TestMetadata("SyntheticExtensions1.kt") + public void testSyntheticExtensions1() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SyntheticExtensions1.kt"); + } + + @TestMetadata("SyntheticExtensions2.kt") + public void testSyntheticExtensions2() throws Exception { + runTest("idea/idea-completion/testData/basic/java/syntheticExtensions/SyntheticExtensions2.kt"); + } + } + } +}