[kotlin] drop kotlin.fir.fir-low-level-api-ide-impl module

This module has only LL FIR tests which should be moved into kotlin repo

^KT-64687

GitOrigin-RevId: 43ed98859ed96d7e17e4dfc87f3106d2b95906cb
This commit is contained in:
Dmitrii Gridin
2024-10-04 14:30:23 +02:00
committed by intellij-monorepo-bot
parent c138f784b5
commit 7eeff0ea11
55 changed files with 0 additions and 572 deletions

1
.idea/modules.xml generated
View File

@@ -1126,7 +1126,6 @@
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml" filepath="$PROJECT_DIR$/plugins/kotlin/features-trainer/tests/kotlin.features-trainer.tests.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/fir/kotlin.fir.iml" filepath="$PROJECT_DIR$/plugins/kotlin/fir/kotlin.fir.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/all-tests-fir/kotlin.fir-all-tests.iml" filepath="$PROJECT_DIR$/plugins/kotlin/all-tests-fir/kotlin.fir-all-tests.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/fir-low-level-api-ide-impl/kotlin.fir.fir-low-level-api-ide-impl.iml" filepath="$PROJECT_DIR$/plugins/kotlin/fir-low-level-api-ide-impl/kotlin.fir.fir-low-level-api-ide-impl.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/frontend-independent/kotlin.fir.frontend-independent.iml" filepath="$PROJECT_DIR$/plugins/kotlin/frontend-independent/kotlin.fir.frontend-independent.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/fir/tests/kotlin.fir.tests.iml" filepath="$PROJECT_DIR$/plugins/kotlin/fir/tests/kotlin.fir.tests.iml" />
<module fileurl="file://$PROJECT_DIR$/plugins/kotlin/formatter/kotlin.formatter.iml" filepath="$PROJECT_DIR$/plugins/kotlin/formatter/kotlin.formatter.iml" />

View File

@@ -188,7 +188,6 @@ object KotlinPluginBuilder {
"kotlin.highlighting.k2",
"kotlin.uast.uast-kotlin.k2",
"kotlin.uast.uast-kotlin-idea.k2",
"kotlin.fir.fir-low-level-api-ide-impl",
"kotlin.navigation",
"kotlin.refactorings.common",
"kotlin.refactorings.k2",

View File

@@ -15,7 +15,6 @@
<orderEntry type="module" module-name="kotlin.project-wizard.core" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.fir.tests" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin.k2" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.fir.fir-low-level-api-ide-impl" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.project-wizard.cli" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.project-wizard.compose" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.gradle.gradle-java" scope="RUNTIME" />

View File

@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="kotlin.plugin.k2" scope="TEST" />
<orderEntry type="module" module-name="intellij.platform.core" />
<orderEntry type="library" name="kotlin-stdlib" level="project" />
<orderEntry type="library" name="kotlinc.kotlin-compiler-common" level="project" />
<orderEntry type="library" name="kotlinc.kotlin-compiler-fir" level="project" />
<orderEntry type="library" scope="TEST" name="kotlinc.kotlin-compiler-cli" level="project" />
<orderEntry type="library" scope="TEST" name="kotlinc.kotlin-compiler-tests" level="project" />
<orderEntry type="library" name="kotlinc.analysis-api" level="project" />
<orderEntry type="library" name="kotlinc.low-level-api-fir" level="project" />
<orderEntry type="library" scope="TEST" name="gson" level="project" />
<orderEntry type="module" module-name="kotlin.base.util" />
<orderEntry type="module" module-name="kotlin.base.psi" />
<orderEntry type="module" module-name="kotlin.base.analysis" />
<orderEntry type="module" module-name="kotlin.tests-common" scope="TEST" />
<orderEntry type="module" module-name="kotlin.test-framework" scope="TEST" />
<orderEntry type="module" module-name="kotlin.idea.tests" scope="TEST" />
<orderEntry type="module" module-name="intellij.platform.core.impl" />
<orderEntry type="module" module-name="intellij.platform.projectModel" />
<orderEntry type="module" module-name="kotlin.core" />
<orderEntry type="module" module-name="intellij.platform.indexing" />
<orderEntry type="module" module-name="intellij.java.psi" />
<orderEntry type="module" module-name="intellij.platform.serviceContainer" />
<orderEntry type="module" module-name="intellij.platform.projectModel.impl" />
<orderEntry type="module" module-name="kotlin.fir.frontend-independent" />
<orderEntry type="library" name="Guava" level="project" />
<orderEntry type="library" name="kotlinx-collections-immutable" level="project" />
<orderEntry type="module" module-name="intellij.java.indexing" />
<orderEntry type="module" module-name="intellij.java.psi.impl" />
<orderEntry type="module" module-name="kotlin.fir" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.fir.tests" scope="TEST" />
<orderEntry type="module" module-name="kotlin.base.indices" scope="TEST" />
<orderEntry type="module" module-name="kotlin.searching.k2" />
<orderEntry type="module" module-name="kotlin.base.plugin" scope="TEST" />
<orderEntry type="library" scope="TEST" name="opentest4j" level="project" />
</component>
</module>

View File

@@ -1,64 +0,0 @@
/*
* 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.fir.low.level.api
import com.intellij.psi.search.GlobalSearchScope
import org.jetbrains.kotlin.analysis.low.level.api.fir.api.resolveToFirSymbol
import org.jetbrains.kotlin.fir.declarations.FirResolvePhase
import org.jetbrains.kotlin.fir.renderer.FirRenderer
import org.jetbrains.kotlin.fir.symbols.SymbolInternals
import org.jetbrains.kotlin.idea.base.test.InTextDirectivesUtils
import org.jetbrains.kotlin.idea.fir.resolveWithClearCaches
import org.jetbrains.kotlin.idea.stubindex.KotlinFullClassNameIndex
import org.jetbrains.kotlin.idea.test.*
import org.jetbrains.kotlin.psi.KtDeclaration
import org.jetbrains.kotlin.psi.KtFile
import java.io.File
abstract class AbstractFirLibraryModuleDeclarationResolveTest : KotlinLightCodeInsightFixtureTestCase() {
override fun getDefaultProjectDescriptor(): KotlinLightProjectDescriptor {
return KotlinWithJdkAndRuntimeLightProjectDescriptor.getInstance()
}
/**
* We want to check that resolving 'compiled' PSI-elements (i.e. elements from libraries)
* works as expected.
*
* Compiled PSI-elements might come from indices, for example, and we need to be able to work with them
* and to resolve them to FIR declarations.
*/
@OptIn(SymbolInternals::class)
fun doTest(path: String) {
val testDataFile = File(path)
val expectedFile = File(path.removeSuffix(".kt") + ".txt")
val ktFile = myFixture.configureByFile(testDataFile.name) as KtFile
val fileText = ktFile.text
val classNames = InTextDirectivesUtils.findLinesWithPrefixesRemoved(fileText, "LOAD_AST:")
for (className in classNames) {
KotlinFullClassNameIndex[className, project, GlobalSearchScope.allScope(project)].first {it.containingKtFile.isCompiled}.text
}
val caretResolutionTarget = ktFile.findReferenceAt(myFixture.caretOffset)?.resolve()
require(caretResolutionTarget != null) {
"No reference at caret."
}
require(caretResolutionTarget is KtDeclaration) {
"Element at caret should be referencing some declaration, but referenced ${caretResolutionTarget::class} instead"
}
// We intentionally use ktFile here as a context element, because resolving
// from compiled PSI-elements (e.g. caretResolutionTarget) is not yet supported
resolveWithClearCaches(ktFile) { resolveState ->
val firSymbol = caretResolutionTarget.resolveToFirSymbol(resolveState, FirResolvePhase.TYPES)
val renderedDeclaration = FirRenderer.withResolvePhase().renderElementAsString(firSymbol.fir)
KotlinTestUtils.assertEqualsToFile(expectedFile, renderedDeclaration)
}
}
}

View File

@@ -1,132 +0,0 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.fir.low.level.api;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.idea.base.plugin.KotlinPluginMode;
import org.jetbrains.kotlin.idea.base.test.TestRoot;
import org.jetbrains.kotlin.idea.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.idea.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;
/**
* This class is generated by {@link org.jetbrains.kotlin.testGenerator.generator.TestGenerator}.
* DO NOT MODIFY MANUALLY.
*/
@SuppressWarnings("all")
@TestRoot("fir-low-level-api-ide-impl")
@TestDataPath("$CONTENT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/libraryModuleResolve")
public class FirLibraryModuleDeclarationResolveTestGenerated extends AbstractFirLibraryModuleDeclarationResolveTest {
@java.lang.Override
@org.jetbrains.annotations.NotNull
public final KotlinPluginMode getPluginMode() {
return KotlinPluginMode.K2;
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("annotationArgs.kt")
public void testAnnotationArgs() throws Exception {
runTest("testData/libraryModuleResolve/annotationArgs.kt");
}
@TestMetadata("companionObject.kt")
public void testCompanionObject() throws Exception {
runTest("testData/libraryModuleResolve/companionObject.kt");
}
@TestMetadata("dataClass.kt")
public void testDataClass() throws Exception {
runTest("testData/libraryModuleResolve/dataClass.kt");
}
@TestMetadata("enumEntry.kt")
public void testEnumEntry() throws Exception {
runTest("testData/libraryModuleResolve/enumEntry.kt");
}
@TestMetadata("flexibleTypes.kt")
public void testFlexibleTypes() throws Exception {
runTest("testData/libraryModuleResolve/flexibleTypes.kt");
}
@TestMetadata("implicitJavaTypes_listOfStrings.kt")
public void testImplicitJavaTypes_listOfStrings() throws Exception {
runTest("testData/libraryModuleResolve/implicitJavaTypes_listOfStrings.kt");
}
@TestMetadata("implicitJavaTypes_string.kt")
public void testImplicitJavaTypes_string() throws Exception {
runTest("testData/libraryModuleResolve/implicitJavaTypes_string.kt");
}
@TestMetadata("implicitJavaTypes_stringFun.kt")
public void testImplicitJavaTypes_stringFun() throws Exception {
runTest("testData/libraryModuleResolve/implicitJavaTypes_stringFun.kt");
}
@TestMetadata("innerClasses.kt")
public void testInnerClasses() throws Exception {
runTest("testData/libraryModuleResolve/innerClasses.kt");
}
@TestMetadata("memberFunctionNoArgs.kt")
public void testMemberFunctionNoArgs() throws Exception {
runTest("testData/libraryModuleResolve/memberFunctionNoArgs.kt");
}
@TestMetadata("memberFunctionWithArgs.kt")
public void testMemberFunctionWithArgs() throws Exception {
runTest("testData/libraryModuleResolve/memberFunctionWithArgs.kt");
}
@TestMetadata("memberProperty.kt")
public void testMemberProperty() throws Exception {
runTest("testData/libraryModuleResolve/memberProperty.kt");
}
@TestMetadata("object.kt")
public void testObject() throws Exception {
runTest("testData/libraryModuleResolve/object.kt");
}
@TestMetadata("requireCall.kt")
public void testRequireCall() throws Exception {
runTest("testData/libraryModuleResolve/requireCall.kt");
}
@TestMetadata("topLevelClass.kt")
public void testTopLevelClass() throws Exception {
runTest("testData/libraryModuleResolve/topLevelClass.kt");
}
@TestMetadata("topLevelClassPrimaryConstructor.kt")
public void testTopLevelClassPrimaryConstructor() throws Exception {
runTest("testData/libraryModuleResolve/topLevelClassPrimaryConstructor.kt");
}
@TestMetadata("topLevelClassSecondaryConstructor.kt")
public void testTopLevelClassSecondaryConstructor() throws Exception {
runTest("testData/libraryModuleResolve/topLevelClassSecondaryConstructor.kt");
}
@TestMetadata("topLevelFunctionNoArgs.kt")
public void testTopLevelFunctionNoArgs() throws Exception {
runTest("testData/libraryModuleResolve/topLevelFunctionNoArgs.kt");
}
@TestMetadata("topLevelFunctionWithArgs.kt")
public void testTopLevelFunctionWithArgs() throws Exception {
runTest("testData/libraryModuleResolve/topLevelFunctionWithArgs.kt");
}
@TestMetadata("topLevelProperty.kt")
public void testTopLevelProperty() throws Exception {
runTest("testData/libraryModuleResolve/topLevelProperty.kt");
}
}

View File

@@ -1,9 +0,0 @@
package implicitJavaTypes
// this file contains kotlin declarations with implicit types inferred from java declarations
var listOfStrings = java.util.Arrays.asList("hello")
var string = listOfStrings.get(0)
fun stringFun() = string

View File

@@ -1,38 +0,0 @@
package library
fun topLevelFunction() {}
fun topLevelFunction(s: String) {}
val topLevelProperty: Int = 0
class TopLevelClass() {
constructor(s: String) : this() {}
fun memberFunction() {}
fun memberFunction(s: String) {}
val memberProperty: Int = 0
}
enum class TopLevelEnum {
ENTRY1,
ENTRY2,
ENTRY3,
}
object TopLevelObject {
fun objectFunction() {}
}
class ClassWithImplicitConstructorAndCompanion {
companion object {
}
}
data class MyDataClass(val c: Int) {
val a: String get() = ""
}

View File

@@ -1,31 +0,0 @@
@file:OptIn(ExperimentalContracts::class)
package library
import kotlin.contracts.*
class FunctionWithContract() {
public inline fun require(value: Boolean): Unit {
contract {
returns() implies value
}
if (!value) {
throw IllegalArgumentException()
}
}
}
annotation class Anno(val name: String)
@Anno("WithFoo")
class WithAnno {}
class WithInner {
inner class Inner {}
fun foo(): Inner = Inner()
}
class WithFlexibleTypes {
val str = java.util.Arrays.asList("hello").get(0)
}

View File

@@ -1,9 +0,0 @@
// WITH_LIBRARY: _library
// LOAD_AST: library.WithAnno
package test
import library.WithAnno
fun usage() {
val w: With<caret>Anno? = null
}

View File

@@ -1,4 +0,0 @@
@R|library/Anno|(name = String(WithFoo)) public final [ResolvedTo(BODY_RESOLVE)] class WithAnno : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|library/WithAnno|
}

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.ClassWithImplicitConstructorAndCompanion
fun usage() {
val a: ClassWit<caret>hImplicitConstructorAndCompanion
}

View File

@@ -1,7 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] class ClassWithImplicitConstructorAndCompanion : R|kotlin/Any| {
public final companion [ResolvedTo(BODY_RESOLVE)] object Companion : R|kotlin/Any| {
}
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|library/ClassWithImplicitConstructorAndCompanion|
}

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.MyDataClass
fun usage() {
val t: MyDataC<caret>lass
}

View File

@@ -1,20 +0,0 @@
public final data [ResolvedTo(BODY_RESOLVE)] class MyDataClass : R|kotlin/Any| {
public final operator [ResolvedTo(BODY_RESOLVE)] fun component1(): R|kotlin/Int|
public final [ResolvedTo(BODY_RESOLVE)] fun copy([ResolvedTo(BODY_RESOLVE)] c: R|kotlin/Int| = STUB): R|library/MyDataClass|
public open operator [ResolvedTo(BODY_RESOLVE)] fun equals([ResolvedTo(BODY_RESOLVE)] other: R|kotlin/Any?|): R|kotlin/Boolean|
public open [ResolvedTo(BODY_RESOLVE)] fun hashCode(): R|kotlin/Int|
public open [ResolvedTo(BODY_RESOLVE)] fun toString(): R|kotlin/String|
public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/String|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String|
public final [ResolvedTo(BODY_RESOLVE)] val c: R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] c: R|kotlin/Int|): R|library/MyDataClass|
}

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelEnum
fun usage() {
val a = TopLevelEnum.<caret>ENTRY1
}

View File

@@ -1 +0,0 @@
public final static [ResolvedTo(BODY_RESOLVE)] enum entry ENTRY1: R|library/TopLevelEnum|

View File

@@ -1,9 +0,0 @@
// WITH_LIBRARY: _library
// LOAD_AST: library.WithFlexibleTypes
package test
import library.WithFlexibleTypes
fun usage() {
WithFlexibleTypes().s<caret>tr
}

View File

@@ -1,2 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] val str: R|kotlin/String!|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String!|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import implicitJavaTypes.listOfStrings
fun usage() {
list<caret>OfStrings
}

View File

@@ -1,3 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] var listOfStrings: R|ft<kotlin/collections/MutableList<kotlin/String!>, kotlin/collections/List<kotlin/String!>?>|
public [ResolvedTo(BODY_RESOLVE)] get(): R|ft<kotlin/collections/MutableList<kotlin/String!>, kotlin/collections/List<kotlin/String!>?>|
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|ft<kotlin/collections/MutableList<kotlin/String!>, kotlin/collections/List<kotlin/String!>?>|): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import implicitJavaTypes.string
fun usage() {
st<caret>ring
}

View File

@@ -1,3 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] var string: R|kotlin/String!|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String!|
public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String!|): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import implicitJavaTypes.stringFun
fun usage() {
st<caret>ringFun()
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun stringFun(): R|kotlin/String!|

View File

@@ -1,9 +0,0 @@
// WITH_LIBRARY: _library
// LOAD_AST: library.WithInner
package test
import library.WithInner
fun usage() {
WithInner().f<caret>oo()
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|library/WithInner.Inner|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
TopLevelClass().<caret>memberFunction()
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun memberFunction(): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
TopLevelClass().<caret>memberFunction("")
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun memberFunction([ResolvedTo(BODY_RESOLVE)] s: R|kotlin/String|): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
val a = TopLevelClass().<caret>memberProperty
}

View File

@@ -1,2 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] val memberProperty: R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelObject
fun usage() {
TopLe<caret>velObject
}

View File

@@ -1,4 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] object TopLevelObject : R|kotlin/Any| {
public final [ResolvedTo(BODY_RESOLVE)] fun objectFunction(): R|kotlin/Unit|
}

View File

@@ -1,9 +0,0 @@
// WITH_LIBRARY: _library
// LOAD_AST: library.FunctionWithContract
package test
import library.FunctionWithContract
fun usage() {
FunctionWithContract().re<caret>quire(true)
}

View File

@@ -1,5 +0,0 @@
public final inline [ResolvedTo(BODY_RESOLVE)] fun require([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Boolean|): R|kotlin/Unit|
[R|Contract description]
<
Returns(WILDCARD) -> value
>

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
val a: <caret>TopLevelClass
}

View File

@@ -1,13 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] class TopLevelClass : R|kotlin/Any| {
public final [ResolvedTo(BODY_RESOLVE)] fun memberFunction(): R|kotlin/Unit|
public final [ResolvedTo(BODY_RESOLVE)] fun memberFunction([ResolvedTo(BODY_RESOLVE)] s: R|kotlin/String|): R|kotlin/Unit|
public final [ResolvedTo(BODY_RESOLVE)] val memberProperty: R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|library/TopLevelClass|
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] s: R|kotlin/String|): R|library/TopLevelClass|
}

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
val a = <caret>TopLevelClass()
}

View File

@@ -1 +0,0 @@
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|library/TopLevelClass|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.TopLevelClass
fun usage() {
val a = <caret>TopLevelClass("arg")
}

View File

@@ -1 +0,0 @@
public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] s: R|kotlin/String|): R|library/TopLevelClass|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.topLevelFunction
fun usage() {
<caret>topLevelFunction()
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun topLevelFunction(): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.topLevelFunction
fun usage() {
<caret>topLevelFunction("")
}

View File

@@ -1 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] fun topLevelFunction([ResolvedTo(BODY_RESOLVE)] s: R|kotlin/String|): R|kotlin/Unit|

View File

@@ -1,8 +0,0 @@
// WITH_LIBRARY: _library
package test
import library.topLevelProperty
fun usage() {
val a = <caret>topLevelProperty
}

View File

@@ -1,2 +0,0 @@
public final [ResolvedTo(BODY_RESOLVE)] val topLevelProperty: R|kotlin/Int|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int|

View File

@@ -61,7 +61,6 @@
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin.k2" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.java.analysis" scope="RUNTIME" />
<orderEntry type="module" module-name="intellij.platform.execution.impl" />
<orderEntry type="module" module-name="kotlin.fir.fir-low-level-api-ide-impl" scope="RUNTIME" />
<orderEntry type="library" name="kotlinc.analysis-api-platform-interface" level="project" />
<orderEntry type="library" scope="RUNTIME" name="kotlinc.symbol-light-classes" level="project" />
<orderEntry type="module" module-name="intellij.java.impl" />

View File

@@ -96,7 +96,6 @@
<orderEntry type="module" module-name="kotlin.core" exported="" />
<orderEntry type="module" module-name="kotlin.jvm-debugger.eval4j" exported="" />
<orderEntry type="module" module-name="kotlin.fir.frontend-independent" exported="" />
<orderEntry type="module" module-name="kotlin.fir.fir-low-level-api-ide-impl" exported="" />
<orderEntry type="module" module-name="kotlin.fir" exported="" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin.k2" exported="" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin-idea.k2" exported="" />

View File

@@ -69,7 +69,6 @@
<orderEntry type="module" module-name="kotlin.run-configurations.jvm" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.scripting" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.spellchecker" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.fir.fir-low-level-api-ide-impl" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin.k2" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin-idea.k2" scope="RUNTIME" />
<orderEntry type="module" module-name="kotlin.base.fir.analysis-api-platform" scope="RUNTIME" />

View File

@@ -248,7 +248,6 @@
- name: kotlin.highlighting.k2
- name: kotlin.uast.uast-kotlin.k2
- name: kotlin.uast.uast-kotlin-idea.k2
- name: kotlin.fir.fir-low-level-api-ide-impl
- name: kotlin.navigation
- name: kotlin.refactorings.common
- name: kotlin.refactorings.k2

View File

@@ -43,7 +43,6 @@
<orderEntry type="module" module-name="kotlin.project-wizard.tests" scope="TEST" />
<orderEntry type="module" module-name="kotlin.j2k.k1.new.tests" scope="TEST" />
<orderEntry type="module" module-name="kotlin.j2k.k2.tests" scope="TEST" />
<orderEntry type="module" module-name="kotlin.fir.fir-low-level-api-ide-impl" scope="TEST" />
<orderEntry type="module" module-name="kotlin.uast.uast-kotlin.k2.tests" scope="TEST" />
<orderEntry type="module" module-name="kotlin.tests-common" scope="TEST" />
<orderEntry type="module" module-name="kotlin.test-framework" scope="TEST" />

View File

@@ -31,7 +31,6 @@ import org.jetbrains.kotlin.idea.fir.imports.AbstractFirJvmOptimizeImportsTest
import org.jetbrains.kotlin.idea.fir.imports.AbstractK2AutoImportTest
import org.jetbrains.kotlin.idea.fir.imports.AbstractK2FilteringAutoImportTest
import org.jetbrains.kotlin.idea.fir.kmp.AbstractK2KmpLightFixtureHighlightingTest
import org.jetbrains.kotlin.idea.fir.low.level.api.AbstractFirLibraryModuleDeclarationResolveTest
import org.jetbrains.kotlin.idea.fir.navigation.AbstractFirGotoDeclarationTest
import org.jetbrains.kotlin.idea.fir.navigation.AbstractFirGotoRelatedSymbolMultiModuleTest
import org.jetbrains.kotlin.idea.fir.navigation.AbstractFirGotoTest
@@ -126,12 +125,6 @@ private fun assembleWorkspace(): TWorkspace = workspace(KotlinPluginMode.K2) {
}
}
testGroup("fir-low-level-api-ide-impl") {
testClass<AbstractFirLibraryModuleDeclarationResolveTest> {
model("libraryModuleResolve", isRecursive = false)
}
}
testGroup("fir/tests", testDataPath = "../../idea/tests/testData", category = CODE_INSIGHT) {
testClass<AbstractK2AddImportActionTest> {
model("idea/actions/kotlinAddImportAction", pattern = KT_WITHOUT_DOTS)