aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-12-02 13:44:23 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-12-02 13:44:23 +0100
commit610ca01d0e2d6443f19b4218b26863cdacce07f1 (patch)
tree6524ba73c746d1056f6e22b8aa13317ea70180e6 /src/Kotlin
parent8ce8efd357a3e1b777c7a71f2f10fb12068bdf59 (diff)
downloaddokka-610ca01d0e2d6443f19b4218b26863cdacce07f1.tar.gz
dokka-610ca01d0e2d6443f19b4218b26863cdacce07f1.tar.bz2
dokka-610ca01d0e2d6443f19b4218b26863cdacce07f1.zip
a ScriptDescriptor is a ClassDescriptor now
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/DocumentationBuilder.kt3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt
index f45da4fe..6551ded6 100644
--- a/src/Kotlin/DocumentationBuilder.kt
+++ b/src/Kotlin/DocumentationBuilder.kt
@@ -275,7 +275,6 @@ class DocumentationBuilder
fun DeclarationDescriptor.build(): DocumentationNode = when (this) {
is ClassDescriptor -> build()
is ConstructorDescriptor -> build()
- is ScriptDescriptor -> build()
is PropertyDescriptor -> build()
is FunctionDescriptor -> build()
is TypeParameterDescriptor -> build()
@@ -284,8 +283,6 @@ class DocumentationBuilder
else -> throw IllegalStateException("Descriptor $this is not known")
}
- fun ScriptDescriptor.build(): DocumentationNode = classDescriptor.build()
-
fun ClassDescriptor.build(): DocumentationNode {
val kind = when (kind) {
ClassKind.OBJECT -> Kind.Object