aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-06-17 13:48:01 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-06-17 14:01:04 +0200
commitcabb4ae863ae41799ef8c11c5a2a1ef7fc34d22b (patch)
treed73a1d9dc52b129500bfbbe7ad7ecc822624b6bd /plugins/base/src/main/kotlin
parentd9c12f5da3d74a9d58bec1ffd755410b845d34d1 (diff)
downloaddokka-cabb4ae863ae41799ef8c11c5a2a1ef7fc34d22b.tar.gz
dokka-cabb4ae863ae41799ef8c11c5a2a1ef7fc34d22b.tar.bz2
dokka-cabb4ae863ae41799ef8c11c5a2a1ef7fc34d22b.zip
Add UnresolvedBound instead of throwing an exception
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt1
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt2
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
index a444d192..3b00320c 100644
--- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
+++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt
@@ -244,6 +244,7 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog
is Void -> link("Unit", DriOfUnit)
is PrimitiveJavaType -> signatureForProjection(p.translateToKotlin())
is Dynamic -> text("dynamic")
+ is UnresolvedBound -> text(p.name)
}
private fun funType(dri: DRI, sourceSets: Set<SourceSetData>, type: TypeConstructor) =
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index a5fa4189..6ec5c4f5 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -303,7 +303,7 @@ object DefaultPsiToDocumentableTranslator : SourceToDocumentableTranslator {
when (type) {
is PsiClassReferenceType -> {
val resolved: PsiClass = type.resolve()
- ?: throw IllegalStateException("${type.presentableText} cannot be resolved")
+ ?: return UnresolvedBound(type.presentableText)
if (resolved.qualifiedName == "java.lang.Object") {
JavaObject
} else {