All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.dokka.kotlin-as-java-plugin.1.9.10.source-code.jvmSynthetic.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
/*
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package org.jetbrains.dokka.kotlinAsJava

import org.jetbrains.dokka.model.Annotations
import org.jetbrains.dokka.model.properties.WithExtraProperties

internal fun  WithExtraProperties.hasJvmSynthetic(): Boolean {
    return extra[Annotations]
        ?.directAnnotations
        ?.entries
        ?.any { (_, annotations) ->
            annotations.any { it.dri.packageName == "kotlin.jvm" && it.dri.classNames == "JvmSynthetic" }
        } == true
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy