aboutsummaryrefslogtreecommitdiff
path: root/javadoc
diff options
context:
space:
mode:
authorSergey Mashkov <sergey.mashkov@jetbrains.com>2015-08-06 11:33:32 +0300
committerSergey Mashkov <sergey.mashkov@jetbrains.com>2015-08-06 11:33:32 +0300
commit3097aaae486b952c9a4ca570c6189ce1147aec67 (patch)
treed522e6a932416d2f1d85925c7e53e3e518e1d044 /javadoc
parente1f7ce7a16954d238345fe0e30257492c0886f37 (diff)
downloaddokka-3097aaae486b952c9a4ca570c6189ce1147aec67.tar.gz
dokka-3097aaae486b952c9a4ca570c6189ce1147aec67.tar.bz2
dokka-3097aaae486b952c9a4ca570c6189ce1147aec67.zip
~ respect platform static
Diffstat (limited to 'javadoc')
-rw-r--r--javadoc/src/main/kotlin/docbase.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/javadoc/src/main/kotlin/docbase.kt b/javadoc/src/main/kotlin/docbase.kt
index a513a3e1..bafc96eb 100644
--- a/javadoc/src/main/kotlin/docbase.kt
+++ b/javadoc/src/main/kotlin/docbase.kt
@@ -5,6 +5,7 @@ import org.jetbrains.dokka.*
import java.lang.reflect.Modifier
import java.util.Collections
import java.util.HashSet
+import kotlin.platform.platformStatic
open class DocumentationNodeBareAdapter(val docNode: DocumentationNode) : Doc {
private var rawCommentText_ = rawCommentText
@@ -100,6 +101,7 @@ class ProgramElementAdapter(module: ModuleNodeAdapter, val node: DocumentationNo
override fun isPublic(): Boolean = true
override fun isPackagePrivate(): Boolean = false
override fun isStatic(): Boolean = node.owner?.kind in listOf(DocumentationNode.Kind.Package, DocumentationNode.Kind.ExternalClass)
+ || platformStatic::class.qualifiedName in node.annotations.map { it.qualifiedName }
override fun modifierSpecifier(): Int = Modifier.PUBLIC + if (isStatic) Modifier.STATIC else 0
override fun qualifiedName(): String? = node.qualifiedName
override fun annotations(): Array<out AnnotationDesc>? = node.annotations.map { AnnotationDescAdapter(module, it) }.toTypedArray()