diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-06-17 13:48:01 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-17 14:01:04 +0200 |
commit | cabb4ae863ae41799ef8c11c5a2a1ef7fc34d22b (patch) | |
tree | d73a1d9dc52b129500bfbbe7ad7ecc822624b6bd /plugins/base/src/main/kotlin | |
parent | d9c12f5da3d74a9d58bec1ffd755410b845d34d1 (diff) | |
download | dokka-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.kt | 1 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt | 2 |
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 { |