aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationModel.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 03:25:39 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 03:25:39 +0400
commitd627d2cfdfebcddd63669734efb82dfc66e7c7fe (patch)
treef0c60789cc4b529b86a6ba028bb2bd8a749d9b4c /src/Model/DocumentationModel.kt
parent7bc3513935588467d4f848bbe40539664fdbdcf9 (diff)
downloaddokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.gz
dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.bz2
dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.zip
Convert string doc to structured DocumentationContent
Diffstat (limited to 'src/Model/DocumentationModel.kt')
-rw-r--r--src/Model/DocumentationModel.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Model/DocumentationModel.kt b/src/Model/DocumentationModel.kt
index e24b3c41..55f524b3 100644
--- a/src/Model/DocumentationModel.kt
+++ b/src/Model/DocumentationModel.kt
@@ -36,7 +36,7 @@ public enum class DocumentationReferenceKind {
}
public open class DocumentationNode(val name: String,
- val doc: String,
+ val doc: DocumentationContent,
val kind: DocumentationNodeKind,
val scope: JetScope) {
private val references = arrayListOf<DocumentationReference>()
@@ -67,7 +67,7 @@ public open class DocumentationNode(val name: String,
}
}
-public class DocumentationModel : DocumentationNode("model", "", DocumentationNodeKind.Model, JetScope.EMPTY) {
+public class DocumentationModel : DocumentationNode("model", DocumentationContent.Empty, DocumentationNodeKind.Model, JetScope.EMPTY) {
fun merge(other: DocumentationModel): DocumentationModel {
val model = DocumentationModel()
model.addAllReferencesFrom(other)