From a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 14 Jul 2014 15:00:33 +0400 Subject: Location services, formatting services, initial self-documentation output. --- src/Model/DocumentationNode.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Model/DocumentationNode.kt') diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 8132c419..5469774d 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -73,4 +73,10 @@ public open class DocumentationNode(val descriptor: DeclarationDescriptor, } - +val DocumentationNode.path: List + get() { + val parent = owner + if (parent == null) + return listOf(this) + return parent.path + this + } \ No newline at end of file -- cgit