diff options
author | Goooler <wangzongler@gmail.com> | 2022-02-15 17:38:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 12:38:10 +0300 |
commit | 2372302f4bc3b4bf49beb0d477eebdd9ac99a78f (patch) | |
tree | 3a984a8ecdd63da74dfd48a777cc56200ee1d666 /plugins/base/src/main/kotlin/translators | |
parent | b0244f69277f492eb87694cf34cc620a265adbcb (diff) | |
download | dokka-2372302f4bc3b4bf49beb0d477eebdd9ac99a78f.tar.gz dokka-2372302f4bc3b4bf49beb0d477eebdd9ac99a78f.tar.bz2 dokka-2372302f4bc3b4bf49beb0d477eebdd9ac99a78f.zip |
Convert interfaces to functional (#2360)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators')
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/translators/descriptors/ExternalClasslikesTranslator.kt b/plugins/base/src/main/kotlin/translators/descriptors/ExternalClasslikesTranslator.kt index ec4d1ee9..a5385c46 100644 --- a/plugins/base/src/main/kotlin/translators/descriptors/ExternalClasslikesTranslator.kt +++ b/plugins/base/src/main/kotlin/translators/descriptors/ExternalClasslikesTranslator.kt @@ -7,6 +7,6 @@ import org.jetbrains.kotlin.descriptors.ClassDescriptor /** * Service translating [ClassDescriptor]s of symbols defined outside of documented project to [DClasslike]s. */ -interface ExternalClasslikesTranslator { +fun interface ExternalClasslikesTranslator { fun translateClassDescriptor(descriptor: ClassDescriptor, sourceSet: DokkaSourceSet): DClasslike }
\ No newline at end of file diff --git a/plugins/base/src/main/kotlin/translators/descriptors/ExternalDocumentablesProvider.kt b/plugins/base/src/main/kotlin/translators/descriptors/ExternalDocumentablesProvider.kt index c1dbfc28..e6d499f4 100644 --- a/plugins/base/src/main/kotlin/translators/descriptors/ExternalDocumentablesProvider.kt +++ b/plugins/base/src/main/kotlin/translators/descriptors/ExternalDocumentablesProvider.kt @@ -11,7 +11,7 @@ import org.jetbrains.dokka.model.DClasslike * in the project itself but are somehow related to the symbols defined in the documented project (e.g. are supertypes * of classes defined in project). */ -interface ExternalDocumentablesProvider { +fun interface ExternalDocumentablesProvider { /** * Returns [DClasslike] matching provided [DRI] in specified source set. diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt index 13d17f52..f93f7d6d 100644 --- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt +++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt @@ -30,7 +30,7 @@ import org.jsoup.nodes.Node import org.jsoup.nodes.TextNode import java.util.* -interface JavaDocumentationParser { +fun interface JavaDocumentationParser { fun parseDocumentation(element: PsiNamedElement): DocumentationNode } |