A couple of functions in stdlib are marked with @InlineExposed.

This commit is contained in:
Alexander Gorshenev
2017-04-15 22:43:51 +03:00
committed by alexander-gorshenev
parent f959c4e43c
commit d79875ac7c
3 changed files with 8 additions and 2 deletions
@@ -57,6 +57,9 @@ internal tailrec fun DeclarationDescriptor.isExported(): Boolean {
if (this.annotations.hasAnnotation(publishedApiAnnotation)){
return true
}
if (this.annotations.hasAnnotation(inlineExposedAnnotation)){
return true
}
if (this is ConstructorDescriptor && constructedClass.kind.isSingleton) {
@@ -87,6 +90,8 @@ private val exportForCompilerAnnotation = FqName("konan.internal.ExportForCompil
private val publishedApiAnnotation = FqName("kotlin.PublishedApi")
private val inlineExposedAnnotation = FqName("kotlin.internal.InlineExposed")
private fun acyclicTypeMangler(visited: MutableSet<TypeParameterDescriptor>, type: KotlinType): String {
val descriptor = TypeUtils.getTypeParameterDescriptorOrNull(type)
if (descriptor != null) {