FIR IDE: move low level api testdata sources to the analysis directory

This commit is contained in:
Ilya Kirillov
2021-09-14 16:39:48 +02:00
parent 633b0fa612
commit 989f3248e4
371 changed files with 0 additions and 0 deletions
@@ -0,0 +1,5 @@
package a;
public interface KtDeclaration extends KtElement {
}
@@ -0,0 +1,4 @@
package a
interface KtElement : KtPureElement {
}
@@ -0,0 +1,3 @@
package a
open class KtFile
@@ -0,0 +1,6 @@
package a;
public interface KtPureElement {
KtFile getContainingKtFile();
}
@@ -0,0 +1,5 @@
FILE: main.kt
public final val R|a/KtElement|.fqNameWithoutCompanions: R|a/KtFile|
public get(): R|a/KtFile| {
^ this@R|/fqNameWithoutCompanions|.R|a/KtPureElement.containingKtFile|
}
@@ -0,0 +1,4 @@
import a.*
val KtDeclaration.fqNameWithoutCompanions: KtFile
get() = containingKtFile
@@ -0,0 +1,8 @@
{
"modules" : [
{ "name": "main", "dependsOn": ["dependency"] },
{ "name": "dependency" }
],
"fileToResolve": { "module": "main", "file": "main.kt" },
"fails": true
}
@@ -0,0 +1,8 @@
interface A
interface X : A
interface Y : A
interface F : Y, X
interface G : Y, X
@@ -0,0 +1,16 @@
FILE: main.kt
public final fun R|Y|.test(): R|kotlin/String?| {
lval a: R|kotlin/Int| = when (this@R|/test|) {
($subj$ is R|F|) -> {
Int(1)
}
($subj$ is R|G|) -> {
Int(2)
}
else -> {
^test Null(null)
}
}
^test Null(null)
}
@@ -0,0 +1,8 @@
fun Y.test(): String? {
val a = when (this) {
is F -> 1
is G -> 2
else -> return null
}
return null
}
@@ -0,0 +1,7 @@
{
"modules" : [
{ "name": "main", "dependsOn": ["dependency"] },
{ "name": "dependency" }
],
"fileToResolve": { "module": "main", "file": "main.kt" }
}