[Minor] Re-format :kotlin-klib-commonizer and :kotlin-klib-commonizer-api
This commit is contained in:
committed by
Space
parent
f893709e5b
commit
05a6d89151
Vendored
+11
-3
@@ -1,5 +1,10 @@
|
||||
expect annotation class CommonAnnotationForAnnotationClassesOnly(text: String) { val text: String }
|
||||
expect annotation class CommonAnnotation(text: String) { val text: String }
|
||||
expect annotation class CommonAnnotationForAnnotationClassesOnly(text: String) {
|
||||
val text: String
|
||||
}
|
||||
|
||||
expect annotation class CommonAnnotation(text: String) {
|
||||
val text: String
|
||||
}
|
||||
|
||||
expect var propertyWithoutBackingField: Double
|
||||
expect val propertyWithBackingField: Double
|
||||
@@ -9,6 +14,9 @@ expect val <T : CharSequence> T.propertyWithExtensionReceiver: Int
|
||||
expect fun function1(text: String): String
|
||||
expect fun <Q : Number> Q.function2(): Q
|
||||
|
||||
expect class AnnotatedClass(value: String) { val value: String }
|
||||
expect class AnnotatedClass(value: String) {
|
||||
val value: String
|
||||
}
|
||||
typealias AnnotatedLiftedUpTypeAlias = AnnotatedClass
|
||||
|
||||
expect class AnnotatedNonLiftedUpTypeAlias
|
||||
|
||||
+14
-2
@@ -30,7 +30,13 @@ actual val propertyWithBackingField = 3.14
|
||||
@delegate:CommonAnnotation("field")
|
||||
actual val propertyWithDelegateField: Int by lazy { 42 }
|
||||
|
||||
actual val <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") T : CharSequence> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") T.propertyWithExtensionReceiver: Int
|
||||
actual val <
|
||||
@JsAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
T : CharSequence>
|
||||
@receiver:JsAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
T.propertyWithExtensionReceiver: Int
|
||||
get() = length
|
||||
|
||||
@JsAnnotation("function")
|
||||
@@ -39,7 +45,13 @@ actual fun function1(@JsAnnotation("parameter") @CommonAnnotation("parameter") t
|
||||
|
||||
@JsAnnotation("function")
|
||||
@CommonAnnotation("function")
|
||||
actual fun <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : Number> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): Q = this
|
||||
actual fun <
|
||||
@JsAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
Q : Number>
|
||||
@receiver:JsAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
Q.function2(): Q = this
|
||||
|
||||
@JsAnnotation("class")
|
||||
@CommonAnnotation("class")
|
||||
|
||||
+14
-2
@@ -30,7 +30,13 @@ actual val propertyWithBackingField = 3.14
|
||||
@delegate:CommonAnnotation("field")
|
||||
actual val propertyWithDelegateField: Int by lazy { 42 }
|
||||
|
||||
actual val <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") T : CharSequence> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") T.propertyWithExtensionReceiver: Int
|
||||
actual val <
|
||||
@JvmAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
T : CharSequence>
|
||||
@receiver:JvmAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
T.propertyWithExtensionReceiver: Int
|
||||
get() = length
|
||||
|
||||
@JvmAnnotation("function")
|
||||
@@ -39,7 +45,13 @@ actual fun function1(@JvmAnnotation("parameter") @CommonAnnotation("parameter")
|
||||
|
||||
@JvmAnnotation("function")
|
||||
@CommonAnnotation("function")
|
||||
actual fun <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : Number> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): Q = this
|
||||
actual fun <
|
||||
@JvmAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
Q : Number>
|
||||
@receiver:JvmAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
Q.function2(): Q = this
|
||||
|
||||
@JvmAnnotation("class")
|
||||
@CommonAnnotation("class")
|
||||
|
||||
+15
-2
@@ -30,7 +30,13 @@ val propertyWithBackingField = 3.14
|
||||
@delegate:CommonAnnotation("field")
|
||||
val propertyWithDelegateField: Int by lazy { 42 }
|
||||
|
||||
val <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") T : CharSequence> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") T.propertyWithExtensionReceiver: Int
|
||||
val <
|
||||
@JsAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
T : CharSequence>
|
||||
@receiver:JsAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
T.propertyWithExtensionReceiver: Int
|
||||
get() = length
|
||||
|
||||
@JsAnnotation("function")
|
||||
@@ -39,7 +45,14 @@ fun function1(@JsAnnotation("parameter") @CommonAnnotation("parameter") text: St
|
||||
|
||||
@JsAnnotation("function")
|
||||
@CommonAnnotation("function")
|
||||
fun <@JsAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @JsAnnotation("type1") @CommonAnnotation("type1") Number> @receiver:JsAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): @JsAnnotation("type2") @CommonAnnotation("type2") Q = this
|
||||
fun <
|
||||
@JsAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
Q : @JsAnnotation("type1")
|
||||
@CommonAnnotation("type1") Number>
|
||||
@receiver:JsAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
Q.function2(): @JsAnnotation("type2") @CommonAnnotation("type2") Q = this
|
||||
|
||||
@JsAnnotation("class")
|
||||
@CommonAnnotation("class")
|
||||
|
||||
+16
-2
@@ -30,7 +30,13 @@ val propertyWithBackingField = 3.14
|
||||
@delegate:CommonAnnotation("field")
|
||||
val propertyWithDelegateField: Int by lazy { 42 }
|
||||
|
||||
val <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") T : CharSequence> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") T.propertyWithExtensionReceiver: Int
|
||||
val <
|
||||
@JvmAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
T : CharSequence>
|
||||
@receiver:JvmAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
T.propertyWithExtensionReceiver: Int
|
||||
get() = length
|
||||
|
||||
@JvmAnnotation("function")
|
||||
@@ -39,7 +45,15 @@ fun function1(@JvmAnnotation("parameter") @CommonAnnotation("parameter") text: S
|
||||
|
||||
@JvmAnnotation("function")
|
||||
@CommonAnnotation("function")
|
||||
fun <@JvmAnnotation("type-parameter") @CommonAnnotation("type-parameter") Q : @JvmAnnotation("type1") @CommonAnnotation("type1") Number> @receiver:JvmAnnotation("receiver") @receiver:CommonAnnotation("receiver") Q.function2(): @JvmAnnotation("type2") @CommonAnnotation("type2") Q = this
|
||||
fun <
|
||||
@JvmAnnotation("type-parameter")
|
||||
@CommonAnnotation("type-parameter")
|
||||
Q : @JvmAnnotation("type1")
|
||||
@CommonAnnotation("type1")
|
||||
Number>
|
||||
@receiver:JvmAnnotation("receiver")
|
||||
@receiver:CommonAnnotation("receiver")
|
||||
Q.function2(): @JvmAnnotation("type2") @CommonAnnotation("type2") Q = this
|
||||
|
||||
@JvmAnnotation("class")
|
||||
@CommonAnnotation("class")
|
||||
|
||||
Reference in New Issue
Block a user