aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-01-22 11:40:47 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-28 22:05:38 +0100
commitc3b911f286186a790be607e9b803e3ed63c77289 (patch)
tree0ede20415d8e03cbd0fbcf7896be7a39caaa3bcc /core/src/main/kotlin/pages
parent172c7ab00771e3a447ea03c3a81d589eb932c3fb (diff)
downloaddokka-c3b911f286186a790be607e9b803e3ed63c77289.tar.gz
dokka-c3b911f286186a790be607e9b803e3ed63c77289.tar.bz2
dokka-c3b911f286186a790be607e9b803e3ed63c77289.zip
Patch Java analysis
Diffstat (limited to 'core/src/main/kotlin/pages')
-rw-r--r--core/src/main/kotlin/pages/PageContentBuilder.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/kotlin/pages/PageContentBuilder.kt b/core/src/main/kotlin/pages/PageContentBuilder.kt
index 25ddc2f1..d56a6d70 100644
--- a/core/src/main/kotlin/pages/PageContentBuilder.kt
+++ b/core/src/main/kotlin/pages/PageContentBuilder.kt
@@ -166,10 +166,13 @@ class DefaultPageContentBuilder(
private fun PageContentBuilder.type(t: TypeWrapper) {
if (t.constructorNamePathSegments.isNotEmpty() && t.dri != null)
link(t.constructorNamePathSegments.last(), t.dri!!)
+ else if (t.constructorNamePathSegments.isNotEmpty() && t.dri == null)
+ text(t.toString())
else (this as? DefaultPageContentBuilder)?.let {
logger.error("type $t cannot be resolved")
- text(t.toString())
+ text("???")
}
+
list(t.arguments, prefix = "<", suffix = ">") {
type(it)
}