aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationModel.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/DocumentationModel.kt')
-rw-r--r--src/Model/DocumentationModel.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Model/DocumentationModel.kt b/src/Model/DocumentationModel.kt
index aa8d9a6b..83aa911f 100644
--- a/src/Model/DocumentationModel.kt
+++ b/src/Model/DocumentationModel.kt
@@ -40,8 +40,8 @@ public open class DocumentationNode(val name: String,
val scope: JetScope) {
private val references = arrayListOf<DocumentationReference>()
- public val owner: DocumentationNode
- get() = references(DocumentationReferenceKind.Owner).single().to
+ public val owner: DocumentationNode?
+ get() = references(DocumentationReferenceKind.Owner).firstOrNull()?.to // TODO: should be singleOrNull, but bugz!
public val details: List<DocumentationNode>
get() = references(DocumentationReferenceKind.Detail).map { it.to }
public val members: List<DocumentationNode>
@@ -62,7 +62,7 @@ public open class DocumentationNode(val name: String,
public fun allReferences(): List<DocumentationReference> = references
public override fun toString(): String {
- return "$kind $name"
+ return "$kind:$name"
}
}