diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-02-18 17:47:14 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-19 12:56:26 +0100 |
commit | bee52be815bebd7012193728521636b5fbed2829 (patch) | |
tree | 5195190ed7944ee602ce177b04f7184d913c3bf6 /core/src/main/kotlin/transformers | |
parent | 16c84aff273a4bcef88f7e808e8b8eba2e7fd313 (diff) | |
download | dokka-bee52be815bebd7012193728521636b5fbed2829.tar.gz dokka-bee52be815bebd7012193728521636b5fbed2829.tar.bz2 dokka-bee52be815bebd7012193728521636b5fbed2829.zip |
Rename extensions to make them more uniform
Diffstat (limited to 'core/src/main/kotlin/transformers')
-rw-r--r-- | core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentableTranslator.kt (renamed from core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentationTranslator.kt) | 3 | ||||
-rw-r--r-- | core/src/main/kotlin/transformers/documentation/DocumentableToPageTranslator.kt (renamed from core/src/main/kotlin/transformers/documentation/DocumentablesToPageTranslator.kt) | 3 | ||||
-rw-r--r-- | core/src/main/kotlin/transformers/documentation/DocumentableTransformer.kt (renamed from core/src/main/kotlin/transformers/documentation/DocumentationNodeTransformer.kt) | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/transformers/pages/PageTransformer.kt (renamed from core/src/main/kotlin/transformers/pages/PageNodeTransformer.kt) | 4 | ||||
-rw-r--r-- | core/src/main/kotlin/transformers/psi/PsiToDocumentableTranslator.kt (renamed from core/src/main/kotlin/transformers/psi/PsiToDocumentationTranslator.kt) | 2 |
5 files changed, 5 insertions, 9 deletions
diff --git a/core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentationTranslator.kt b/core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentableTranslator.kt index 5074833e..d72eeafd 100644 --- a/core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentationTranslator.kt +++ b/core/src/main/kotlin/transformers/descriptors/DescriptorToDocumentableTranslator.kt @@ -2,10 +2,9 @@ package org.jetbrains.dokka.transformers.descriptors import org.jetbrains.dokka.model.Module import org.jetbrains.dokka.pages.PlatformData -import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor -interface DescriptorToDocumentationTranslator { +interface DescriptorToDocumentableTranslator { fun invoke( moduleName: String, packageFragments: Iterable<PackageFragmentDescriptor>, diff --git a/core/src/main/kotlin/transformers/documentation/DocumentablesToPageTranslator.kt b/core/src/main/kotlin/transformers/documentation/DocumentableToPageTranslator.kt index 19698fa0..e41e0c84 100644 --- a/core/src/main/kotlin/transformers/documentation/DocumentablesToPageTranslator.kt +++ b/core/src/main/kotlin/transformers/documentation/DocumentableToPageTranslator.kt @@ -2,8 +2,7 @@ package org.jetbrains.dokka.transformers.documentation import org.jetbrains.dokka.model.Module import org.jetbrains.dokka.pages.ModulePageNode -import org.jetbrains.dokka.plugability.DokkaContext -interface DocumentablesToPageTranslator { +interface DocumentableToPageTranslator { operator fun invoke(module: Module): ModulePageNode }
\ No newline at end of file diff --git a/core/src/main/kotlin/transformers/documentation/DocumentationNodeTransformer.kt b/core/src/main/kotlin/transformers/documentation/DocumentableTransformer.kt index d6358f07..88a1514d 100644 --- a/core/src/main/kotlin/transformers/documentation/DocumentationNodeTransformer.kt +++ b/core/src/main/kotlin/transformers/documentation/DocumentableTransformer.kt @@ -3,6 +3,6 @@ package org.jetbrains.dokka.transformers.documentation import org.jetbrains.dokka.model.Module import org.jetbrains.dokka.plugability.DokkaContext -interface DocumentationNodeTransformer { +interface DocumentableTransformer { operator fun invoke(original: Module, context: DokkaContext): Module }
\ No newline at end of file diff --git a/core/src/main/kotlin/transformers/pages/PageNodeTransformer.kt b/core/src/main/kotlin/transformers/pages/PageTransformer.kt index 45357060..218d9821 100644 --- a/core/src/main/kotlin/transformers/pages/PageNodeTransformer.kt +++ b/core/src/main/kotlin/transformers/pages/PageTransformer.kt @@ -1,9 +1,7 @@ package org.jetbrains.dokka.transformers.pages -import org.jetbrains.dokka.pages.ModulePageNode import org.jetbrains.dokka.pages.RootPageNode -import org.jetbrains.dokka.plugability.DokkaContext -interface PageNodeTransformer { +interface PageTransformer { operator fun invoke(input: RootPageNode): RootPageNode }
\ No newline at end of file diff --git a/core/src/main/kotlin/transformers/psi/PsiToDocumentationTranslator.kt b/core/src/main/kotlin/transformers/psi/PsiToDocumentableTranslator.kt index 41290ef8..1ea07ff3 100644 --- a/core/src/main/kotlin/transformers/psi/PsiToDocumentationTranslator.kt +++ b/core/src/main/kotlin/transformers/psi/PsiToDocumentableTranslator.kt @@ -5,7 +5,7 @@ import org.jetbrains.dokka.model.Module import org.jetbrains.dokka.pages.PlatformData import org.jetbrains.dokka.plugability.DokkaContext -interface PsiToDocumentationTranslator { +interface PsiToDocumentableTranslator { fun invoke( moduleName: String, psiFiles: List<PsiJavaFile>, |