[NoArg] Reorganize module structure of NoArg plugin

This commit is contained in:
Dmitriy Novozhilov
2022-05-17 17:05:31 +03:00
committed by teamcity
parent 0f757c300a
commit 8fc4962213
53 changed files with 88 additions and 33 deletions
@@ -0,0 +1,19 @@
@NoArg
annotation class NoArg
@NoArg
interface Intf
@NoArg
enum class Colors { RED, WHITE }
@NoArg
object Obj
class MyClass(a: Int) {
@NoArg
fun someFun() {}
@field:NoArg @get:NoArg @set:NoArg
var abc: String = ""
}
@@ -0,0 +1,44 @@
@NoArg
@kotlin.Metadata
public final enum class Colors {
// source: 'annoOnNotClass.kt'
private synthetic final static field $VALUES: Colors[]
public final enum static field RED: Colors
public final enum static field WHITE: Colors
static method <clinit>(): void
private method <init>(p0: java.lang.String, p1: int): void
public static method valueOf(p0: java.lang.String): Colors
public static method values(): Colors[]
}
@NoArg
@kotlin.Metadata
public interface Intf {
// source: 'annoOnNotClass.kt'
}
@kotlin.Metadata
public final class MyClass {
// source: 'annoOnNotClass.kt'
private @NoArg @org.jetbrains.annotations.NotNull field abc: java.lang.String
public method <init>(p0: int): void
public final @NoArg @org.jetbrains.annotations.NotNull method getAbc(): java.lang.String
public final @NoArg method setAbc(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
public final @NoArg method someFun(): void
}
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'annoOnNotClass.kt'
}
@NoArg
@kotlin.Metadata
public final class Obj {
// source: 'annoOnNotClass.kt'
public final static @org.jetbrains.annotations.NotNull field INSTANCE: Obj
static method <clinit>(): void
private method <init>(): void
}
@@ -0,0 +1,45 @@
@NoArg
@kotlin.Metadata
public final enum class Colors {
// source: 'annoOnNotClass.kt'
private synthetic final static field $VALUES: Colors[]
public final enum static field RED: Colors
public final enum static field WHITE: Colors
private synthetic final static method $values(): Colors[]
static method <clinit>(): void
private method <init>(p0: java.lang.String, p1: int): void
public static method valueOf(p0: java.lang.String): Colors
public static method values(): Colors[]
}
@NoArg
@kotlin.Metadata
public interface Intf {
// source: 'annoOnNotClass.kt'
}
@kotlin.Metadata
public final class MyClass {
// source: 'annoOnNotClass.kt'
private @NoArg @org.jetbrains.annotations.NotNull field abc: java.lang.String
public method <init>(p0: int): void
public final @NoArg @org.jetbrains.annotations.NotNull method getAbc(): java.lang.String
public final @NoArg method setAbc(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
public final @NoArg method someFun(): void
}
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'annoOnNotClass.kt'
}
@NoArg
@kotlin.Metadata
public final class Obj {
// source: 'annoOnNotClass.kt'
public final static @org.jetbrains.annotations.NotNull field INSTANCE: Obj
static method <clinit>(): void
private method <init>(): void
}
@@ -0,0 +1,10 @@
annotation class NoArg
@NoArg
class Internal internal constructor(z: Boolean)
@NoArg
abstract class Protected protected constructor(c: Char)
@NoArg
class Private private constructor(ia: IntArray)
@@ -0,0 +1,29 @@
@NoArg
@kotlin.Metadata
public final class Internal {
// source: 'constructorVisibility.kt'
public method <init>(): void
public method <init>(p0: boolean): void
}
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'constructorVisibility.kt'
}
@NoArg
@kotlin.Metadata
public final class Private {
// source: 'constructorVisibility.kt'
public method <init>(): void
private method <init>(p0: int[]): void
}
@NoArg
@kotlin.Metadata
public abstract class Protected {
// source: 'constructorVisibility.kt'
public method <init>(): void
protected method <init>(p0: char): void
}
@@ -0,0 +1,19 @@
annotation class NoArg
@NoArg
annotation class MetaAnno
@NoArg
interface BaseIntf
@NoArg
class Test(a: String = "", i: Int = 2)
class Test2 : BaseIntf {
constructor(a: String = "", b: Long = 0L) {}
}
@MetaAnno
class Test3(a: String) {
constructor() : this("") {}
}
@@ -0,0 +1,43 @@
@NoArg
@kotlin.Metadata
public interface BaseIntf {
// source: 'defaultParameters.kt'
}
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class MetaAnno {
// source: 'defaultParameters.kt'
}
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'defaultParameters.kt'
}
@NoArg
@kotlin.Metadata
public final class Test {
// source: 'defaultParameters.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: int): void
public synthetic method <init>(p0: java.lang.String, p1: int, p2: int, p3: kotlin.jvm.internal.DefaultConstructorMarker): void
}
@kotlin.Metadata
public final class Test2 {
// source: 'defaultParameters.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String, p1: long): void
public synthetic method <init>(p0: java.lang.String, p1: long, p2: int, p3: kotlin.jvm.internal.DefaultConstructorMarker): void
}
@MetaAnno
@kotlin.Metadata
public final class Test3 {
// source: 'defaultParameters.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
+10
View File
@@ -0,0 +1,10 @@
annotation class NoArg
@NoArg
annotation class MyAnno
@MyAnno
interface Base
@MyAnno
class Test(a: String) : Base
+26
View File
@@ -0,0 +1,26 @@
@MyAnno
@kotlin.Metadata
public interface Base {
// source: 'inherited.kt'
}
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class MyAnno {
// source: 'inherited.kt'
}
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'inherited.kt'
}
@MyAnno
@kotlin.Metadata
public final class Test {
// source: 'inherited.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
+6
View File
@@ -0,0 +1,6 @@
annotation class NoArg
class Outer {
@NoArg
class Nested(a: Long)
}
+21
View File
@@ -0,0 +1,21 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'nestedClass.kt'
}
@NoArg
@kotlin.Metadata
public final class Outer$Nested {
// source: 'nestedClass.kt'
public method <init>(): void
public method <init>(p0: long): void
public final inner class Outer$Nested
}
@kotlin.Metadata
public final class Outer {
// source: 'nestedClass.kt'
public method <init>(): void
public final inner class Outer$Nested
}
+3
View File
@@ -0,0 +1,3 @@
annotation class NoArg
class Test(a: String)
+11
View File
@@ -0,0 +1,11 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'noNoArg.kt'
}
@kotlin.Metadata
public final class Test {
// source: 'noNoArg.kt'
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@@ -0,0 +1,5 @@
annotation class NoArg
annotation class NoArg2
@NoArg @NoArg2
class Test(a: String)
+20
View File
@@ -0,0 +1,20 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'severalNoArg.kt'
}
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg2 {
// source: 'severalNoArg.kt'
}
@NoArg
@NoArg2
@kotlin.Metadata
public final class Test {
// source: 'severalNoArg.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
+4
View File
@@ -0,0 +1,4 @@
annotation class NoArg
@NoArg
class Test(a: String)
+13
View File
@@ -0,0 +1,13 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'simple.kt'
}
@NoArg
@kotlin.Metadata
public final class Test {
// source: 'simple.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
+13
View File
@@ -0,0 +1,13 @@
annotation class NoArg
@NoArg
interface BaseIntf
open class Test1(a: String) : BaseIntf
class Test12(b: Int) : Test1("")
@NoArg
abstract class BaseClass
class MyClass(a: String) : BaseClass()
+39
View File
@@ -0,0 +1,39 @@
@NoArg
@kotlin.Metadata
public abstract class BaseClass {
// source: 'superTypes.kt'
public method <init>(): void
}
@NoArg
@kotlin.Metadata
public interface BaseIntf {
// source: 'superTypes.kt'
}
@kotlin.Metadata
public final class MyClass {
// source: 'superTypes.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg {
// source: 'superTypes.kt'
}
@kotlin.Metadata
public class Test1 {
// source: 'superTypes.kt'
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@kotlin.Metadata
public final class Test12 {
// source: 'superTypes.kt'
public method <init>(): void
public method <init>(p0: int): void
}