aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationResolver.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/DocumentationResolver.kt')
-rw-r--r--src/Model/DocumentationResolver.kt10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Model/DocumentationResolver.kt b/src/Model/DocumentationResolver.kt
index e69a70f8..b5b6b1a2 100644
--- a/src/Model/DocumentationResolver.kt
+++ b/src/Model/DocumentationResolver.kt
@@ -23,10 +23,18 @@ fun DocumentationNode.checkResolve() {
}
if (symbol == null)
- throw IllegalStateException("Cannot resolve $item in $this")
+ println("WARNING: Cannot resolve $item in ${path(this)}")
}
for (reference in allReferences().filterNot { it.kind == DocumentationReferenceKind.Owner }) {
reference.to.checkResolve()
}
+}
+
+fun path(node: DocumentationNode) : String {
+ val owner = node.owner
+ if (owner != null)
+ return "$node in ${path(owner)}"
+ else
+ return "$node"
} \ No newline at end of file