[LC] move scripts to lightClassByPsi
This commit is contained in:
+18
-38
@@ -78,6 +78,12 @@ public class SymbolLightClassesForLibraryTestGenerated extends AbstractSymbolLig
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/AnnotationRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
@@ -222,6 +228,18 @@ public class SymbolLightClassesForLibraryTestGenerated extends AbstractSymbolLig
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimpleObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimplePublicField.kt")
|
||||
public void testSimplePublicField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimplePublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
@@ -478,44 +496,6 @@ public class SymbolLightClassesForLibraryTestGenerated extends AbstractSymbolLig
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Object {
|
||||
@Test
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/object"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class PublicField {
|
||||
@Test
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+28
-6
@@ -222,12 +222,6 @@ public class SymbolLightClassesLoadingForLibraryTestGenerated extends AbstractSy
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/properties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("script.kts")
|
||||
public void testScript() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/script.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleFunctions.kt")
|
||||
public void testSimpleFunctions() throws Exception {
|
||||
@@ -345,4 +339,32 @@ public class SymbolLightClassesLoadingForLibraryTestGenerated extends AbstractSy
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/facades/wildcardOptimization.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Scripts {
|
||||
@Test
|
||||
public void testAllFilesPresentInScripts() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunsPropsAndFields.kts")
|
||||
public void testFunsPropsAndFields() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/FunsPropsAndFields.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("HelloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/HelloWorld.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("InnerClasses.kts")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/InnerClasses.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+18
-38
@@ -78,6 +78,12 @@ public class SymbolLightClassesParentingForLibraryTestGenerated extends Abstract
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/AnnotationRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
@@ -222,6 +228,18 @@ public class SymbolLightClassesParentingForLibraryTestGenerated extends Abstract
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimpleObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimplePublicField.kt")
|
||||
public void testSimplePublicField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimplePublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
@@ -478,44 +496,6 @@ public class SymbolLightClassesParentingForLibraryTestGenerated extends Abstract
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Object {
|
||||
@Test
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/object"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class PublicField {
|
||||
@Test
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+18
-38
@@ -78,6 +78,12 @@ public class SymbolLightClassesForSourceTestGenerated extends AbstractSymbolLigh
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/AnnotationRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
@@ -222,6 +228,18 @@ public class SymbolLightClassesForSourceTestGenerated extends AbstractSymbolLigh
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimpleObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimplePublicField.kt")
|
||||
public void testSimplePublicField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimplePublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
@@ -614,44 +632,6 @@ public class SymbolLightClassesForSourceTestGenerated extends AbstractSymbolLigh
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Object {
|
||||
@Test
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/object"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class PublicField {
|
||||
@Test
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+28
-6
@@ -222,12 +222,6 @@ public class SymbolLightClassesLoadingForSourceTestGenerated extends AbstractSym
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/properties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("script.kts")
|
||||
public void testScript() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/script.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleFunctions.kt")
|
||||
public void testSimpleFunctions() throws Exception {
|
||||
@@ -345,4 +339,32 @@ public class SymbolLightClassesLoadingForSourceTestGenerated extends AbstractSym
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/facades/wildcardOptimization.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Scripts {
|
||||
@Test
|
||||
public void testAllFilesPresentInScripts() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts"), Pattern.compile("^(.+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunsPropsAndFields.kts")
|
||||
public void testFunsPropsAndFields() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/FunsPropsAndFields.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("HelloWorld.kts")
|
||||
public void testHelloWorld() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/HelloWorld.kts");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("InnerClasses.kts")
|
||||
public void testInnerClasses() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByPsi/scripts/InnerClasses.kts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+18
-38
@@ -78,6 +78,12 @@ public class SymbolLightClassesParentingForSourceTestGenerated extends AbstractS
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/AnnotationRepeatable.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
@@ -222,6 +228,18 @@ public class SymbolLightClassesParentingForSourceTestGenerated extends AbstractS
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimpleObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimplePublicField.kt")
|
||||
public void testSimplePublicField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimplePublicField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
@@ -614,44 +632,6 @@ public class SymbolLightClassesParentingForSourceTestGenerated extends AbstractS
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Object {
|
||||
@Test
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/object"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class PublicField {
|
||||
@Test
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField"), Pattern.compile("^([^.]+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
compiler/testData/asJava/lightClasses/lightClassByFqName/delegation/WithPlatformTypes.NoCompile.java
Vendored
+3
-6
@@ -1,6 +1,3 @@
|
||||
public final class WithPlatformTypes implements p.J {
|
||||
public WithPlatformTypes(@org.jetbrains.annotations.NotNull p.J j) { /* compiled code */ }
|
||||
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public java.lang.String foo(@org.jetbrains.annotations.NotNull java.lang.String b) { /* compiled code */ }
|
||||
}
|
||||
public final class WithPlatformTypes /* p.WithPlatformTypes*/ implements p.J {
|
||||
public WithPlatformTypes(@org.jetbrains.annotations.NotNull() p.J);// .ctor(p.J)
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
println("Hello, I'm in <root> package")
|
||||
@@ -1,5 +0,0 @@
|
||||
public final class Script /* Script*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
public Script(@org.jetbrains.annotations.NotNull() java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public static final void main(@org.jetbrains.annotations.NotNull() java.lang.String[]);// main(java.lang.String[])
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
public final class FunsPropsAndFields /* FunsPropsAndFields*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
@kotlin.jvm.JvmField()
|
||||
public final int testField;
|
||||
|
||||
private final int testPropVal;
|
||||
|
||||
private int testPropVar;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String testFun(int);// testFun(int)
|
||||
|
||||
public FunsPropsAndFields(@org.jetbrains.annotations.NotNull() java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public final int getTestPropVal();// getTestPropVal()
|
||||
|
||||
public final int getTestPropVar();// getTestPropVar()
|
||||
|
||||
public final void setTestPropVar(int);// setTestPropVar(int)
|
||||
|
||||
public static final void main(@org.jetbrains.annotations.NotNull() java.lang.String[]);// main(java.lang.String[])
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// NOT_GENERATED
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class HelloWorld /* HelloWorld*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
public HelloWorld(@org.jetbrains.annotations.NotNull() java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public static final void main(@org.jetbrains.annotations.NotNull() java.lang.String[]);// main(java.lang.String[])
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
// NOT_GENERATED
|
||||
+5
-2
@@ -3,6 +3,8 @@ public class InnerClasses /* InnerClasses*/ extends kotlin.script.templates.stan
|
||||
|
||||
public static final void main(java.lang.String[]);// main(java.lang.String[])
|
||||
|
||||
class Bar ...
|
||||
}
|
||||
|
||||
public static final class Bar /* InnerClasses.Bar*/ {
|
||||
private final int a;
|
||||
@@ -17,10 +19,11 @@ public static final class Bar /* InnerClasses.Bar*/ {
|
||||
|
||||
public final int getB();// getB()
|
||||
|
||||
class Baz ...
|
||||
}
|
||||
|
||||
public static final class Baz /* InnerClasses.Bar.Baz*/ {
|
||||
public Baz();// .ctor()
|
||||
|
||||
public final void doSomething();// doSomething()
|
||||
|
||||
}}}
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// InnerClasses
|
||||
|
||||
// IGNORE_FIR
|
||||
// KT-55626
|
||||
class Bar(val a: Int) {
|
||||
val b: Int = { 0 }()
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
public final class InnerClasses /* InnerClasses*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
public InnerClasses(@org.jetbrains.annotations.NotNull() java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public static final void main(@org.jetbrains.annotations.NotNull() java.lang.String[]);// main(java.lang.String[])
|
||||
|
||||
class Bar ...
|
||||
}
|
||||
|
||||
public static final class Bar /* InnerClasses.Bar*/ {
|
||||
private final int a;
|
||||
|
||||
private final int b;
|
||||
|
||||
public Bar(int);// .ctor(int)
|
||||
|
||||
public final int getA();// getA()
|
||||
|
||||
public final int getAPlusB();// getAPlusB()
|
||||
|
||||
public final int getB();// getB()
|
||||
|
||||
class Baz ...
|
||||
}
|
||||
|
||||
public static final class Baz /* InnerClasses.Bar.Baz*/ {
|
||||
public Baz();// .ctor()
|
||||
|
||||
public final void doSomething();// doSomething()
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
public class HelloWorld /* HelloWorld*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
public HelloWorld(java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public static final void main(java.lang.String[]);// main(java.lang.String[])
|
||||
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
// HelloWorld
|
||||
|
||||
println("Hello world!")
|
||||
@@ -1,7 +0,0 @@
|
||||
public class InnerClasses /* InnerClasses*/ extends kotlin.script.templates.standard.ScriptTemplateWithArgs {
|
||||
public InnerClasses(java.lang.String[]);// .ctor(java.lang.String[])
|
||||
|
||||
public static final void main(java.lang.String[]);// main(java.lang.String[])
|
||||
|
||||
class Bar ...
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
class Bar(val a: Int) {
|
||||
val b: Int = { 0 }()
|
||||
|
||||
fun getAPlusB() = a + b
|
||||
|
||||
class Baz {
|
||||
fun doSomething() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+15
-41
@@ -74,6 +74,11 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/AnnotationRepeatable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/Constructors.kt");
|
||||
@@ -194,6 +199,16 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/PublishedApi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimpleObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SimplePublicField.kt")
|
||||
public void testSimplePublicField() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SimplePublicField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("SpecialAnnotationsOnAnnotationClass.kt")
|
||||
public void testSpecialAnnotationsOnAnnotationClass() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/SpecialAnnotationsOnAnnotationClass.kt");
|
||||
@@ -491,47 +506,6 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/object")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Object extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInObject() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/object"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("SimpleObject.kt")
|
||||
public void testSimpleObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/object/SimpleObject.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PublicField extends AbstractCompilerLightClassTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPublicField() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField"), Pattern.compile("^([^.]+)\\.(kt|kts)$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("CompanionObject.kt")
|
||||
public void testCompanionObject() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/CompanionObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/publicField/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/asJava/lightClasses/lightClassByFqName/script")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user