blob: e866ec8bb0a468c2fd06e2f06d2fd12e8f9be884 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package org.jetbrains.dokka.kotlinAsJava
import org.jetbrains.dokka.model.Annotations
import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.properties.WithExtraProperties
internal fun WithExtraProperties<out Documentable>.hasJvmSynthetic(): Boolean {
return extra[Annotations]
?.directAnnotations
?.entries
?.any { (_, annotations) ->
annotations.any { it.dri.packageName == "kotlin.jvm" && it.dri.classNames == "JvmSynthetic" }
} == true
}
|