aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/PageContentBuilder.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/pages/PageContentBuilder.kt')
-rw-r--r--core/src/main/kotlin/pages/PageContentBuilder.kt17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/src/main/kotlin/pages/PageContentBuilder.kt b/core/src/main/kotlin/pages/PageContentBuilder.kt
index efe23b5a..d5ffe27a 100644
--- a/core/src/main/kotlin/pages/PageContentBuilder.kt
+++ b/core/src/main/kotlin/pages/PageContentBuilder.kt
@@ -1,12 +1,12 @@
package org.jetbrains.dokka.pages
-import org.jetbrains.dokka.model.doc.DocTag
-import org.jetbrains.dokka.utilities.DokkaLogger
+import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.model.Documentable
import org.jetbrains.dokka.model.Function
import org.jetbrains.dokka.model.Parameter
import org.jetbrains.dokka.model.TypeWrapper
-import org.jetbrains.dokka.links.DRI
+import org.jetbrains.dokka.model.doc.DocTag
+import org.jetbrains.dokka.utilities.DokkaLogger
class DefaultPageContentBuilder(
private val dri: Set<DRI>,
@@ -169,10 +169,9 @@ private fun PageContentBuilder.type(t: TypeWrapper) {
else if (t.constructorNamePathSegments.isNotEmpty() && t.dri == null)
text(t.toString())
else (this as? DefaultPageContentBuilder)?.let {
- logger.error("type $t cannot be resolved")
- text("???")
- }
-
+ logger.error("type $t cannot be resolved")
+ text("???")
+ }
list(t.arguments, prefix = "<", suffix = ">") {
type(it)
}
@@ -199,8 +198,8 @@ interface PageContentBuilder {
fun header(level: Int, block: PageContentBuilderFunction)
fun <T> list(
elements: List<T>,
- prefix: String = "",
- suffix: String = "",
+ prefix: String = "",
+ suffix: String = "",
separator: String = ",",
operation: PageContentBuilder.(T) -> Unit
)