From ad14ea91a52563c83a3aba0c7d279cd5535b77e4 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 18:22:02 +0400 Subject: Fixing formats and started work on inline function body. --- src/Model/Content.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Model') diff --git a/src/Model/Content.kt b/src/Model/Content.kt index a3691fd0..9f716209 100644 --- a/src/Model/Content.kt +++ b/src/Model/Content.kt @@ -24,6 +24,7 @@ public class ContentKeyword(val text: String) : ContentNode() public class ContentIdentifier(val text: String) : ContentNode() public class ContentSymbol(val text: String) : ContentNode() +public class ContentParagraph() : ContentBlock() public class ContentEmphasis() : ContentBlock() public class ContentStrong() : ContentBlock() public class ContentCode() : ContentBlock() @@ -51,7 +52,7 @@ fun ContentNode.link(to: DocumentationNode, body: ContentNode.() -> Unit) { public class Content() : ContentNode() { public val sections: Map by Delegates.lazy { - val map = hashMapOf() + val map = linkedMapOf() for (child in children) { if (child is ContentSection) map.put(child.label, child) -- cgit