diff options
Diffstat (limited to 'src/Model')
| -rw-r--r-- | src/Model/Content.kt | 8 | ||||
| -rw-r--r-- | src/Model/DocumentationNode.kt | 56 | ||||
| -rw-r--r-- | src/Model/DocumentationReference.kt | 18 |
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 } } |
