[LL FIR] merge diagnosticTraversalCounter testData to fileStructure

^KT-60728
This commit is contained in:
Dmitrii Gridin
2023-07-26 20:45:47 +02:00
committed by Space Team
parent 9970663a2b
commit 6fa254c353
61 changed files with 936 additions and 343 deletions
@@ -1,7 +0,0 @@
open class B(x: () -> Unit)
class A() : B(1, {
foo()
})
fun foo() {}
@@ -1,7 +0,0 @@
open class B(x: () -> Unit)
class A : B(1, {
foo()
})
fun foo() {}
@@ -1,17 +0,0 @@
open class A(x: () -> Unit)
class B : A {
constructor(i: Int) : super(
{
foo(i)
}
)
constructor(l: Long) : super(
{
foo(l)
}
)
}
fun foo(any: Any) {}
@@ -1,11 +0,0 @@
open class A(x: () -> Unit)
class B : A {
constructor(i: Int) : super(
{
foo(i)
}
)
}
fun foo(any: Any) {}
@@ -1,3 +0,0 @@
fun foo(f: Float.(Int, String) -> Boolean) {
}
@@ -1,10 +0,0 @@
class A(
@setparam:Ann
@get:Ann
@set:Ann
@field:Ann
@property:Ann
var x: Int
)
annotation class Ann
@@ -1,11 +0,0 @@
class A {
val a = run {
class X()
val y = 10
}
}
inline fun <R> run(block: () -> R): R {
return block()
}
@@ -1,13 +0,0 @@
enum class A {
X,
Y,
Z
;
fun foo(){}
val x = 10
fun bar() = 10
}
@@ -1,13 +0,0 @@
enum class A {
X {
fun localInX() = 1
},
Y {
override fun foo() {}
},
Z,
;
open fun foo() {}
}
@@ -1,3 +0,0 @@
class A(val x: Int = 10, val b: String) {
}
@@ -1,6 +0,0 @@
class A {
init {
val x = 10
class B
}
}
@@ -1,7 +0,0 @@
// WITH_STDLIB
val x = run {
val inLambda = 10
println(inLambda)
inLambda
}
@@ -1,3 +0,0 @@
fun foo() {
fun local() = 0
}
@@ -1,5 +0,0 @@
fun foo() {
fun local() {
println("local")
}
}
@@ -1,7 +0,0 @@
class A {
fun foo1() = 10
fun foo2() {
}
}
@@ -1,7 +0,0 @@
class A {
fun foo1() = 10
fun foo2() {
}
}
@@ -1,3 +0,0 @@
class A {
typealias X = Int
}
@@ -1,15 +0,0 @@
class A {
}
class B {
}
class C {
}
class D {
}
@@ -1,7 +0,0 @@
fun foo1() = 1
fun foo2() = 2
fun foo3() = 3
fun foo4() = 4
@@ -1,15 +0,0 @@
fun foo1() {
println("foo1")
}
fun foo2() {
println("foo2")
}
fun foo3() {
println("foo3")
}
fun foo4() {
println("foo4")
}
@@ -1,11 +0,0 @@
class A {
class B {
}
object C {
class D {
}
}
}
@@ -1,7 +0,0 @@
class A {
fun y() {}
class B {
fun x() {}
}
}
@@ -1,15 +0,0 @@
var x: Int = 10
get() = field
set(value) {
println(1)
field = value
}
class X {
var y: Int = 10
get() = field
set(value) {
println(2)
field = value
}
}
@@ -1,5 +0,0 @@
var withGetterAndSetter: Int = 42
get() = field
set(value) {
field = value
}
@@ -1,51 +0,0 @@
open class A(init: A.() -> Unit) {
val prop: String = ""
}
object B : A({})
object C : A(
{
fun foo() = B.prop.toString()
}
)
class D : A(
{
fun foo() = B.prop.toString()
}
)
class E() : A(
{
fun foo() = B.prop.toString()
}
)
class F : A(
{
fun foo() = B.prop.toString()
}
) {
constructor()
}
class G : A(
{
fun foo() = B.prop.toString()
}
) {
constructor() : super(
{
fun foo() = B.prop.toString()
}
)
}
class H : A {
constructor() : super(
{
fun foo() = B.prop.toString()
}
)
}
@@ -1,3 +0,0 @@
class A(val x: Int = 10, val b: String) {
constructor(i: Int) : this(x = 1, b = i.toString())
}
@@ -1,6 +0,0 @@
@Target(AnnotationTarget.TYPE)
annotation class Anno
open class A
class B : @Anno A()
@@ -1,6 +0,0 @@
@Target(AnnotationTarget.TYPE)
annotation class Anno
interface A
class B : @Anno A
@@ -1,7 +0,0 @@
interface A<T>
typealias AS = A<String>
class C : AS {
constructor()
}
@@ -1 +0,0 @@
typealias A = 10
@@ -0,0 +1,7 @@
open class B(x: () -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
class A()/* NonReanalyzableNonClassDeclarationStructureElement */ : B(1, {
foo()
})/* NonReanalyzableClassDeclarationStructureElement */
fun foo() {/* ReanalyzableFunctionStructureElement */}
@@ -0,0 +1,7 @@
open class B(x: () -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
class A : B(1, {
foo()
})/* NonReanalyzableClassDeclarationStructureElement */
fun foo() {/* ReanalyzableFunctionStructureElement */}
@@ -0,0 +1,17 @@
open class A(x: () -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
class B : A {/* NonReanalyzableClassDeclarationStructureElement */
constructor(i: Int) : super(
{
foo(i)
}
)/* NonReanalyzableNonClassDeclarationStructureElement */
constructor(l: Long) : super(
{
foo(l)
}
)/* NonReanalyzableNonClassDeclarationStructureElement */
}
fun foo(any: Any) {/* ReanalyzableFunctionStructureElement */}
@@ -0,0 +1,11 @@
open class A(x: () -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
class B : A {/* NonReanalyzableClassDeclarationStructureElement */
constructor(i: Int) : super(
{
foo(i)
}
)/* NonReanalyzableNonClassDeclarationStructureElement */
}
fun foo(any: Any) {/* ReanalyzableFunctionStructureElement */}
@@ -0,0 +1 @@
class A(var x: Int)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
@@ -0,0 +1,10 @@
class A(
@setparam:Ann
@get:Ann
@set:Ann
@field:Ann
@property:Ann
var x: Int
)/* NonReanalyzableNonClassDeclarationStructureElement *//* NonReanalyzableClassDeclarationStructureElement */
annotation class Ann/* NonReanalyzableClassDeclarationStructureElement */
@@ -0,0 +1,3 @@
class A(val x: Int = 10, val b: String)/* NonReanalyzableNonClassDeclarationStructureElement */ {/* NonReanalyzableClassDeclarationStructureElement */
}
@@ -0,0 +1,9 @@
val x = run {
val inLambda = 10
println(inLambda)
inLambda
}/* NonReanalyzableNonClassDeclarationStructureElement */
fun println(any: Any) {/* ReanalyzableFunctionStructureElement */
}
@@ -1,5 +1,5 @@
class Outer {
val i: Int = 1
class Outer {/* NonReanalyzableClassDeclarationStructureElement */
val i: Int = 1/* ReanalyzablePropertyStructureElement */
get() {
class Inner {
var i: Int = 2
@@ -20,7 +20,7 @@ class Outer {
return field
}
val j: Int = 4
val j: Int = 4/* ReanalyzablePropertyStructureElement */
get() {
fun local() {
field++
@@ -0,0 +1,3 @@
fun foo() {/* ReanalyzableFunctionStructureElement */
fun local() = 0
}
@@ -0,0 +1,5 @@
fun foo() {/* ReanalyzableFunctionStructureElement */
fun local() {
println("local")
}
}
@@ -0,0 +1,7 @@
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun foo1() = 10/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo2() {/* ReanalyzableFunctionStructureElement */
}
}
@@ -0,0 +1,7 @@
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun foo1() = 10/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo2() {/* ReanalyzableFunctionStructureElement */
}
}
@@ -0,0 +1,15 @@
class A {/* NonReanalyzableClassDeclarationStructureElement */
}
class B {/* NonReanalyzableClassDeclarationStructureElement */
}
class C {/* NonReanalyzableClassDeclarationStructureElement */
}
class D {/* NonReanalyzableClassDeclarationStructureElement */
}
@@ -0,0 +1,7 @@
fun foo1() = 1/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo2() = 2/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo3() = 3/* NonReanalyzableNonClassDeclarationStructureElement */
fun foo4() = 4/* NonReanalyzableNonClassDeclarationStructureElement */
@@ -0,0 +1,15 @@
fun foo1() {/* ReanalyzableFunctionStructureElement */
println("foo1")
}
fun foo2() {/* ReanalyzableFunctionStructureElement */
println("foo2")
}
fun foo3() {/* ReanalyzableFunctionStructureElement */
println("foo3")
}
fun foo4() {/* ReanalyzableFunctionStructureElement */
println("foo4")
}
@@ -0,0 +1,11 @@
class A {/* NonReanalyzableClassDeclarationStructureElement */
class B {/* NonReanalyzableClassDeclarationStructureElement */
}
object C {/* NonReanalyzableClassDeclarationStructureElement */
class D {/* NonReanalyzableClassDeclarationStructureElement */
}
}
}
@@ -0,0 +1,7 @@
class A {/* NonReanalyzableClassDeclarationStructureElement */
fun y() {/* ReanalyzableFunctionStructureElement */}
class B {/* NonReanalyzableClassDeclarationStructureElement */
fun x() {/* ReanalyzableFunctionStructureElement */}
}
}
@@ -0,0 +1,5 @@
var withGetterAndSetter: Int = 42/* ReanalyzablePropertyStructureElement */
get() = field
set(value) {
field = value
}
@@ -0,0 +1,51 @@
open class A(init: A.() -> Unit)/* NonReanalyzableNonClassDeclarationStructureElement */ {/* NonReanalyzableClassDeclarationStructureElement */
val prop: String = ""/* NonReanalyzableNonClassDeclarationStructureElement */
}
object B : A({})/* NonReanalyzableClassDeclarationStructureElement */
object C : A(
{
fun foo() = B.prop.toString()
}
)/* NonReanalyzableClassDeclarationStructureElement */
class D : A(
{
fun foo() = B.prop.toString()
}
)/* NonReanalyzableClassDeclarationStructureElement */
class E()/* NonReanalyzableNonClassDeclarationStructureElement */ : A(
{
fun foo() = B.prop.toString()
}
)/* NonReanalyzableClassDeclarationStructureElement */
class F : A(
{
fun foo() = B.prop.toString()
}
) {/* NonReanalyzableClassDeclarationStructureElement */
constructor()/* NonReanalyzableNonClassDeclarationStructureElement */
}
class G : A(
{
fun foo() = B.prop.toString()
}
) {/* NonReanalyzableClassDeclarationStructureElement */
constructor() : super(
{
fun foo() = B.prop.toString()
}
)/* NonReanalyzableNonClassDeclarationStructureElement */
}
class H : A {/* NonReanalyzableClassDeclarationStructureElement */
constructor() : super(
{
fun foo() = B.prop.toString()
}
)/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -0,0 +1,3 @@
class A(val x: Int = 10, val b: String)/* NonReanalyzableNonClassDeclarationStructureElement */ {/* NonReanalyzableClassDeclarationStructureElement */
constructor(i: Int) : this(x = 1, b = i.toString())/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -0,0 +1,6 @@
@Target(AnnotationTarget.TYPE)
annotation class Anno/* NonReanalyzableClassDeclarationStructureElement */
open class A/* NonReanalyzableClassDeclarationStructureElement */
class B : @Anno A()/* NonReanalyzableClassDeclarationStructureElement */
@@ -0,0 +1,6 @@
@Target(AnnotationTarget.TYPE)
annotation class Anno/* NonReanalyzableClassDeclarationStructureElement */
interface A/* NonReanalyzableClassDeclarationStructureElement */
class B : @Anno A/* NonReanalyzableClassDeclarationStructureElement */
@@ -0,0 +1,7 @@
interface A<T>/* NonReanalyzableClassDeclarationStructureElement */
typealias AS = A<String>/* NonReanalyzableNonClassDeclarationStructureElement */
class C : AS {/* NonReanalyzableClassDeclarationStructureElement */
constructor()/* NonReanalyzableNonClassDeclarationStructureElement */
}
@@ -16,213 +16,293 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter")
@TestMetadata("analysis/low-level-api-fir/testdata/fileStructure")
@TestDataPath("$PROJECT_ROOT")
public class DiagnosticTraversalCounterTestGenerated extends AbstractDiagnosticTraversalCounterTest {
@Test
public void testAllFilesPresentInDiagnosticTraversalCounter() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter"), Pattern.compile("^(.+)\\.kt$"), null, true);
public void testAllFilesPresentInFileStructure() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/fileStructure"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndExplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndExplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndImplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndImplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSingleSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
}
@Test
@TestMetadata("constructor.kt")
public void testConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/constructor.kt");
@TestMetadata("class.kt")
public void testClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/class.kt");
}
@Test
@TestMetadata("classMemberProperty.kt")
public void testClassMemberProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/classMemberProperty.kt");
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructors.kt");
}
@Test
@TestMetadata("danglingAnnotationClassLevel.kt")
public void testDanglingAnnotationClassLevel() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/danglingAnnotationClassLevel.kt");
}
@Test
@TestMetadata("danglingAnnotationTopLevel.kt")
public void testDanglingAnnotationTopLevel() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/danglingAnnotationTopLevel.kt");
}
@Test
@TestMetadata("declarationsInPropertyInit.kt")
public void testDeclarationsInPropertyInit() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/declarationsInPropertyInit.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/declarationsInPropertyInit.kt");
}
@Test
@TestMetadata("enumClass.kt")
public void testEnumClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/enumClass.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClass.kt");
}
@Test
@TestMetadata("enumClassWithBody.kt")
public void testEnumClassWithBody() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/enumClassWithBody.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClassWithBody.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/functionalType.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/functionalType.kt");
}
@Test
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/initBlock.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/initBlock.kt");
}
@Test
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/lambda.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/lambda.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localClass.kt");
}
@Test
@TestMetadata("localDeclarationsInAccessor.kt")
public void testLocalDeclarationsInAccessor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/localDeclarationsInAccessor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/localDeclarationsInAccessor.kt");
}
@Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFun.kt");
}
@Test
@TestMetadata("localFunctionWithImplicitType.kt")
public void testLocalFunctionWithImplicitType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/localFunctionWithImplicitType.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFunctionWithImplicitType.kt");
}
@Test
@TestMetadata("localProperty.kt")
public void testLocalProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localProperty.kt");
}
@Test
@TestMetadata("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/localUnitFunction.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/localUnitFunction.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/memberFunctions.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/memberProperties.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberProperties.kt");
}
@Test
@TestMetadata("memberTypeAlias.kt")
public void testMemberTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/memberTypeAlias.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberTypeAlias.kt");
}
@Test
@TestMetadata("multipleTopLevelClasses.kt")
public void testMultipleTopLevelClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/multipleTopLevelClasses.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelClasses.kt");
}
@Test
@TestMetadata("multipleTopLevelFunctionsWithImplicitTypes.kt")
public void testMultipleTopLevelFunctionsWithImplicitTypes() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/multipleTopLevelFunctionsWithImplicitTypes.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelFunctionsWithImplicitTypes.kt");
}
@Test
@TestMetadata("multipleTopLevelUnitFunctions.kt")
public void testMultipleTopLevelUnitFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/multipleTopLevelUnitFunctions.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelUnitFunctions.kt");
}
@Test
@TestMetadata("nestedClases.kt")
public void testNestedClases() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/nestedClases.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClases.kt");
}
@Test
@TestMetadata("nestedClasesWithFun.kt")
public void testNestedClasesWithFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/nestedClasesWithFun.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasesWithFun.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasses.kt");
}
@Test
@TestMetadata("propertyAccessors.kt")
public void testPropertyAccessors() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/propertyAccessors.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyAccessors.kt");
}
@Test
@TestMetadata("propertyWithGetterAndSetter.kt")
public void testPropertyWithGetterAndSetter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/propertyWithGetterAndSetter.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyWithGetterAndSetter.kt");
}
@Test
@TestMetadata("qualifiedCallInsideSuperCall.kt")
public void testQualifiedCallInsideSuperCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/qualifiedCallInsideSuperCall.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/qualifiedCallInsideSuperCall.kt");
}
@Test
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/secondaryConstructor.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/secondaryConstructor.kt");
}
@Test
@TestMetadata("superCallAnnotation.kt")
public void testSuperCallAnnotation() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/superCallAnnotation.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation.kt");
}
@Test
@TestMetadata("superCallAnnotation2.kt")
public void testSuperCallAnnotation2() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/superCallAnnotation2.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation2.kt");
}
@Test
@TestMetadata("superClassCall.kt")
public void testSuperClassCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superClassCall.kt");
}
@Test
@TestMetadata("superType.kt")
public void testSuperType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/superType.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/superType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/topLevelExpressionBodyFunWithType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithoutType.kt")
public void testTopLevelExpressionBodyFunWithoutType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/topLevelExpressionBodyFunWithoutType.kt");
}
@Test
@TestMetadata("topLevelFunWithType.kt")
public void testTopLevelFunWithType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/topLevelFunWithType.kt");
}
@Test
@TestMetadata("topLevelProperty.kt")
public void testTopLevelProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/topLevelProperty.kt");
}
@Test
@TestMetadata("topLevelUnitFun.kt")
public void testTopLevelUnitFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/topLevelUnitFun.kt");
}
@Test
@TestMetadata("typeAlias.kt")
public void testTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/typeAlias.kt");
runTest("analysis/low-level-api-fir/testdata/fileStructure/typeAlias.kt");
}
@Nested
@TestMetadata("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/constructorParameters")
@TestDataPath("$PROJECT_ROOT")
public class ConstructorParameters {
@Test
public void testAllFilesPresentInConstructorParameters() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/constructorParameters"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/constructorParameters/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/diagnosticTraversalCounter/constructorParameters/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("withoutName.kt")
public void testWithoutName() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/withoutName.kt");
}
}
@@ -24,6 +24,30 @@ public class FirOutOfContentRootContextCollectionTestGenerated extends AbstractF
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/fileStructure"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndExplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndExplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndImplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndImplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSingleSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
@@ -36,6 +60,18 @@ public class FirOutOfContentRootContextCollectionTestGenerated extends AbstractF
runTest("analysis/low-level-api-fir/testdata/fileStructure/classMemberProperty.kt");
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
@@ -72,36 +108,108 @@ public class FirOutOfContentRootContextCollectionTestGenerated extends AbstractF
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClassWithBody.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/functionalType.kt");
}
@Test
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/initBlock.kt");
}
@Test
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/lambda.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localClass.kt");
}
@Test
@TestMetadata("localDeclarationsInAccessor.kt")
public void testLocalDeclarationsInAccessor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localDeclarationsInAccessor.kt");
}
@Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFun.kt");
}
@Test
@TestMetadata("localFunctionWithImplicitType.kt")
public void testLocalFunctionWithImplicitType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFunctionWithImplicitType.kt");
}
@Test
@TestMetadata("localProperty.kt")
public void testLocalProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localProperty.kt");
}
@Test
@TestMetadata("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localUnitFunction.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberProperties.kt");
}
@Test
@TestMetadata("memberTypeAlias.kt")
public void testMemberTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberTypeAlias.kt");
}
@Test
@TestMetadata("multipleTopLevelClasses.kt")
public void testMultipleTopLevelClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelClasses.kt");
}
@Test
@TestMetadata("multipleTopLevelFunctionsWithImplicitTypes.kt")
public void testMultipleTopLevelFunctionsWithImplicitTypes() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelFunctionsWithImplicitTypes.kt");
}
@Test
@TestMetadata("multipleTopLevelUnitFunctions.kt")
public void testMultipleTopLevelUnitFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelUnitFunctions.kt");
}
@Test
@TestMetadata("nestedClases.kt")
public void testNestedClases() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClases.kt");
}
@Test
@TestMetadata("nestedClasesWithFun.kt")
public void testNestedClasesWithFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasesWithFun.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
@@ -114,12 +222,48 @@ public class FirOutOfContentRootContextCollectionTestGenerated extends AbstractF
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyAccessors.kt");
}
@Test
@TestMetadata("propertyWithGetterAndSetter.kt")
public void testPropertyWithGetterAndSetter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyWithGetterAndSetter.kt");
}
@Test
@TestMetadata("qualifiedCallInsideSuperCall.kt")
public void testQualifiedCallInsideSuperCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/qualifiedCallInsideSuperCall.kt");
}
@Test
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/secondaryConstructor.kt");
}
@Test
@TestMetadata("superCallAnnotation.kt")
public void testSuperCallAnnotation() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation.kt");
}
@Test
@TestMetadata("superCallAnnotation2.kt")
public void testSuperCallAnnotation2() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation2.kt");
}
@Test
@TestMetadata("superClassCall.kt")
public void testSuperClassCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superClassCall.kt");
}
@Test
@TestMetadata("superType.kt")
public void testSuperType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
@@ -24,6 +24,30 @@ public class FirSourceContextCollectionTestGenerated extends AbstractFirSourceCo
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/fileStructure"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndExplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndExplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndImplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndImplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSingleSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
@@ -36,6 +60,18 @@ public class FirSourceContextCollectionTestGenerated extends AbstractFirSourceCo
runTest("analysis/low-level-api-fir/testdata/fileStructure/classMemberProperty.kt");
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
@@ -72,36 +108,108 @@ public class FirSourceContextCollectionTestGenerated extends AbstractFirSourceCo
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClassWithBody.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/functionalType.kt");
}
@Test
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/initBlock.kt");
}
@Test
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/lambda.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localClass.kt");
}
@Test
@TestMetadata("localDeclarationsInAccessor.kt")
public void testLocalDeclarationsInAccessor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localDeclarationsInAccessor.kt");
}
@Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFun.kt");
}
@Test
@TestMetadata("localFunctionWithImplicitType.kt")
public void testLocalFunctionWithImplicitType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFunctionWithImplicitType.kt");
}
@Test
@TestMetadata("localProperty.kt")
public void testLocalProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localProperty.kt");
}
@Test
@TestMetadata("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localUnitFunction.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberProperties.kt");
}
@Test
@TestMetadata("memberTypeAlias.kt")
public void testMemberTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberTypeAlias.kt");
}
@Test
@TestMetadata("multipleTopLevelClasses.kt")
public void testMultipleTopLevelClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelClasses.kt");
}
@Test
@TestMetadata("multipleTopLevelFunctionsWithImplicitTypes.kt")
public void testMultipleTopLevelFunctionsWithImplicitTypes() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelFunctionsWithImplicitTypes.kt");
}
@Test
@TestMetadata("multipleTopLevelUnitFunctions.kt")
public void testMultipleTopLevelUnitFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelUnitFunctions.kt");
}
@Test
@TestMetadata("nestedClases.kt")
public void testNestedClases() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClases.kt");
}
@Test
@TestMetadata("nestedClasesWithFun.kt")
public void testNestedClasesWithFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasesWithFun.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
@@ -114,12 +222,48 @@ public class FirSourceContextCollectionTestGenerated extends AbstractFirSourceCo
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyAccessors.kt");
}
@Test
@TestMetadata("propertyWithGetterAndSetter.kt")
public void testPropertyWithGetterAndSetter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyWithGetterAndSetter.kt");
}
@Test
@TestMetadata("qualifiedCallInsideSuperCall.kt")
public void testQualifiedCallInsideSuperCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/qualifiedCallInsideSuperCall.kt");
}
@Test
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/secondaryConstructor.kt");
}
@Test
@TestMetadata("superCallAnnotation.kt")
public void testSuperCallAnnotation() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation.kt");
}
@Test
@TestMetadata("superCallAnnotation2.kt")
public void testSuperCallAnnotation2() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation2.kt");
}
@Test
@TestMetadata("superClassCall.kt")
public void testSuperClassCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superClassCall.kt");
}
@Test
@TestMetadata("superType.kt")
public void testSuperType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
@@ -24,6 +24,30 @@ public class OutOfContentRootFileStructureTestGenerated extends AbstractOutOfCon
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/fileStructure"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndExplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndExplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndImplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndImplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSingleSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
@@ -36,6 +60,18 @@ public class OutOfContentRootFileStructureTestGenerated extends AbstractOutOfCon
runTest("analysis/low-level-api-fir/testdata/fileStructure/classMemberProperty.kt");
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
@@ -72,36 +108,108 @@ public class OutOfContentRootFileStructureTestGenerated extends AbstractOutOfCon
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClassWithBody.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/functionalType.kt");
}
@Test
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/initBlock.kt");
}
@Test
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/lambda.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localClass.kt");
}
@Test
@TestMetadata("localDeclarationsInAccessor.kt")
public void testLocalDeclarationsInAccessor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localDeclarationsInAccessor.kt");
}
@Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFun.kt");
}
@Test
@TestMetadata("localFunctionWithImplicitType.kt")
public void testLocalFunctionWithImplicitType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFunctionWithImplicitType.kt");
}
@Test
@TestMetadata("localProperty.kt")
public void testLocalProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localProperty.kt");
}
@Test
@TestMetadata("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localUnitFunction.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberProperties.kt");
}
@Test
@TestMetadata("memberTypeAlias.kt")
public void testMemberTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberTypeAlias.kt");
}
@Test
@TestMetadata("multipleTopLevelClasses.kt")
public void testMultipleTopLevelClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelClasses.kt");
}
@Test
@TestMetadata("multipleTopLevelFunctionsWithImplicitTypes.kt")
public void testMultipleTopLevelFunctionsWithImplicitTypes() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelFunctionsWithImplicitTypes.kt");
}
@Test
@TestMetadata("multipleTopLevelUnitFunctions.kt")
public void testMultipleTopLevelUnitFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelUnitFunctions.kt");
}
@Test
@TestMetadata("nestedClases.kt")
public void testNestedClases() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClases.kt");
}
@Test
@TestMetadata("nestedClasesWithFun.kt")
public void testNestedClasesWithFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasesWithFun.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
@@ -114,12 +222,48 @@ public class OutOfContentRootFileStructureTestGenerated extends AbstractOutOfCon
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyAccessors.kt");
}
@Test
@TestMetadata("propertyWithGetterAndSetter.kt")
public void testPropertyWithGetterAndSetter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyWithGetterAndSetter.kt");
}
@Test
@TestMetadata("qualifiedCallInsideSuperCall.kt")
public void testQualifiedCallInsideSuperCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/qualifiedCallInsideSuperCall.kt");
}
@Test
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/secondaryConstructor.kt");
}
@Test
@TestMetadata("superCallAnnotation.kt")
public void testSuperCallAnnotation() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation.kt");
}
@Test
@TestMetadata("superCallAnnotation2.kt")
public void testSuperCallAnnotation2() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation2.kt");
}
@Test
@TestMetadata("superClassCall.kt")
public void testSuperClassCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superClassCall.kt");
}
@Test
@TestMetadata("superType.kt")
public void testSuperType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
@@ -24,6 +24,30 @@ public class SourceFileStructureTestGenerated extends AbstractSourceFileStructur
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("analysis/low-level-api-fir/testdata/fileStructure"), Pattern.compile("^(.+)\\.(kt)$"), null, true);
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndExplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndExplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndExplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallAndImplicitConstructor.kt")
public void testCallInsideLambdaInsideSuperCallAndImplicitConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallAndImplicitConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSecondaryConstructor.kt");
}
@Test
@TestMetadata("callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt")
public void testCallInsideLambdaInsideSuperCallFromSingleSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt");
}
@Test
@TestMetadata("class.kt")
public void testClass() throws Exception {
@@ -36,6 +60,18 @@ public class SourceFileStructureTestGenerated extends AbstractSourceFileStructur
runTest("analysis/low-level-api-fir/testdata/fileStructure/classMemberProperty.kt");
}
@Test
@TestMetadata("constructorParameter.kt")
public void testConstructorParameter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameter.kt");
}
@Test
@TestMetadata("constructorParameterWithAnnotations.kt")
public void testConstructorParameterWithAnnotations() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/constructorParameterWithAnnotations.kt");
}
@Test
@TestMetadata("constructors.kt")
public void testConstructors() throws Exception {
@@ -72,36 +108,108 @@ public class SourceFileStructureTestGenerated extends AbstractSourceFileStructur
runTest("analysis/low-level-api-fir/testdata/fileStructure/enumClassWithBody.kt");
}
@Test
@TestMetadata("functionalType.kt")
public void testFunctionalType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/functionalType.kt");
}
@Test
@TestMetadata("initBlock.kt")
public void testInitBlock() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/initBlock.kt");
}
@Test
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/lambda.kt");
}
@Test
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localClass.kt");
}
@Test
@TestMetadata("localDeclarationsInAccessor.kt")
public void testLocalDeclarationsInAccessor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localDeclarationsInAccessor.kt");
}
@Test
@TestMetadata("localFun.kt")
public void testLocalFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFun.kt");
}
@Test
@TestMetadata("localFunctionWithImplicitType.kt")
public void testLocalFunctionWithImplicitType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localFunctionWithImplicitType.kt");
}
@Test
@TestMetadata("localProperty.kt")
public void testLocalProperty() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localProperty.kt");
}
@Test
@TestMetadata("localUnitFunction.kt")
public void testLocalUnitFunction() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/localUnitFunction.kt");
}
@Test
@TestMetadata("memberFunctions.kt")
public void testMemberFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberFunctions.kt");
}
@Test
@TestMetadata("memberProperties.kt")
public void testMemberProperties() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberProperties.kt");
}
@Test
@TestMetadata("memberTypeAlias.kt")
public void testMemberTypeAlias() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/memberTypeAlias.kt");
}
@Test
@TestMetadata("multipleTopLevelClasses.kt")
public void testMultipleTopLevelClasses() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelClasses.kt");
}
@Test
@TestMetadata("multipleTopLevelFunctionsWithImplicitTypes.kt")
public void testMultipleTopLevelFunctionsWithImplicitTypes() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelFunctionsWithImplicitTypes.kt");
}
@Test
@TestMetadata("multipleTopLevelUnitFunctions.kt")
public void testMultipleTopLevelUnitFunctions() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/multipleTopLevelUnitFunctions.kt");
}
@Test
@TestMetadata("nestedClases.kt")
public void testNestedClases() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClases.kt");
}
@Test
@TestMetadata("nestedClasesWithFun.kt")
public void testNestedClasesWithFun() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/nestedClasesWithFun.kt");
}
@Test
@TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception {
@@ -114,12 +222,48 @@ public class SourceFileStructureTestGenerated extends AbstractSourceFileStructur
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyAccessors.kt");
}
@Test
@TestMetadata("propertyWithGetterAndSetter.kt")
public void testPropertyWithGetterAndSetter() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/propertyWithGetterAndSetter.kt");
}
@Test
@TestMetadata("qualifiedCallInsideSuperCall.kt")
public void testQualifiedCallInsideSuperCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/qualifiedCallInsideSuperCall.kt");
}
@Test
@TestMetadata("secondaryConstructor.kt")
public void testSecondaryConstructor() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/secondaryConstructor.kt");
}
@Test
@TestMetadata("superCallAnnotation.kt")
public void testSuperCallAnnotation() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation.kt");
}
@Test
@TestMetadata("superCallAnnotation2.kt")
public void testSuperCallAnnotation2() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superCallAnnotation2.kt");
}
@Test
@TestMetadata("superClassCall.kt")
public void testSuperClassCall() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superClassCall.kt");
}
@Test
@TestMetadata("superType.kt")
public void testSuperType() throws Exception {
runTest("analysis/low-level-api-fir/testdata/fileStructure/superType.kt");
}
@Test
@TestMetadata("topLevelExpressionBodyFunWithType.kt")
public void testTopLevelExpressionBodyFunWithType() throws Exception {
@@ -6,8 +6,8 @@
package org.jetbrains.kotlin.generators.tests.analysis.api
import org.jetbrains.kotlin.analysis.low.level.api.fir.*
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.compiler.based.AbstractLLFirDiagnosticCompilerTestDataSpecTest
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.AbstractDiagnosticTraversalCounterTest
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.compiler.based.AbstractLLFirDiagnosticCompilerTestDataSpecTest
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.AbstractFirOutOfContentRootContextCollectionTest
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.AbstractFirSourceContextCollectionTest
import org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.AbstractScriptContextCollectionTest
@@ -94,7 +94,7 @@ internal fun TestGroupSuite.generateFirLowLevelApiTests() {
}
testClass<AbstractDiagnosticTraversalCounterTest> {
model("diagnosticTraversalCounter")
model("fileStructure", pattern = TestGeneratorUtil.KT)
}
testClass<AbstractSourceInnerDeclarationsResolvePhaseTest> {