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

org.jetbrains.dokka.analysis.Documentable.kt Maven / Gradle / Ivy

Go to download

Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java

There is a newer version: 1.8.20
Show newest version
package org.jetbrains.dokka.analysis

import com.intellij.psi.PsiNamedElement
import org.jetbrains.dokka.model.DocumentableSource
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.load.kotlin.toSourceElement

class DescriptorDocumentableSource(val descriptor: DeclarationDescriptor) : DocumentableSource {
    override val path = descriptor.toSourceElement.containingFile.toString()
}

class PsiDocumentableSource(val psi: PsiNamedElement) : DocumentableSource {
    override val path = psi.containingFile.virtualFile.path
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy