diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:35:10 +0300 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:35:10 +0300 |
commit | 3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871 (patch) | |
tree | a1a5210da09fd0839755fa43005a9eac3640b772 /src/Model/DocumentationNode.kt | |
parent | 54dee60b9cde7fc1fd808b19bc922e235fd90c04 (diff) | |
download | dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.gz dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.bz2 dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.zip |
Review and fixes.
Diffstat (limited to 'src/Model/DocumentationNode.kt')
-rw-r--r-- | src/Model/DocumentationNode.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 5469774d..c96c383d 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -12,7 +12,7 @@ public open class DocumentationNode(val descriptor: DeclarationDescriptor, private val references = LinkedHashSet<DocumentationReference>() public val owner: DocumentationNode? - get() = references(DocumentationReference.Kind.Owner).firstOrNull()?.to // TODO: should be singleOrNull, but bugz! + get() = references(DocumentationReference.Kind.Owner).singleOrNull()?.to public val details: List<DocumentationNode> get() = references(DocumentationReference.Kind.Detail).map { it.to } public val members: List<DocumentationNode> |