diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 15:00:33 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 15:00:33 +0400 |
commit | a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d (patch) | |
tree | c68610d2003d2a4712b3fbc95561ac20390a161d /src/Model | |
parent | 6168541bd5bb141c40a1e2a909afa84441b35ed5 (diff) | |
download | dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.tar.gz dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.tar.bz2 dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.zip |
Location services, formatting services, initial self-documentation output.
Diffstat (limited to 'src/Model')
-rw-r--r-- | src/Model/Diagnostics.kt | 2 | ||||
-rw-r--r-- | src/Model/DocumentationNode.kt | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/Model/Diagnostics.kt b/src/Model/Diagnostics.kt index a464107f..1077da7c 100644 --- a/src/Model/Diagnostics.kt +++ b/src/Model/Diagnostics.kt @@ -4,7 +4,7 @@ import org.jetbrains.jet.lang.descriptors.* import org.jetbrains.jet.lang.resolve.name.* import org.jetbrains.jet.lang.resolve.BindingContext -fun BindingContext.checkResolveChildren(node : DocumentationNode) { +fun BindingContext.checkResolveChildren(node: DocumentationNode) { if (node.kind != DocumentationNode.Kind.Module && node.kind != DocumentationNode.Kind.Package) { // TODO: we don't resolve packages and modules for now 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<DocumentationNode> + get() { + val parent = owner + if (parent == null) + return listOf(this) + return parent.path + this + }
\ No newline at end of file |