diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-28 17:51:54 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-05-28 17:51:54 +0200 |
commit | 2fc80c4aae0d2957b34b176b9a2a48cb5089f41c (patch) | |
tree | 6300a8e61bd7a586c45e262380e05e98e7360b72 /src/Kotlin/DocumentationBuilder.kt | |
parent | 157d8618814639fdd4843b01d29573e0447329c0 (diff) | |
download | dokka-2fc80c4aae0d2957b34b176b9a2a48cb5089f41c.tar.gz dokka-2fc80c4aae0d2957b34b176b9a2a48cb5089f41c.tar.bz2 dokka-2fc80c4aae0d2957b34b176b9a2a48cb5089f41c.zip |
report warnings for functions that contain unresolved types
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index 967c20ca..b1a5903e 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -486,6 +486,10 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, } fun FunctionDescriptor.build(): DocumentationNode { + if (ErrorUtils.containsErrorType(this)) { + logger.warn("Found an unresolved type in ${signatureWithSourceLocation()}") + } + val node = DocumentationNode(this, if (inCompanionObject()) Kind.CompanionObjectFunction else Kind.Function) node.appendInPageChildren(getTypeParameters(), DocumentationReference.Kind.Detail) |