aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-05-29 13:52:43 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-05-29 13:52:43 +0200
commit64414ce984bc86e09b8724adbd01f1cb2646c17e (patch)
tree802710da5009b0b86519cc7cde9cdb6685cc7c99 /src/Model
parent2fc80c4aae0d2957b34b176b9a2a48cb5089f41c (diff)
downloaddokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.gz
dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.tar.bz2
dokka-64414ce984bc86e09b8724adbd01f1cb2646c17e.zip
apply code cleanup; fix couple of deprecations manually
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Content.kt8
-rw-r--r--src/Model/DocumentationNode.kt56
-rw-r--r--src/Model/DocumentationReference.kt18
3 files changed, 41 insertions, 41 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt
index 30ec1fda..b442cd73 100644
--- a/src/Model/Content.kt
+++ b/src/Model/Content.kt
@@ -27,9 +27,9 @@ public open class ContentBlock() : ContentNode() {
}
enum class IdentifierKind {
- TypeName
- ParameterName
- AnnotationName
+ TypeName,
+ ParameterName,
+ AnnotationName,
Other
}
@@ -126,7 +126,7 @@ public open class Content(): ContentBlock() {
public open val description: ContentNode get() = ContentEmpty
fun findSectionByTag(tag: String): ContentSection? =
- sections.firstOrNull { tag.equalsIgnoreCase(it.tag) }
+ sections.firstOrNull { tag.equals(it.tag, ignoreCase = true) }
companion object {
val Empty = Content()
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt
index 6800abef..7f862183 100644
--- a/src/Model/DocumentationNode.kt
+++ b/src/Model/DocumentationNode.kt
@@ -64,43 +64,43 @@ public open class DocumentationNode(val name: String,
}
public enum class Kind {
- Unknown
+ Unknown,
- Package
- Class
- Interface
- Enum
- AnnotationClass
- EnumItem
- Object
+ Package,
+ Class,
+ Interface,
+ Enum,
+ AnnotationClass,
+ EnumItem,
+ Object,
- Constructor
- Function
- Property
+ Constructor,
+ Function,
+ Property,
- CompanionObjectProperty
- CompanionObjectFunction
+ CompanionObjectProperty,
+ CompanionObjectFunction,
- Parameter
- Receiver
- TypeParameter
- Type
- Supertype
- UpperBound
- LowerBound
- Exception
+ Parameter,
+ Receiver,
+ TypeParameter,
+ Type,
+ Supertype,
+ UpperBound,
+ LowerBound,
+ Exception,
- Modifier
- NullabilityModifier
+ Modifier,
+ NullabilityModifier,
- Module
+ Module,
- ExternalClass
- Annotation
+ ExternalClass,
+ Annotation,
- Value
+ Value,
- SourceUrl
+ SourceUrl,
/**
* A note which is rendered once on a page documenting a group of overloaded functions.
diff --git a/src/Model/DocumentationReference.kt b/src/Model/DocumentationReference.kt
index b563b058..a61ac65f 100644
--- a/src/Model/DocumentationReference.kt
+++ b/src/Model/DocumentationReference.kt
@@ -2,15 +2,15 @@ package org.jetbrains.dokka
public data class DocumentationReference(val from: DocumentationNode, val to: DocumentationNode, val kind: DocumentationReference.Kind) {
public enum class Kind {
- Owner
- Member
- Detail
- Link
- Extension
- Inheritor
- Override
- Annotation
- Deprecation
+ Owner,
+ Member,
+ Detail,
+ Link,
+ Extension,
+ Inheritor,
+ Override,
+ Annotation,
+ Deprecation,
TopLevelPage
}
}