InlineExposed usages are changed to PublishedApi
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ val ClassNode.effectiveAccess: Int get() = innerClassNode?.access ?: access
|
||||
val ClassNode.outerClassName: String? get() = innerClassNode?.outerName
|
||||
|
||||
|
||||
const val inlineExposedAnnotationName = "kotlin/internal/InlineExposed"
|
||||
const val inlineExposedAnnotationName = "kotlin/PublishedApi"
|
||||
fun ClassNode.isInlineExposed() = findAnnotation(inlineExposedAnnotationName, includeInvisible = true) != null
|
||||
fun MethodNode.isInlineExposed() = findAnnotation(inlineExposedAnnotationName, includeInvisible = true) != null
|
||||
fun FieldNode.isInlineExposed() = findAnnotation(inlineExposedAnnotationName, includeInvisible = true) != null
|
||||
|
||||
+6
-7
@@ -1,24 +1,23 @@
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
package cases.inline
|
||||
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal fun exposedForInline() {}
|
||||
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal class InternalClassExposed
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal constructor() {
|
||||
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal fun funExposed() {}
|
||||
|
||||
// TODO: Cover unsupported cases: requires correctly reflecting annotations from properties
|
||||
/*
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal var propertyExposed: String? = null
|
||||
|
||||
@JvmField
|
||||
@kotlin.internal.InlineExposed
|
||||
@PublishedApi
|
||||
internal var fieldExposed: String? = null
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user