Skip to content

Instantly share code, notes, and snippets.

@mehdiyari
Last active April 22, 2022 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehdiyari/79a04ede388da71bd7bd9d452ddad609 to your computer and use it in GitHub Desktop.
Save mehdiyari/79a04ede388da71bd7bd9d452ddad609 to your computer and use it in GitHub Desktop.
This gist is part of meta-programming with kotlin articles
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
@SinceKotlin("1.3")
annotation class Metadata(
@get:JvmName("k") val kind: Int = 1,
@get:JvmName("mv") val metadataVersion: IntArray = [],
@get:JvmName("bv") val bytecodeVersion: IntArray = [1, 0, 3],
@get:JvmName("di") val data1: Array<String> = [],
@get:JvmName("d2") val data2: Array<String> = [],
@get:JvmName("xs") val extraString: String = "",
@SinceKotlin("1.2") @get:JvmName("pn") val packageName: String = "",
@SinceKotlin("1.1") @get:JvmName("xi") val extraInt: Int = 0
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment