Move some idea-frontend-fir testData from compiler to IDE repo
This testData isn't used here but used in IDE repo
This commit is contained in:
committed by
teamcityserver
parent
c35e0438b6
commit
9bf802a188
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/funInCompanionObject.kt
Vendored
-9
@@ -1,9 +0,0 @@
|
|||||||
class X {
|
|
||||||
companion object {
|
|
||||||
fun x() {
|
|
||||||
a<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
fun x() {
|
|
||||||
fun a() = <caret>
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
Vendored
-7
@@ -1,7 +0,0 @@
|
|||||||
class A {
|
|
||||||
fun x() {
|
|
||||||
<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
class A {
|
|
||||||
val x: Int = run {
|
|
||||||
<caret>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fun foo(): Int = <caret>42
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fun foo() = <caret>42
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
Vendored
-6
@@ -1,6 +0,0 @@
|
|||||||
fun foo(): Int {
|
|
||||||
<caret>println("")
|
|
||||||
return 10
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
fun foo() {
|
|
||||||
<caret>println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
val x: Int get() = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-4
@@ -1,4 +0,0 @@
|
|||||||
val x: Int
|
|
||||||
get() = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
val x: Int = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-4
@@ -1,4 +0,0 @@
|
|||||||
val x: Int
|
|
||||||
set(value) = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: false
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
val x get() = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
val x = y<caret>
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
val x
|
|
||||||
get() = 1
|
|
||||||
set(value) {
|
|
||||||
<caret>
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
// TODO should not be out of block
|
|
||||||
-6
@@ -1,6 +0,0 @@
|
|||||||
@Ann<caret>
|
|
||||||
fun foo() {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-6
@@ -1,6 +0,0 @@
|
|||||||
@Ann(<caret>)
|
|
||||||
fun foo() {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
<caret> fun foo() {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
fun foo(<caret>) {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/outOfBlockProjectWide/typeInFunctionParams.kt
Vendored
-5
@@ -1,5 +0,0 @@
|
|||||||
fun fo<caret>o() {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
fun foo(x: In<caret>) {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
fun foo(): In<caret> {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
fun <X<caret>>foo() {
|
|
||||||
println("")
|
|
||||||
}
|
|
||||||
|
|
||||||
// OUT_OF_BLOCK: true
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
class ClassAnotherModuleInheritorA: SealedClass()
|
|
||||||
class ClassAnotherModuleInheritorB: SealedClass()
|
|
||||||
|
|
||||||
class InterfaceAnotherModuleInheritorA: SealedInterface
|
|
||||||
class InterfaceAnotherModuleInheritorB: SealedInterface
|
|
||||||
Vendored
-18
@@ -1,18 +0,0 @@
|
|||||||
ClassSameFileInheritorA
|
|
||||||
ClassSameFileInheritorB
|
|
||||||
ClassSameFileInheritorC
|
|
||||||
ClassSamePackageInheritorA
|
|
||||||
ClassSamePackageInheritorB
|
|
||||||
InterfaceSameFileInheritorA
|
|
||||||
InterfaceSameFileInheritorB
|
|
||||||
InterfaceSameFileInheritorC
|
|
||||||
InterfaceSamePackageInheritorA
|
|
||||||
InterfaceSamePackageInheritorB
|
|
||||||
NonSealedClass.NestedSealedInheritorA
|
|
||||||
NonSealedClass.NestedSealedInheritorB
|
|
||||||
SealedClass.NestedInheritorA
|
|
||||||
SealedClass.NestedInheritorA.NestedNestedInheritorA
|
|
||||||
SealedClass.NestedInheritorA.NestedNestedInheritorB
|
|
||||||
SealedInterface.NestedInheritorA
|
|
||||||
SealedInterface.NestedInheritorA.NestedNestedInheritorA
|
|
||||||
SealedInterface.NestedInheritorA.NestedNestedInheritorB
|
|
||||||
-5
@@ -1,5 +0,0 @@
|
|||||||
class ClassSamePackageInheritorA: SealedClass()
|
|
||||||
class ClassSamePackageInheritorB: SealedClass()
|
|
||||||
|
|
||||||
class InterfaceSamePackageInheritorA: SealedInterface
|
|
||||||
class InterfaceSamePackageInheritorB: SealedInterface
|
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
package anotherpackage
|
|
||||||
|
|
||||||
class ClassAnotherPackageInheritorA: SealedClass()
|
|
||||||
class ClassAnotherPackageInheritorB: SealedClass()
|
|
||||||
|
|
||||||
class InterfaceAnotherPackageInheritorA: SealedInterface
|
|
||||||
class InterfaceAnotherPackageInheritorB: SealedInterface
|
|
||||||
Vendored
-29
@@ -1,29 +0,0 @@
|
|||||||
sealed class SealedClass { // (1): top level sealed class
|
|
||||||
class NestedInheritorA: SealedClass() {
|
|
||||||
class NestedNestedInheritorA: SealedClass()
|
|
||||||
object NestedNestedInheritorB: SealedClass()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class ClassSameFileInheritorA: SealedClass()
|
|
||||||
class ClassSameFileInheritorB: SealedClass()
|
|
||||||
object ClassSameFileInheritorC: SealedClass()
|
|
||||||
|
|
||||||
sealed interface SealedInterface { // (2): top level sealed interface
|
|
||||||
class NestedInheritorA: SealedInterface {
|
|
||||||
interface NestedNestedInheritorA: SealedInterface
|
|
||||||
object NestedNestedInheritorB: SealedInterface
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class InterfaceSameFileInheritorA: SealedInterface
|
|
||||||
class InterfaceSameFileInheritorB: SealedInterface
|
|
||||||
object InterfaceSameFileInheritorC: SealedInterface
|
|
||||||
|
|
||||||
|
|
||||||
class NonSealedClass {
|
|
||||||
sealed class NestedSealedClass // (3): nested sealed class
|
|
||||||
sealed interface NestedSealedInterface // (4): nested sealed interface
|
|
||||||
class NestedSealedInheritorA: NestedSealedClass()
|
|
||||||
class NestedSealedInheritorB: NestedSealedInterface
|
|
||||||
}
|
|
||||||
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/resolveSealed/directInheritors/structure.json
Vendored
-7
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "main", "dependsOn": ["anotherModule"] },
|
|
||||||
{ "name": "anotherModule"}
|
|
||||||
],
|
|
||||||
"fileToResolve": { "module": "main", "file": "main.kt" }
|
|
||||||
}
|
|
||||||
idea/idea-frontend-fir/idea-fir-low-level-api/testdata/sessionInvalidation/binaryTree/structure.json
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D", "E"] },
|
|
||||||
{ "name": "C", "dependsOn": ["F", "G"] },
|
|
||||||
{ "name": "D", "dependsOn": [] },
|
|
||||||
{ "name": "E", "dependsOn": [] },
|
|
||||||
{ "name": "F", "dependsOn": [] },
|
|
||||||
{ "name": "G", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["F"],
|
|
||||||
"expectedInvalidatedModules": ["A", "C", "F"]
|
|
||||||
}
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D", "E"] },
|
|
||||||
{ "name": "C", "dependsOn": ["F", "G"] },
|
|
||||||
{ "name": "D", "dependsOn": [] },
|
|
||||||
{ "name": "E", "dependsOn": [] },
|
|
||||||
{ "name": "F", "dependsOn": [] },
|
|
||||||
{ "name": "G", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": [],
|
|
||||||
"expectedInvalidatedModules": []
|
|
||||||
}
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D", "E"] },
|
|
||||||
{ "name": "C", "dependsOn": ["F", "G"] },
|
|
||||||
{ "name": "D", "dependsOn": [] },
|
|
||||||
{ "name": "E", "dependsOn": [] },
|
|
||||||
{ "name": "F", "dependsOn": ["B"] },
|
|
||||||
{ "name": "G", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["E"],
|
|
||||||
"expectedInvalidatedModules": ["A", "B", "C", "E", "F"]
|
|
||||||
}
|
|
||||||
-14
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D", "E"] },
|
|
||||||
{ "name": "C", "dependsOn": ["F", "G"] },
|
|
||||||
{ "name": "D", "dependsOn": [] },
|
|
||||||
{ "name": "E", "dependsOn": [] },
|
|
||||||
{ "name": "F", "dependsOn": [] },
|
|
||||||
{ "name": "G", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["A"],
|
|
||||||
"expectedInvalidatedModules": ["A"]
|
|
||||||
}
|
|
||||||
Vendored
-12
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B"] },
|
|
||||||
{ "name": "B", "dependsOn": ["C"] },
|
|
||||||
{ "name": "C", "dependsOn": ["D"] },
|
|
||||||
{ "name": "D", "dependsOn": ["E"] },
|
|
||||||
{ "name": "E", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["C"],
|
|
||||||
"expectedInvalidatedModules": ["A", "B", "C"]
|
|
||||||
}
|
|
||||||
Vendored
-11
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D"] },
|
|
||||||
{ "name": "C", "dependsOn": ["D"] },
|
|
||||||
{ "name": "D", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["D"],
|
|
||||||
"expectedInvalidatedModules": ["A", "B", "C", "D"]
|
|
||||||
}
|
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"modules" : [
|
|
||||||
{ "name": "A", "dependsOn": ["B", "C"] },
|
|
||||||
{ "name": "B", "dependsOn": ["D"] },
|
|
||||||
{ "name": "C", "dependsOn": ["D"] },
|
|
||||||
{ "name": "D", "dependsOn": [] }
|
|
||||||
],
|
|
||||||
"rootModule": "A",
|
|
||||||
"modulesToMakeOOBM": ["C", "D"],
|
|
||||||
"expectedInvalidatedModules": ["A", "B", "C", "D"]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user