NoArg: Add compiler plugin

This commit is contained in:
Yan Zhulanow
2016-10-05 21:43:41 +03:00
committed by Yan Zhulanow
parent 6abde4223b
commit e626b121ad
28 changed files with 659 additions and 48 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,37 @@
@NoArg
@kotlin.Metadata
public final enum class Colors {
private synthetic final static field $VALUES: Colors[]
public final static field RED: Colors
public final static field WHITE: Colors
static method <clinit>(): void
protected 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
@kotlin.Metadata
public final class MyClass {
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
@NoArg
@kotlin.Metadata
public final class Obj {
public final static field INSTANCE: Obj
static method <clinit>(): void
private method <init>(): 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,34 @@
@NoArg
@kotlin.Metadata
public interface BaseIntf
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class MetaAnno
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg
@NoArg
@kotlin.Metadata
public final class Test {
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 {
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 {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@@ -0,0 +1,10 @@
annotation class NoArg
@NoArg
annotation class MyAnno
@MyAnno
interface Base
@MyAnno
class Test(a: String) : Base
@@ -0,0 +1,19 @@
@MyAnno
@kotlin.Metadata
public interface Base
@NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class MyAnno
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg
@MyAnno
@kotlin.Metadata
public final class Test {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@@ -0,0 +1,3 @@
annotation class NoArg
class Test(a: String)
@@ -0,0 +1,8 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg
@kotlin.Metadata
public final class Test {
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)
@@ -0,0 +1,15 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg2
@NoArg
@NoArg2
@kotlin.Metadata
public final class Test {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@@ -0,0 +1,4 @@
annotation class NoArg
@NoArg
class Test(a: String)
@@ -0,0 +1,10 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class NoArg
@NoArg
@kotlin.Metadata
public final class Test {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@@ -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()
@@ -0,0 +1,31 @@
@NoArg
@kotlin.Metadata
public abstract class BaseClass {
public method <init>(): void
}
@NoArg
@kotlin.Metadata
public interface BaseIntf
@kotlin.Metadata
public final class MyClass {
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
@kotlin.Metadata
public class Test1 {
public method <init>(): void
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
}
@kotlin.Metadata
public final class Test12 {
public method <init>(): void
public method <init>(p0: int): void
}