InlineExposed usages are changed to PublishedApi

This commit is contained in:
Mikhael Bogdanov
2016-11-30 14:26:41 +01:00
parent 0f813d5cfe
commit 95a47e56f7
22 changed files with 45 additions and 91 deletions
@@ -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
@@ -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
*/