From f8fc43f1e9de2d114ff94f5048b2ddebf817ae03 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Tue, 11 May 2021 18:00:22 +0200 Subject: [PATCH] FIR IDE: add AbstractKeywordCompletionTest --- .../kotlin/generators/tests/GenerateTests.kt | 5 + .../testData/keywords/AfterClassName.kt | 1 + .../testData/keywords/AfterClassProperty.kt | 1 + .../testData/keywords/AfterClasses.kt | 1 + .../keywords/AfterClasses_LangLevel10.kt | 1 + .../keywords/AfterClasses_LangLevel11.kt | 1 + .../testData/keywords/AfterDot.kt | 1 + .../testData/keywords/AfterFuns.kt | 1 + .../testData/keywords/AfterIf.kt | 1 + .../testData/keywords/AfterSafeDot.kt | 1 + .../testData/keywords/AfterSpaceAndDot.kt | 1 + .../testData/keywords/AfterTryCatch.kt | 1 + .../testData/keywords/AfterTryFinally.kt | 1 + .../testData/keywords/BeforeClass.kt | 1 + .../testData/keywords/BeforeDelegationCall.kt | 1 + .../testData/keywords/BreakContinue.kt | 1 + .../testData/keywords/CommaExpected.kt | 1 + .../keywords/CompanionObjectBeforeObject.kt | 1 + .../testData/keywords/Else1.kt | 1 + .../testData/keywords/Else2.kt | 1 + .../keywords/FixingLayoutAndReturn.kt | 1 + .../keywords/GlobalPropertyAccessors.kt | 1 + .../testData/keywords/IfTryCatch.kt | 1 + .../keywords/InAnnotationClassScope.kt | 1 + .../testData/keywords/InArgumentList.kt | 1 + .../testData/keywords/InBlockComment.kt | 1 + .../testData/keywords/InChar.kt | 1 + .../testData/keywords/InClassBeforeFun.kt | 1 + .../keywords/InClassNoCompletionInValName.kt | 1 + .../testData/keywords/InClassProperty.kt | 1 + .../testData/keywords/InClassScope.kt | 1 + .../keywords/InClassTypeParameters.kt | 1 + .../testData/keywords/InCodeBlock.kt | 1 + .../testData/keywords/InElse.kt | 1 + .../testData/keywords/InEnumScope1.kt | 1 + .../testData/keywords/InEnumScope2.kt | 1 + .../keywords/InFunctionExpressionBody.kt | 1 + .../testData/keywords/InFunctionName.kt | 1 + .../keywords/InFunctionRecieverType.kt | 1 + .../keywords/InFunctionTypePosition.kt | 1 + .../keywords/InGetterExpressionBody.kt | 1 + .../idea-completion/testData/keywords/InIf.kt | 1 + .../testData/keywords/InInterfaceScope.kt | 1 + .../keywords/InMemberFunParametersList.kt | 1 + .../keywords/InModifierListInsideClass.kt | 1 + .../InNotFinishedGenericWithFunAfter.kt | 1 + .../testData/keywords/InObjectScope.kt | 1 + .../keywords/InParameterDefaultValue.kt | 1 + .../InPrimaryConstructorParametersList.kt | 1 + .../keywords/InPropertyInitializer.kt | 1 + .../keywords/InPropertyTypeReference.kt | 1 + .../testData/keywords/InString.kt | 1 + .../keywords/InTopFunParametersList.kt | 1 + .../keywords/InTopScopeAfterPackage.kt | 1 + .../testData/keywords/InTypePosition.kt | 1 + .../testData/keywords/LineComment.kt | 1 + .../testData/keywords/NoBreak1.kt | 1 + .../testData/keywords/NoBreak2.kt | 1 + .../testData/keywords/NoCompanionThis.kt | 1 + .../keywords/NoCompletionForCapitalPrefix.kt | 1 + .../testData/keywords/NoContinue.kt | 1 + .../keywords/NoFinalInParameterList.kt | 1 + .../testData/keywords/NotInNotIs.kt | 1 + .../testData/keywords/NotInNotIs2.kt | 1 + .../testData/keywords/PrefixMatcher.kt | 1 + .../testData/keywords/PropertyAccessors.kt | 1 + .../testData/keywords/PropertyAccessors2.kt | 1 + .../testData/keywords/PropertySetter.kt | 1 + .../testData/keywords/Receiver.kt | 1 + .../testData/keywords/Return1.kt | 1 + .../testData/keywords/Return2.kt | 1 + .../testData/keywords/Return3.kt | 1 + .../testData/keywords/Return4.kt | 1 + .../testData/keywords/Return5.kt | 1 + .../testData/keywords/Return7.kt | 1 + .../testData/keywords/Return8.kt | 1 + .../testData/keywords/Return9.kt | 1 + .../testData/keywords/ReturnCollection.kt | 1 + .../testData/keywords/ReturnIterable.kt | 1 + .../testData/keywords/ReturnKeywordName.kt | 1 + .../testData/keywords/ReturnList.kt | 1 + .../testData/keywords/ReturnNotNull.kt | 1 + .../testData/keywords/ReturnSet.kt | 1 + .../keywords/SealedForAlreadySealed.kt | 1 + .../keywords/SealedForAnnotationClass.kt | 1 + .../testData/keywords/SealedForDataClass.kt | 1 + .../keywords/SealedForDeclaredClass.kt | 1 + .../keywords/SealedForDeclaredInterface.kt | 1 + .../testData/keywords/SealedForEnumClass.kt | 1 + .../keywords/SealedForFunInterface.kt | 1 + .../testData/keywords/SealedForInnerClass.kt | 1 + .../testData/keywords/SealedForOpenClass.kt | 1 + .../testData/keywords/SealedWithName.kt | 1 + .../testData/keywords/SealedWithoutName.kt | 1 + .../SuspendInParameterTypePosition.kt | 1 + .../keywords/SuspendInsideTypeArguments.kt | 1 + .../keywords/SuspendInsideTypeArguments1.kt | 1 + .../testData/keywords/ThisPrefixMatching.kt | 1 + .../testData/keywords/TopScope.kt | 1 + .../testData/keywords/TopScope3-.kt | 1 + ...iteTargetForPrimaryConstructorParameter.kt | 1 + .../testData/keywords/topScope2.kt | 1 + .../AbstractFirKeywordCompletionTest.kt | 19 + .../FirKeywordCompletionTestGenerated.java | 606 ++++++++++++++++++ 104 files changed, 731 insertions(+) create mode 100644 idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractFirKeywordCompletionTest.kt create mode 100644 idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/FirKeywordCompletionTestGenerated.java diff --git a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt index ec44ebfaaf7..685677172c6 100644 --- a/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt +++ b/generators/tests/org/jetbrains/kotlin/generators/tests/GenerateTests.kt @@ -47,6 +47,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.AbstractFirKeywordCompletionTest import org.jetbrains.kotlin.idea.completion.AbstractHighLevelJvmBasicCompletionTest import org.jetbrains.kotlin.idea.completion.AbstractHighLevelMultiFileJvmBasicCompletionTest import org.jetbrains.kotlin.idea.completion.test.* @@ -1226,6 +1227,10 @@ fun main(args: Array) { testClass { model("basic/multifile", extension = null, recursive = false) } + + testClass { + model("keywords", recursive = false) + } } testGroup("idea/idea-fir/tests", "idea/testData/findUsages") { diff --git a/idea/idea-completion/testData/keywords/AfterClassName.kt b/idea/idea-completion/testData/keywords/AfterClassName.kt index 038d40b4a21..f8dbc579a8a 100644 --- a/idea/idea-completion/testData/keywords/AfterClassName.kt +++ b/idea/idea-completion/testData/keywords/AfterClassName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Foo { } diff --git a/idea/idea-completion/testData/keywords/AfterClassProperty.kt b/idea/idea-completion/testData/keywords/AfterClassProperty.kt index cb2c81431a1..4d14a42004b 100644 --- a/idea/idea-completion/testData/keywords/AfterClassProperty.kt +++ b/idea/idea-completion/testData/keywords/AfterClassProperty.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class MouseMovedEventArgs diff --git a/idea/idea-completion/testData/keywords/AfterClasses.kt b/idea/idea-completion/testData/keywords/AfterClasses.kt index 9a68457c1bc..c86f9ccdc31 100644 --- a/idea/idea-completion/testData/keywords/AfterClasses.kt +++ b/idea/idea-completion/testData/keywords/AfterClasses.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class A { diff --git a/idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt b/idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt index 17727796838..d696f4a0c51 100644 --- a/idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt +++ b/idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun foo() { bar() diff --git a/idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt b/idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt index 24bbfe25aad..dc3480ed79b 100644 --- a/idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt +++ b/idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { fun foo() { bar() diff --git a/idea/idea-completion/testData/keywords/AfterDot.kt b/idea/idea-completion/testData/keywords/AfterDot.kt index 7d6d15e3c5c..87bd54a4c94 100644 --- a/idea/idea-completion/testData/keywords/AfterDot.kt +++ b/idea/idea-completion/testData/keywords/AfterDot.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { val str : String str. diff --git a/idea/idea-completion/testData/keywords/AfterFuns.kt b/idea/idea-completion/testData/keywords/AfterFuns.kt index 6b35b3680da..a59d69bb64b 100644 --- a/idea/idea-completion/testData/keywords/AfterFuns.kt +++ b/idea/idea-completion/testData/keywords/AfterFuns.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class A { diff --git a/idea/idea-completion/testData/keywords/AfterIf.kt b/idea/idea-completion/testData/keywords/AfterIf.kt index 6d414f05a40..dcd5cf434e7 100644 --- a/idea/idea-completion/testData/keywords/AfterIf.kt +++ b/idea/idea-completion/testData/keywords/AfterIf.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { if (true) { diff --git a/idea/idea-completion/testData/keywords/AfterSafeDot.kt b/idea/idea-completion/testData/keywords/AfterSafeDot.kt index ce9eb1994c0..e31c3cafe0e 100644 --- a/idea/idea-completion/testData/keywords/AfterSafeDot.kt +++ b/idea/idea-completion/testData/keywords/AfterSafeDot.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { val str : String? str?. diff --git a/idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt b/idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt index 1ab69d2c3ff..ed7b5e4416b 100644 --- a/idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt +++ b/idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { val str : String str. diff --git a/idea/idea-completion/testData/keywords/AfterTryCatch.kt b/idea/idea-completion/testData/keywords/AfterTryCatch.kt index 543f486c4fd..42e442aafbf 100644 --- a/idea/idea-completion/testData/keywords/AfterTryCatch.kt +++ b/idea/idea-completion/testData/keywords/AfterTryCatch.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { try { diff --git a/idea/idea-completion/testData/keywords/AfterTryFinally.kt b/idea/idea-completion/testData/keywords/AfterTryFinally.kt index 585cf58dc72..787755a52cc 100644 --- a/idea/idea-completion/testData/keywords/AfterTryFinally.kt +++ b/idea/idea-completion/testData/keywords/AfterTryFinally.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { try { diff --git a/idea/idea-completion/testData/keywords/BeforeClass.kt b/idea/idea-completion/testData/keywords/BeforeClass.kt index be801ad2072..f5c7f5ae296 100644 --- a/idea/idea-completion/testData/keywords/BeforeClass.kt +++ b/idea/idea-completion/testData/keywords/BeforeClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON eclass A { } diff --git a/idea/idea-completion/testData/keywords/BeforeDelegationCall.kt b/idea/idea-completion/testData/keywords/BeforeDelegationCall.kt index 6b51f5f4119..1109afd0662 100644 --- a/idea/idea-completion/testData/keywords/BeforeDelegationCall.kt +++ b/idea/idea-completion/testData/keywords/BeforeDelegationCall.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A(x: Int) { constructor(): } diff --git a/idea/idea-completion/testData/keywords/BreakContinue.kt b/idea/idea-completion/testData/keywords/BreakContinue.kt index 3361179146f..01060124fc4 100644 --- a/idea/idea-completion/testData/keywords/BreakContinue.kt +++ b/idea/idea-completion/testData/keywords/BreakContinue.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { myFor@ for (i in 1..10) { diff --git a/idea/idea-completion/testData/keywords/CommaExpected.kt b/idea/idea-completion/testData/keywords/CommaExpected.kt index 5f20c3fbd7f..6180f601f72 100644 --- a/idea/idea-completion/testData/keywords/CommaExpected.kt +++ b/idea/idea-completion/testData/keywords/CommaExpected.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { Math.pow(2.0 ) } diff --git a/idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt b/idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt index 336cb258073..d794e1d7cc8 100644 --- a/idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt +++ b/idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { object O {} diff --git a/idea/idea-completion/testData/keywords/Else1.kt b/idea/idea-completion/testData/keywords/Else1.kt index 8def8e967b6..382caee4664 100644 --- a/idea/idea-completion/testData/keywords/Else1.kt +++ b/idea/idea-completion/testData/keywords/Else1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int) { if (p > 0) { diff --git a/idea/idea-completion/testData/keywords/Else2.kt b/idea/idea-completion/testData/keywords/Else2.kt index a45321e0cd9..2101e3e6c15 100644 --- a/idea/idea-completion/testData/keywords/Else2.kt +++ b/idea/idea-completion/testData/keywords/Else2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int) { if (p > 0) foo() diff --git a/idea/idea-completion/testData/keywords/FixingLayoutAndReturn.kt b/idea/idea-completion/testData/keywords/FixingLayoutAndReturn.kt index c82dcf0404e..7831d192311 100644 --- a/idea/idea-completion/testData/keywords/FixingLayoutAndReturn.kt +++ b/idea/idea-completion/testData/keywords/FixingLayoutAndReturn.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { куе } diff --git a/idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt b/idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt index fe02a7cc9c2..e5627de13c4 100644 --- a/idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt +++ b/idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects fun foo() { diff --git a/idea/idea-completion/testData/keywords/IfTryCatch.kt b/idea/idea-completion/testData/keywords/IfTryCatch.kt index 720a13208da..b1ae9d0b9b5 100644 --- a/idea/idea-completion/testData/keywords/IfTryCatch.kt +++ b/idea/idea-completion/testData/keywords/IfTryCatch.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int) { if (p > 0) try { diff --git a/idea/idea-completion/testData/keywords/InAnnotationClassScope.kt b/idea/idea-completion/testData/keywords/InAnnotationClassScope.kt index 35d9db37c7f..69c2d8ccbc7 100644 --- a/idea/idea-completion/testData/keywords/InAnnotationClassScope.kt +++ b/idea/idea-completion/testData/keywords/InAnnotationClassScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects annotation class Test { diff --git a/idea/idea-completion/testData/keywords/InArgumentList.kt b/idea/idea-completion/testData/keywords/InArgumentList.kt index 9cf355e5d27..72cee4bc6e8 100644 --- a/idea/idea-completion/testData/keywords/InArgumentList.kt +++ b/idea/idea-completion/testData/keywords/InArgumentList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int) { x() y() diff --git a/idea/idea-completion/testData/keywords/InBlockComment.kt b/idea/idea-completion/testData/keywords/InBlockComment.kt index d7e63bf146f..5d783a78e84 100644 --- a/idea/idea-completion/testData/keywords/InBlockComment.kt +++ b/idea/idea-completion/testData/keywords/InBlockComment.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { /* */ fun test() { diff --git a/idea/idea-completion/testData/keywords/InChar.kt b/idea/idea-completion/testData/keywords/InChar.kt index 927187f2f81..222c39d9904 100644 --- a/idea/idea-completion/testData/keywords/InChar.kt +++ b/idea/idea-completion/testData/keywords/InChar.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { fun test() { '' diff --git a/idea/idea-completion/testData/keywords/InClassBeforeFun.kt b/idea/idea-completion/testData/keywords/InClassBeforeFun.kt index 27161fe28ae..8acff53151e 100644 --- a/idea/idea-completion/testData/keywords/InClassBeforeFun.kt +++ b/idea/idea-completion/testData/keywords/InClassBeforeFun.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects public class Test { diff --git a/idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt b/idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt index 8eccdf21d6e..de95efdcada 100644 --- a/idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt +++ b/idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Test { val } diff --git a/idea/idea-completion/testData/keywords/InClassProperty.kt b/idea/idea-completion/testData/keywords/InClassProperty.kt index 8647c7d465e..83813338d60 100644 --- a/idea/idea-completion/testData/keywords/InClassProperty.kt +++ b/idea/idea-completion/testData/keywords/InClassProperty.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class MouseMovedEventArgs { public val X : int = 0 diff --git a/idea/idea-completion/testData/keywords/InClassScope.kt b/idea/idea-completion/testData/keywords/InClassScope.kt index 863eb38b6ca..fa489da47d3 100644 --- a/idea/idea-completion/testData/keywords/InClassScope.kt +++ b/idea/idea-completion/testData/keywords/InClassScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class TestClass { diff --git a/idea/idea-completion/testData/keywords/InClassTypeParameters.kt b/idea/idea-completion/testData/keywords/InClassTypeParameters.kt index dfb7796a6ab..3a21f3c8902 100644 --- a/idea/idea-completion/testData/keywords/InClassTypeParameters.kt +++ b/idea/idea-completion/testData/keywords/InClassTypeParameters.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class T<> // EXIST: in diff --git a/idea/idea-completion/testData/keywords/InCodeBlock.kt b/idea/idea-completion/testData/keywords/InCodeBlock.kt index 12bc7d13e0c..f5f0481f1af 100644 --- a/idea/idea-completion/testData/keywords/InCodeBlock.kt +++ b/idea/idea-completion/testData/keywords/InCodeBlock.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { } diff --git a/idea/idea-completion/testData/keywords/InElse.kt b/idea/idea-completion/testData/keywords/InElse.kt index ccfc027ab49..ee867bb2f12 100644 --- a/idea/idea-completion/testData/keywords/InElse.kt +++ b/idea/idea-completion/testData/keywords/InElse.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { if (true) { diff --git a/idea/idea-completion/testData/keywords/InEnumScope1.kt b/idea/idea-completion/testData/keywords/InEnumScope1.kt index 05ddfe91ad8..ae1ec29e0dd 100644 --- a/idea/idea-completion/testData/keywords/InEnumScope1.kt +++ b/idea/idea-completion/testData/keywords/InEnumScope1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON enum class Test { } diff --git a/idea/idea-completion/testData/keywords/InEnumScope2.kt b/idea/idea-completion/testData/keywords/InEnumScope2.kt index f21931454f6..a7b42d4223a 100644 --- a/idea/idea-completion/testData/keywords/InEnumScope2.kt +++ b/idea/idea-completion/testData/keywords/InEnumScope2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects enum class Test { diff --git a/idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt b/idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt index 0b9f3aab63a..6370f714fa7 100644 --- a/idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt +++ b/idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() = // EXIST: do diff --git a/idea/idea-completion/testData/keywords/InFunctionName.kt b/idea/idea-completion/testData/keywords/InFunctionName.kt index ffb2db0f255..e44c4d79b0b 100644 --- a/idea/idea-completion/testData/keywords/InFunctionName.kt +++ b/idea/idea-completion/testData/keywords/InFunctionName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun () { } diff --git a/idea/idea-completion/testData/keywords/InFunctionRecieverType.kt b/idea/idea-completion/testData/keywords/InFunctionRecieverType.kt index 40a097af855..6dd437e93cf 100644 --- a/idea/idea-completion/testData/keywords/InFunctionRecieverType.kt +++ b/idea/idea-completion/testData/keywords/InFunctionRecieverType.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun . // NUMBER: 1 diff --git a/idea/idea-completion/testData/keywords/InFunctionTypePosition.kt b/idea/idea-completion/testData/keywords/InFunctionTypePosition.kt index 8d28bb4803e..97d515d80e7 100644 --- a/idea/idea-completion/testData/keywords/InFunctionTypePosition.kt +++ b/idea/idea-completion/testData/keywords/InFunctionTypePosition.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { val test : } diff --git a/idea/idea-completion/testData/keywords/InGetterExpressionBody.kt b/idea/idea-completion/testData/keywords/InGetterExpressionBody.kt index f0b854098ff..fd4ff547f02 100644 --- a/idea/idea-completion/testData/keywords/InGetterExpressionBody.kt +++ b/idea/idea-completion/testData/keywords/InGetterExpressionBody.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val prop: Int get() = diff --git a/idea/idea-completion/testData/keywords/InIf.kt b/idea/idea-completion/testData/keywords/InIf.kt index 801cdac65fc..9c36c4eeeb8 100644 --- a/idea/idea-completion/testData/keywords/InIf.kt +++ b/idea/idea-completion/testData/keywords/InIf.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun some() { if (true) { diff --git a/idea/idea-completion/testData/keywords/InInterfaceScope.kt b/idea/idea-completion/testData/keywords/InInterfaceScope.kt index b553f51cdb0..cfaec6148b0 100644 --- a/idea/idea-completion/testData/keywords/InInterfaceScope.kt +++ b/idea/idea-completion/testData/keywords/InInterfaceScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects interface Test { diff --git a/idea/idea-completion/testData/keywords/InMemberFunParametersList.kt b/idea/idea-completion/testData/keywords/InMemberFunParametersList.kt index 55b75405dc2..52661754f05 100644 --- a/idea/idea-completion/testData/keywords/InMemberFunParametersList.kt +++ b/idea/idea-completion/testData/keywords/InMemberFunParametersList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package TestData class TestSample() { diff --git a/idea/idea-completion/testData/keywords/InModifierListInsideClass.kt b/idea/idea-completion/testData/keywords/InModifierListInsideClass.kt index e4437516cb4..1316c4595ff 100644 --- a/idea/idea-completion/testData/keywords/InModifierListInsideClass.kt +++ b/idea/idea-completion/testData/keywords/InModifierListInsideClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // for: KT-2170 open class Foo { p val foo = 1 diff --git a/idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt b/idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt index 5efbc1a9545..c67e8b5261f 100644 --- a/idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt +++ b/idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Test< fun testing() {} diff --git a/idea/idea-completion/testData/keywords/InObjectScope.kt b/idea/idea-completion/testData/keywords/InObjectScope.kt index 291e5607b94..e8b141396df 100644 --- a/idea/idea-completion/testData/keywords/InObjectScope.kt +++ b/idea/idea-completion/testData/keywords/InObjectScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects object Test { diff --git a/idea/idea-completion/testData/keywords/InParameterDefaultValue.kt b/idea/idea-completion/testData/keywords/InParameterDefaultValue.kt index 2669d86aae5..a1ae2d84809 100644 --- a/idea/idea-completion/testData/keywords/InParameterDefaultValue.kt +++ b/idea/idea-completion/testData/keywords/InParameterDefaultValue.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int = ) // EXIST: do diff --git a/idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt b/idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt index d7d688ebc53..04097df1434 100644 --- a/idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt +++ b/idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON package TestData class TestSample() diff --git a/idea/idea-completion/testData/keywords/InPropertyInitializer.kt b/idea/idea-completion/testData/keywords/InPropertyInitializer.kt index 1b1de0a1b9f..2131fe0d179 100644 --- a/idea/idea-completion/testData/keywords/InPropertyInitializer.kt +++ b/idea/idea-completion/testData/keywords/InPropertyInitializer.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON var a : Int = // EXIST: do diff --git a/idea/idea-completion/testData/keywords/InPropertyTypeReference.kt b/idea/idea-completion/testData/keywords/InPropertyTypeReference.kt index e26b9121ef7..6963bf64e1b 100644 --- a/idea/idea-completion/testData/keywords/InPropertyTypeReference.kt +++ b/idea/idea-completion/testData/keywords/InPropertyTypeReference.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val e. // NUMBER: 0 diff --git a/idea/idea-completion/testData/keywords/InString.kt b/idea/idea-completion/testData/keywords/InString.kt index 62b53e13c43..46f53eccf39 100644 --- a/idea/idea-completion/testData/keywords/InString.kt +++ b/idea/idea-completion/testData/keywords/InString.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { fun test() { "" diff --git a/idea/idea-completion/testData/keywords/InTopFunParametersList.kt b/idea/idea-completion/testData/keywords/InTopFunParametersList.kt index edff43a024a..0c4142b0bb5 100644 --- a/idea/idea-completion/testData/keywords/InTopFunParametersList.kt +++ b/idea/idea-completion/testData/keywords/InTopFunParametersList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun test() { } diff --git a/idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt b/idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt index e3c85bb5a96..9544ddb2a5a 100644 --- a/idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt +++ b/idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects package Test diff --git a/idea/idea-completion/testData/keywords/InTypePosition.kt b/idea/idea-completion/testData/keywords/InTypePosition.kt index abb77145f4d..b95db663a01 100644 --- a/idea/idea-completion/testData/keywords/InTypePosition.kt +++ b/idea/idea-completion/testData/keywords/InTypePosition.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val a : diff --git a/idea/idea-completion/testData/keywords/LineComment.kt b/idea/idea-completion/testData/keywords/LineComment.kt index af3bd9da1a0..06f603ce494 100644 --- a/idea/idea-completion/testData/keywords/LineComment.kt +++ b/idea/idea-completion/testData/keywords/LineComment.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class TestClass { // } diff --git a/idea/idea-completion/testData/keywords/NoBreak1.kt b/idea/idea-completion/testData/keywords/NoBreak1.kt index 86eb1816347..1eb1229747b 100644 --- a/idea/idea-completion/testData/keywords/NoBreak1.kt +++ b/idea/idea-completion/testData/keywords/NoBreak1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { myFor@ for (i in 1..10) { diff --git a/idea/idea-completion/testData/keywords/NoBreak2.kt b/idea/idea-completion/testData/keywords/NoBreak2.kt index 4d549a36c66..ce4babeeca9 100644 --- a/idea/idea-completion/testData/keywords/NoBreak2.kt +++ b/idea/idea-completion/testData/keywords/NoBreak2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { myFor@ for (i in 1..10) { diff --git a/idea/idea-completion/testData/keywords/NoCompanionThis.kt b/idea/idea-completion/testData/keywords/NoCompanionThis.kt index 07f574fe714..24d096dbe03 100644 --- a/idea/idea-completion/testData/keywords/NoCompanionThis.kt +++ b/idea/idea-completion/testData/keywords/NoCompanionThis.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class C { fun foo() { diff --git a/idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt b/idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt index 3f7ca5c25a1..78ccc91a341 100644 --- a/idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt +++ b/idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON P // NUMBER: 0 diff --git a/idea/idea-completion/testData/keywords/NoContinue.kt b/idea/idea-completion/testData/keywords/NoContinue.kt index cc703efb5d6..e39399e967a 100644 --- a/idea/idea-completion/testData/keywords/NoContinue.kt +++ b/idea/idea-completion/testData/keywords/NoContinue.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { myFor@ for (i in 1..10) { diff --git a/idea/idea-completion/testData/keywords/NoFinalInParameterList.kt b/idea/idea-completion/testData/keywords/NoFinalInParameterList.kt index 9021da53b60..3d9de118393 100644 --- a/idea/idea-completion/testData/keywords/NoFinalInParameterList.kt +++ b/idea/idea-completion/testData/keywords/NoFinalInParameterList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(f fun test() { } diff --git a/idea/idea-completion/testData/keywords/NotInNotIs.kt b/idea/idea-completion/testData/keywords/NotInNotIs.kt index 528967b2018..62ac325df09 100644 --- a/idea/idea-completion/testData/keywords/NotInNotIs.kt +++ b/idea/idea-completion/testData/keywords/NotInNotIs.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(v: String) { if (v !) } diff --git a/idea/idea-completion/testData/keywords/NotInNotIs2.kt b/idea/idea-completion/testData/keywords/NotInNotIs2.kt index 95077733cc9..c0d6aedd277 100644 --- a/idea/idea-completion/testData/keywords/NotInNotIs2.kt +++ b/idea/idea-completion/testData/keywords/NotInNotIs2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { list.filter { it !i } } diff --git a/idea/idea-completion/testData/keywords/PrefixMatcher.kt b/idea/idea-completion/testData/keywords/PrefixMatcher.kt index a9c284702b1..79929b10647 100644 --- a/idea/idea-completion/testData/keywords/PrefixMatcher.kt +++ b/idea/idea-completion/testData/keywords/PrefixMatcher.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // test that sinple prefix matching is used for keywords p diff --git a/idea/idea-completion/testData/keywords/PropertyAccessors.kt b/idea/idea-completion/testData/keywords/PropertyAccessors.kt index f52b8114536..72c4bf02512 100644 --- a/idea/idea-completion/testData/keywords/PropertyAccessors.kt +++ b/idea/idea-completion/testData/keywords/PropertyAccessors.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class Some { diff --git a/idea/idea-completion/testData/keywords/PropertyAccessors2.kt b/idea/idea-completion/testData/keywords/PropertyAccessors2.kt index 31e4eb9ae7f..8b6d9222882 100644 --- a/idea/idea-completion/testData/keywords/PropertyAccessors2.kt +++ b/idea/idea-completion/testData/keywords/PropertyAccessors2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class Some { diff --git a/idea/idea-completion/testData/keywords/PropertySetter.kt b/idea/idea-completion/testData/keywords/PropertySetter.kt index fc6e6b730b2..8451a69c402 100644 --- a/idea/idea-completion/testData/keywords/PropertySetter.kt +++ b/idea/idea-completion/testData/keywords/PropertySetter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class Some { diff --git a/idea/idea-completion/testData/keywords/Receiver.kt b/idea/idea-completion/testData/keywords/Receiver.kt index b2351c5f04f..c049ffd01ea 100644 --- a/idea/idea-completion/testData/keywords/Receiver.kt +++ b/idea/idea-completion/testData/keywords/Receiver.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun @ // EXIST: receiver diff --git a/idea/idea-completion/testData/keywords/Return1.kt b/idea/idea-completion/testData/keywords/Return1.kt index 7924af1d61f..9b31ec466b6 100644 --- a/idea/idea-completion/testData/keywords/Return1.kt +++ b/idea/idea-completion/testData/keywords/Return1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { takeHandler1 { takeHandler2({ ret }) diff --git a/idea/idea-completion/testData/keywords/Return2.kt b/idea/idea-completion/testData/keywords/Return2.kt index 9c7fd5dd641..909d902ae45 100644 --- a/idea/idea-completion/testData/keywords/Return2.kt +++ b/idea/idea-completion/testData/keywords/Return2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { takeHandler1 { takeHandler2 { } diff --git a/idea/idea-completion/testData/keywords/Return3.kt b/idea/idea-completion/testData/keywords/Return3.kt index 7cec58ae52a..e99398f2668 100644 --- a/idea/idea-completion/testData/keywords/Return3.kt +++ b/idea/idea-completion/testData/keywords/Return3.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { takeHandler1 { takeHandler2 { } diff --git a/idea/idea-completion/testData/keywords/Return4.kt b/idea/idea-completion/testData/keywords/Return4.kt index ae5f99603b2..d566a2f7956 100644 --- a/idea/idea-completion/testData/keywords/Return4.kt +++ b/idea/idea-completion/testData/keywords/Return4.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { takeHandler label@ { diff --git a/idea/idea-completion/testData/keywords/Return5.kt b/idea/idea-completion/testData/keywords/Return5.kt index d17625352c4..85b5869705f 100644 --- a/idea/idea-completion/testData/keywords/Return5.kt +++ b/idea/idea-completion/testData/keywords/Return5.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { takeHandler label@ { diff --git a/idea/idea-completion/testData/keywords/Return7.kt b/idea/idea-completion/testData/keywords/Return7.kt index c155454fff9..db7b2e7f76a 100644 --- a/idea/idea-completion/testData/keywords/Return7.kt +++ b/idea/idea-completion/testData/keywords/Return7.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON val property: Int get() { diff --git a/idea/idea-completion/testData/keywords/Return8.kt b/idea/idea-completion/testData/keywords/Return8.kt index e05d0b578a8..6a31331d8a8 100644 --- a/idea/idea-completion/testData/keywords/Return8.kt +++ b/idea/idea-completion/testData/keywords/Return8.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(p: Int?): Int = p ?: // ABSENT: return diff --git a/idea/idea-completion/testData/keywords/Return9.kt b/idea/idea-completion/testData/keywords/Return9.kt index 1f026b14644..136fb2f1a70 100644 --- a/idea/idea-completion/testData/keywords/Return9.kt +++ b/idea/idea-completion/testData/keywords/Return9.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON inline fun run (p: () -> Unit) {} fun foo() = run { diff --git a/idea/idea-completion/testData/keywords/ReturnCollection.kt b/idea/idea-completion/testData/keywords/ReturnCollection.kt index d74a4ed9317..61648ba7a57 100644 --- a/idea/idea-completion/testData/keywords/ReturnCollection.kt +++ b/idea/idea-completion/testData/keywords/ReturnCollection.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): Collection { ret } diff --git a/idea/idea-completion/testData/keywords/ReturnIterable.kt b/idea/idea-completion/testData/keywords/ReturnIterable.kt index 99a9990967f..ba2050c7c6c 100644 --- a/idea/idea-completion/testData/keywords/ReturnIterable.kt +++ b/idea/idea-completion/testData/keywords/ReturnIterable.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): Iterable { ret } diff --git a/idea/idea-completion/testData/keywords/ReturnKeywordName.kt b/idea/idea-completion/testData/keywords/ReturnKeywordName.kt index d6b85f831a0..27fc897fc7c 100644 --- a/idea/idea-completion/testData/keywords/ReturnKeywordName.kt +++ b/idea/idea-completion/testData/keywords/ReturnKeywordName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo() { `fun` { `val`({ ret }) diff --git a/idea/idea-completion/testData/keywords/ReturnList.kt b/idea/idea-completion/testData/keywords/ReturnList.kt index a2ea018aa6b..1c32b832709 100644 --- a/idea/idea-completion/testData/keywords/ReturnList.kt +++ b/idea/idea-completion/testData/keywords/ReturnList.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): List { ret } diff --git a/idea/idea-completion/testData/keywords/ReturnNotNull.kt b/idea/idea-completion/testData/keywords/ReturnNotNull.kt index 43f1d77e1c5..1ca3622001d 100644 --- a/idea/idea-completion/testData/keywords/ReturnNotNull.kt +++ b/idea/idea-completion/testData/keywords/ReturnNotNull.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): String { ret } diff --git a/idea/idea-completion/testData/keywords/ReturnSet.kt b/idea/idea-completion/testData/keywords/ReturnSet.kt index 552ffbf2f00..f4fbf0eadd8 100644 --- a/idea/idea-completion/testData/keywords/ReturnSet.kt +++ b/idea/idea-completion/testData/keywords/ReturnSet.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(): Set { ret } diff --git a/idea/idea-completion/testData/keywords/SealedForAlreadySealed.kt b/idea/idea-completion/testData/keywords/SealedForAlreadySealed.kt index 7d8d077dcd3..4fe53c086de 100644 --- a/idea/idea-completion/testData/keywords/SealedForAlreadySealed.kt +++ b/idea/idea-completion/testData/keywords/SealedForAlreadySealed.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON seal sealed class A // ABSENT: "sealed" // ABSENT: "sealed class" diff --git a/idea/idea-completion/testData/keywords/SealedForAnnotationClass.kt b/idea/idea-completion/testData/keywords/SealedForAnnotationClass.kt index 7fe489d68bc..5581cc95b64 100644 --- a/idea/idea-completion/testData/keywords/SealedForAnnotationClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForAnnotationClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON seal annotation class A // ABSENT: "sealed" // ABSENT: "sealed class" diff --git a/idea/idea-completion/testData/keywords/SealedForDataClass.kt b/idea/idea-completion/testData/keywords/SealedForDataClass.kt index 08688c6481b..0da12f7c0d6 100644 --- a/idea/idea-completion/testData/keywords/SealedForDataClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForDataClass.kt @@ -1,2 +1,3 @@ +// FIR_COMPARISON seal data class A(val f: Int) // ABSENT: "sealed" \ No newline at end of file diff --git a/idea/idea-completion/testData/keywords/SealedForDeclaredClass.kt b/idea/idea-completion/testData/keywords/SealedForDeclaredClass.kt index f12d91839e1..de9341c4b85 100644 --- a/idea/idea-completion/testData/keywords/SealedForDeclaredClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForDeclaredClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON sealclass A // EXIST: "sealed" // NOTHING_ELSE \ No newline at end of file diff --git a/idea/idea-completion/testData/keywords/SealedForDeclaredInterface.kt b/idea/idea-completion/testData/keywords/SealedForDeclaredInterface.kt index c1a96d3b410..c6b3e669aa7 100644 --- a/idea/idea-completion/testData/keywords/SealedForDeclaredInterface.kt +++ b/idea/idea-completion/testData/keywords/SealedForDeclaredInterface.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON sealinterface A // EXIST: "sealed" // NOTHING_ELSE \ No newline at end of file diff --git a/idea/idea-completion/testData/keywords/SealedForEnumClass.kt b/idea/idea-completion/testData/keywords/SealedForEnumClass.kt index e4699e61300..6cba8fef6dc 100644 --- a/idea/idea-completion/testData/keywords/SealedForEnumClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForEnumClass.kt @@ -1,2 +1,3 @@ +// FIR_COMPARISON seal enum class A // ABSENT: "sealed" \ No newline at end of file diff --git a/idea/idea-completion/testData/keywords/SealedForFunInterface.kt b/idea/idea-completion/testData/keywords/SealedForFunInterface.kt index 5eabec43764..00c62d07511 100644 --- a/idea/idea-completion/testData/keywords/SealedForFunInterface.kt +++ b/idea/idea-completion/testData/keywords/SealedForFunInterface.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON seal fun interface A { fun aFunction() } diff --git a/idea/idea-completion/testData/keywords/SealedForInnerClass.kt b/idea/idea-completion/testData/keywords/SealedForInnerClass.kt index dcaf19f6cb6..67842addd31 100644 --- a/idea/idea-completion/testData/keywords/SealedForInnerClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForInnerClass.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class A { sealinner class B } diff --git a/idea/idea-completion/testData/keywords/SealedForOpenClass.kt b/idea/idea-completion/testData/keywords/SealedForOpenClass.kt index 3abc4394930..1688c48bd53 100644 --- a/idea/idea-completion/testData/keywords/SealedForOpenClass.kt +++ b/idea/idea-completion/testData/keywords/SealedForOpenClass.kt @@ -1,2 +1,3 @@ +// FIR_COMPARISON seal open class A // ABSENT: "sealed" \ No newline at end of file diff --git a/idea/idea-completion/testData/keywords/SealedWithName.kt b/idea/idea-completion/testData/keywords/SealedWithName.kt index 5487c20aaab..528754e939f 100644 --- a/idea/idea-completion/testData/keywords/SealedWithName.kt +++ b/idea/idea-completion/testData/keywords/SealedWithName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects seal diff --git a/idea/idea-completion/testData/keywords/SealedWithoutName.kt b/idea/idea-completion/testData/keywords/SealedWithoutName.kt index 8bef92d7f4e..d7b26e08817 100644 --- a/idea/idea-completion/testData/keywords/SealedWithoutName.kt +++ b/idea/idea-completion/testData/keywords/SealedWithoutName.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects class OuterClass { diff --git a/idea/idea-completion/testData/keywords/SuspendInParameterTypePosition.kt b/idea/idea-completion/testData/keywords/SuspendInParameterTypePosition.kt index 012da3a8ed6..8d3563fa704 100644 --- a/idea/idea-completion/testData/keywords/SuspendInParameterTypePosition.kt +++ b/idea/idea-completion/testData/keywords/SuspendInParameterTypePosition.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun foo(a: ) {} // EXIST: suspend diff --git a/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt b/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt index 498717586e8..25e4344a92a 100644 --- a/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt +++ b/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Su() { fun x() { mutableListOf<>() diff --git a/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt b/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt index 26001b1e917..214c7fbbecc 100644 --- a/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt +++ b/idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON class Su() { fun x() { mutableListOf, String>>() diff --git a/idea/idea-completion/testData/keywords/ThisPrefixMatching.kt b/idea/idea-completion/testData/keywords/ThisPrefixMatching.kt index b81c13a0cc7..6055c6fb6cd 100644 --- a/idea/idea-completion/testData/keywords/ThisPrefixMatching.kt +++ b/idea/idea-completion/testData/keywords/ThisPrefixMatching.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON fun is1(): Boolean{} fun is2(): Boolean{} diff --git a/idea/idea-completion/testData/keywords/TopScope.kt b/idea/idea-completion/testData/keywords/TopScope.kt index 6b8ea73b427..bacb71a9f2b 100644 --- a/idea/idea-completion/testData/keywords/TopScope.kt +++ b/idea/idea-completion/testData/keywords/TopScope.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects diff --git a/idea/idea-completion/testData/keywords/TopScope3-.kt b/idea/idea-completion/testData/keywords/TopScope3-.kt index fd56753c3b5..ca286ab899a 100644 --- a/idea/idea-completion/testData/keywords/TopScope3-.kt +++ b/idea/idea-completion/testData/keywords/TopScope3-.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects diff --git a/idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt b/idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt index d2d91ebf904..fe97b8f42c2 100644 --- a/idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt +++ b/idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON annotation class Ann class Completion(@get:Ann val p1: String, @) diff --git a/idea/idea-completion/testData/keywords/topScope2.kt b/idea/idea-completion/testData/keywords/topScope2.kt index fd56753c3b5..ca286ab899a 100644 --- a/idea/idea-completion/testData/keywords/topScope2.kt +++ b/idea/idea-completion/testData/keywords/topScope2.kt @@ -1,3 +1,4 @@ +// FIR_COMPARISON // COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces -XXLanguage:+MultiPlatformProjects diff --git a/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractFirKeywordCompletionTest.kt b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractFirKeywordCompletionTest.kt new file mode 100644 index 00000000000..5150a80453b --- /dev/null +++ b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/AbstractFirKeywordCompletionTest.kt @@ -0,0 +1,19 @@ +/* + * Copyright 2010-2021 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.AbstractKeywordCompletionTest +import org.jetbrains.kotlin.test.utils.IgnoreTests + +abstract class AbstractFirKeywordCompletionTest : AbstractKeywordCompletionTest() { + override val captureExceptions: Boolean = false + + override fun executeTest(test: () -> Unit) { + IgnoreTests.runTestIfEnabledByFileDirective(testDataFile().toPath(), IgnoreTests.DIRECTIVES.FIR_COMPARISON, ".after") { + super.executeTest(test) + } + } +} \ No newline at end of file diff --git a/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/FirKeywordCompletionTestGenerated.java b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/FirKeywordCompletionTestGenerated.java new file mode 100644 index 00000000000..f5200a0cbd7 --- /dev/null +++ b/idea/idea-fir/tests/org/jetbrains/kotlin/idea/completion/FirKeywordCompletionTestGenerated.java @@ -0,0 +1,606 @@ +/* + * Copyright 2010-2021 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.util.KtTestUtil; +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") +@TestMetadata("idea/idea-completion/testData/keywords") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class FirKeywordCompletionTestGenerated extends AbstractFirKeywordCompletionTest { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("AfterClassName.kt") + public void testAfterClassName() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterClassName.kt"); + } + + @TestMetadata("AfterClassProperty.kt") + public void testAfterClassProperty() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterClassProperty.kt"); + } + + @TestMetadata("AfterClasses.kt") + public void testAfterClasses() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterClasses.kt"); + } + + @TestMetadata("AfterClasses_LangLevel10.kt") + public void testAfterClasses_LangLevel10() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterClasses_LangLevel10.kt"); + } + + @TestMetadata("AfterClasses_LangLevel11.kt") + public void testAfterClasses_LangLevel11() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterClasses_LangLevel11.kt"); + } + + @TestMetadata("AfterDot.kt") + public void testAfterDot() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterDot.kt"); + } + + @TestMetadata("AfterFuns.kt") + public void testAfterFuns() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterFuns.kt"); + } + + @TestMetadata("AfterIf.kt") + public void testAfterIf() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterIf.kt"); + } + + @TestMetadata("AfterSafeDot.kt") + public void testAfterSafeDot() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterSafeDot.kt"); + } + + @TestMetadata("AfterSpaceAndDot.kt") + public void testAfterSpaceAndDot() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterSpaceAndDot.kt"); + } + + @TestMetadata("AfterTry.kt") + public void testAfterTry() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterTry.kt"); + } + + @TestMetadata("AfterTryCatch.kt") + public void testAfterTryCatch() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterTryCatch.kt"); + } + + @TestMetadata("AfterTryFinally.kt") + public void testAfterTryFinally() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterTryFinally.kt"); + } + + @TestMetadata("AfterTryInAssignment.kt") + public void testAfterTryInAssignment() throws Exception { + runTest("idea/idea-completion/testData/keywords/AfterTryInAssignment.kt"); + } + + public void testAllFilesPresentInKeywords() throws Exception { + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("idea/idea-completion/testData/keywords"), Pattern.compile("^(.+)\\.kt$"), null, false); + } + + @TestMetadata("BeforeClass.kt") + public void testBeforeClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/BeforeClass.kt"); + } + + @TestMetadata("BeforeDelegationCall.kt") + public void testBeforeDelegationCall() throws Exception { + runTest("idea/idea-completion/testData/keywords/BeforeDelegationCall.kt"); + } + + @TestMetadata("BreakContinue.kt") + public void testBreakContinue() throws Exception { + runTest("idea/idea-completion/testData/keywords/BreakContinue.kt"); + } + + @TestMetadata("BreakWithLabel.kt") + public void testBreakWithLabel() throws Exception { + runTest("idea/idea-completion/testData/keywords/BreakWithLabel.kt"); + } + + @TestMetadata("CommaExpected.kt") + public void testCommaExpected() throws Exception { + runTest("idea/idea-completion/testData/keywords/CommaExpected.kt"); + } + + @TestMetadata("CompanionObjectBeforeObject.kt") + public void testCompanionObjectBeforeObject() throws Exception { + runTest("idea/idea-completion/testData/keywords/CompanionObjectBeforeObject.kt"); + } + + @TestMetadata("ContinueWithLabel.kt") + public void testContinueWithLabel() throws Exception { + runTest("idea/idea-completion/testData/keywords/ContinueWithLabel.kt"); + } + + @TestMetadata("Else1.kt") + public void testElse1() throws Exception { + runTest("idea/idea-completion/testData/keywords/Else1.kt"); + } + + @TestMetadata("Else2.kt") + public void testElse2() throws Exception { + runTest("idea/idea-completion/testData/keywords/Else2.kt"); + } + + @TestMetadata("FileKeyword.kt") + public void testFileKeyword() throws Exception { + runTest("idea/idea-completion/testData/keywords/FileKeyword.kt"); + } + + @TestMetadata("FixingLayoutAndReturn.kt") + public void testFixingLayoutAndReturn() throws Exception { + runTest("idea/idea-completion/testData/keywords/FixingLayoutAndReturn.kt"); + } + + @TestMetadata("GlobalPropertyAccessors.kt") + public void testGlobalPropertyAccessors() throws Exception { + runTest("idea/idea-completion/testData/keywords/GlobalPropertyAccessors.kt"); + } + + @TestMetadata("IfTry.kt") + public void testIfTry() throws Exception { + runTest("idea/idea-completion/testData/keywords/IfTry.kt"); + } + + @TestMetadata("IfTryCatch.kt") + public void testIfTryCatch() throws Exception { + runTest("idea/idea-completion/testData/keywords/IfTryCatch.kt"); + } + + @TestMetadata("InAnnotationClassScope.kt") + public void testInAnnotationClassScope() throws Exception { + runTest("idea/idea-completion/testData/keywords/InAnnotationClassScope.kt"); + } + + @TestMetadata("InArgumentList.kt") + public void testInArgumentList() throws Exception { + runTest("idea/idea-completion/testData/keywords/InArgumentList.kt"); + } + + @TestMetadata("InBlockComment.kt") + public void testInBlockComment() throws Exception { + runTest("idea/idea-completion/testData/keywords/InBlockComment.kt"); + } + + @TestMetadata("InChar.kt") + public void testInChar() throws Exception { + runTest("idea/idea-completion/testData/keywords/InChar.kt"); + } + + @TestMetadata("InClassBeforeFun.kt") + public void testInClassBeforeFun() throws Exception { + runTest("idea/idea-completion/testData/keywords/InClassBeforeFun.kt"); + } + + @TestMetadata("InClassNoCompletionInValName.kt") + public void testInClassNoCompletionInValName() throws Exception { + runTest("idea/idea-completion/testData/keywords/InClassNoCompletionInValName.kt"); + } + + @TestMetadata("InClassProperty.kt") + public void testInClassProperty() throws Exception { + runTest("idea/idea-completion/testData/keywords/InClassProperty.kt"); + } + + @TestMetadata("InClassScope.kt") + public void testInClassScope() throws Exception { + runTest("idea/idea-completion/testData/keywords/InClassScope.kt"); + } + + @TestMetadata("InClassTypeParameters.kt") + public void testInClassTypeParameters() throws Exception { + runTest("idea/idea-completion/testData/keywords/InClassTypeParameters.kt"); + } + + @TestMetadata("InCodeBlock.kt") + public void testInCodeBlock() throws Exception { + runTest("idea/idea-completion/testData/keywords/InCodeBlock.kt"); + } + + @TestMetadata("InElse.kt") + public void testInElse() throws Exception { + runTest("idea/idea-completion/testData/keywords/InElse.kt"); + } + + @TestMetadata("InEnumScope1.kt") + public void testInEnumScope1() throws Exception { + runTest("idea/idea-completion/testData/keywords/InEnumScope1.kt"); + } + + @TestMetadata("InEnumScope2.kt") + public void testInEnumScope2() throws Exception { + runTest("idea/idea-completion/testData/keywords/InEnumScope2.kt"); + } + + @TestMetadata("InFunctionExpressionBody.kt") + public void testInFunctionExpressionBody() throws Exception { + runTest("idea/idea-completion/testData/keywords/InFunctionExpressionBody.kt"); + } + + @TestMetadata("InFunctionName.kt") + public void testInFunctionName() throws Exception { + runTest("idea/idea-completion/testData/keywords/InFunctionName.kt"); + } + + @TestMetadata("InFunctionRecieverType.kt") + public void testInFunctionRecieverType() throws Exception { + runTest("idea/idea-completion/testData/keywords/InFunctionRecieverType.kt"); + } + + @TestMetadata("InFunctionTypePosition.kt") + public void testInFunctionTypePosition() throws Exception { + runTest("idea/idea-completion/testData/keywords/InFunctionTypePosition.kt"); + } + + @TestMetadata("InGetterExpressionBody.kt") + public void testInGetterExpressionBody() throws Exception { + runTest("idea/idea-completion/testData/keywords/InGetterExpressionBody.kt"); + } + + @TestMetadata("InIf.kt") + public void testInIf() throws Exception { + runTest("idea/idea-completion/testData/keywords/InIf.kt"); + } + + @TestMetadata("InInterfaceScope.kt") + public void testInInterfaceScope() throws Exception { + runTest("idea/idea-completion/testData/keywords/InInterfaceScope.kt"); + } + + @TestMetadata("InMemberFunParametersList.kt") + public void testInMemberFunParametersList() throws Exception { + runTest("idea/idea-completion/testData/keywords/InMemberFunParametersList.kt"); + } + + @TestMetadata("InModifierListInsideClass.kt") + public void testInModifierListInsideClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/InModifierListInsideClass.kt"); + } + + @TestMetadata("InNotFinishedGenericWithFunAfter.kt") + public void testInNotFinishedGenericWithFunAfter() throws Exception { + runTest("idea/idea-completion/testData/keywords/InNotFinishedGenericWithFunAfter.kt"); + } + + @TestMetadata("InObjectScope.kt") + public void testInObjectScope() throws Exception { + runTest("idea/idea-completion/testData/keywords/InObjectScope.kt"); + } + + @TestMetadata("InParameterDefaultValue.kt") + public void testInParameterDefaultValue() throws Exception { + runTest("idea/idea-completion/testData/keywords/InParameterDefaultValue.kt"); + } + + @TestMetadata("InPrimaryConstructorParametersList.kt") + public void testInPrimaryConstructorParametersList() throws Exception { + runTest("idea/idea-completion/testData/keywords/InPrimaryConstructorParametersList.kt"); + } + + @TestMetadata("InPropertyInitializer.kt") + public void testInPropertyInitializer() throws Exception { + runTest("idea/idea-completion/testData/keywords/InPropertyInitializer.kt"); + } + + @TestMetadata("InPropertyTypeReference.kt") + public void testInPropertyTypeReference() throws Exception { + runTest("idea/idea-completion/testData/keywords/InPropertyTypeReference.kt"); + } + + @TestMetadata("InString.kt") + public void testInString() throws Exception { + runTest("idea/idea-completion/testData/keywords/InString.kt"); + } + + @TestMetadata("InTopFunParametersList.kt") + public void testInTopFunParametersList() throws Exception { + runTest("idea/idea-completion/testData/keywords/InTopFunParametersList.kt"); + } + + @TestMetadata("InTopScopeAfterPackage.kt") + public void testInTopScopeAfterPackage() throws Exception { + runTest("idea/idea-completion/testData/keywords/InTopScopeAfterPackage.kt"); + } + + @TestMetadata("InTypePosition.kt") + public void testInTypePosition() throws Exception { + runTest("idea/idea-completion/testData/keywords/InTypePosition.kt"); + } + + @TestMetadata("LabeledLambdaThis.kt") + public void testLabeledLambdaThis() throws Exception { + runTest("idea/idea-completion/testData/keywords/LabeledLambdaThis.kt"); + } + + @TestMetadata("LineComment.kt") + public void testLineComment() throws Exception { + runTest("idea/idea-completion/testData/keywords/LineComment.kt"); + } + + @TestMetadata("NoBreak1.kt") + public void testNoBreak1() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoBreak1.kt"); + } + + @TestMetadata("NoBreak2.kt") + public void testNoBreak2() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoBreak2.kt"); + } + + @TestMetadata("NoCompanionThis.kt") + public void testNoCompanionThis() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoCompanionThis.kt"); + } + + @TestMetadata("NoCompletionForCapitalPrefix.kt") + public void testNoCompletionForCapitalPrefix() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoCompletionForCapitalPrefix.kt"); + } + + @TestMetadata("NoContinue.kt") + public void testNoContinue() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoContinue.kt"); + } + + @TestMetadata("NoFinalInParameterList.kt") + public void testNoFinalInParameterList() throws Exception { + runTest("idea/idea-completion/testData/keywords/NoFinalInParameterList.kt"); + } + + @TestMetadata("NotInNotIs.kt") + public void testNotInNotIs() throws Exception { + runTest("idea/idea-completion/testData/keywords/NotInNotIs.kt"); + } + + @TestMetadata("NotInNotIs2.kt") + public void testNotInNotIs2() throws Exception { + runTest("idea/idea-completion/testData/keywords/NotInNotIs2.kt"); + } + + @TestMetadata("PrefixMatcher.kt") + public void testPrefixMatcher() throws Exception { + runTest("idea/idea-completion/testData/keywords/PrefixMatcher.kt"); + } + + @TestMetadata("PropertyAccessors.kt") + public void testPropertyAccessors() throws Exception { + runTest("idea/idea-completion/testData/keywords/PropertyAccessors.kt"); + } + + @TestMetadata("PropertyAccessors2.kt") + public void testPropertyAccessors2() throws Exception { + runTest("idea/idea-completion/testData/keywords/PropertyAccessors2.kt"); + } + + @TestMetadata("PropertySetter.kt") + public void testPropertySetter() throws Exception { + runTest("idea/idea-completion/testData/keywords/PropertySetter.kt"); + } + + @TestMetadata("QualifiedThis.kt") + public void testQualifiedThis() throws Exception { + runTest("idea/idea-completion/testData/keywords/QualifiedThis.kt"); + } + + @TestMetadata("QualifiedThisInAccessor.kt") + public void testQualifiedThisInAccessor() throws Exception { + runTest("idea/idea-completion/testData/keywords/QualifiedThisInAccessor.kt"); + } + + @TestMetadata("Receiver.kt") + public void testReceiver() throws Exception { + runTest("idea/idea-completion/testData/keywords/Receiver.kt"); + } + + @TestMetadata("Return1.kt") + public void testReturn1() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return1.kt"); + } + + @TestMetadata("Return2.kt") + public void testReturn2() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return2.kt"); + } + + @TestMetadata("Return3.kt") + public void testReturn3() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return3.kt"); + } + + @TestMetadata("Return4.kt") + public void testReturn4() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return4.kt"); + } + + @TestMetadata("Return5.kt") + public void testReturn5() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return5.kt"); + } + + @TestMetadata("Return6.kt") + public void testReturn6() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return6.kt"); + } + + @TestMetadata("Return7.kt") + public void testReturn7() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return7.kt"); + } + + @TestMetadata("Return8.kt") + public void testReturn8() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return8.kt"); + } + + @TestMetadata("Return9.kt") + public void testReturn9() throws Exception { + runTest("idea/idea-completion/testData/keywords/Return9.kt"); + } + + @TestMetadata("ReturnBoolean.kt") + public void testReturnBoolean() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnBoolean.kt"); + } + + @TestMetadata("ReturnCollection.kt") + public void testReturnCollection() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnCollection.kt"); + } + + @TestMetadata("ReturnIterable.kt") + public void testReturnIterable() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnIterable.kt"); + } + + @TestMetadata("ReturnKeywordName.kt") + public void testReturnKeywordName() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnKeywordName.kt"); + } + + @TestMetadata("ReturnList.kt") + public void testReturnList() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnList.kt"); + } + + @TestMetadata("ReturnNotNull.kt") + public void testReturnNotNull() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnNotNull.kt"); + } + + @TestMetadata("ReturnNull.kt") + public void testReturnNull() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnNull.kt"); + } + + @TestMetadata("ReturnNullableBoolean.kt") + public void testReturnNullableBoolean() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnNullableBoolean.kt"); + } + + @TestMetadata("ReturnSet.kt") + public void testReturnSet() throws Exception { + runTest("idea/idea-completion/testData/keywords/ReturnSet.kt"); + } + + @TestMetadata("SealedForAlreadySealed.kt") + public void testSealedForAlreadySealed() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForAlreadySealed.kt"); + } + + @TestMetadata("SealedForAnnotationClass.kt") + public void testSealedForAnnotationClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForAnnotationClass.kt"); + } + + @TestMetadata("SealedForDataClass.kt") + public void testSealedForDataClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForDataClass.kt"); + } + + @TestMetadata("SealedForDeclaredClass.kt") + public void testSealedForDeclaredClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForDeclaredClass.kt"); + } + + @TestMetadata("SealedForDeclaredInterface.kt") + public void testSealedForDeclaredInterface() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForDeclaredInterface.kt"); + } + + @TestMetadata("SealedForEnumClass.kt") + public void testSealedForEnumClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForEnumClass.kt"); + } + + @TestMetadata("SealedForFunInterface.kt") + public void testSealedForFunInterface() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForFunInterface.kt"); + } + + @TestMetadata("SealedForInnerClass.kt") + public void testSealedForInnerClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForInnerClass.kt"); + } + + @TestMetadata("SealedForOpenClass.kt") + public void testSealedForOpenClass() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedForOpenClass.kt"); + } + + @TestMetadata("SealedWithName.kt") + public void testSealedWithName() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedWithName.kt"); + } + + @TestMetadata("SealedWithoutName.kt") + public void testSealedWithoutName() throws Exception { + runTest("idea/idea-completion/testData/keywords/SealedWithoutName.kt"); + } + + @TestMetadata("SuspendInParameterTypePosition.kt") + public void testSuspendInParameterTypePosition() throws Exception { + runTest("idea/idea-completion/testData/keywords/SuspendInParameterTypePosition.kt"); + } + + @TestMetadata("SuspendInsideTypeArguments.kt") + public void testSuspendInsideTypeArguments() throws Exception { + runTest("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments.kt"); + } + + @TestMetadata("SuspendInsideTypeArguments1.kt") + public void testSuspendInsideTypeArguments1() throws Exception { + runTest("idea/idea-completion/testData/keywords/SuspendInsideTypeArguments1.kt"); + } + + @TestMetadata("This.kt") + public void testThis() throws Exception { + runTest("idea/idea-completion/testData/keywords/This.kt"); + } + + @TestMetadata("ThisPrefixMatching.kt") + public void testThisPrefixMatching() throws Exception { + runTest("idea/idea-completion/testData/keywords/ThisPrefixMatching.kt"); + } + + @TestMetadata("TopScope.kt") + public void testTopScope() throws Exception { + runTest("idea/idea-completion/testData/keywords/TopScope.kt"); + } + + @TestMetadata("topScope2.kt") + public void testTopScope2() throws Exception { + runTest("idea/idea-completion/testData/keywords/topScope2.kt"); + } + + @TestMetadata("TopScope3-.kt") + public void testTopScope3_() throws Exception { + runTest("idea/idea-completion/testData/keywords/TopScope3-.kt"); + } + + @TestMetadata("UseSiteTargetForPrimaryConstructorParameter.kt") + public void testUseSiteTargetForPrimaryConstructorParameter() throws Exception { + runTest("idea/idea-completion/testData/keywords/UseSiteTargetForPrimaryConstructorParameter.kt"); + } +}