aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 19:30:22 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 19:30:22 +0400
commit17f023731b9364228998838c4fab7e974cdc47c4 (patch)
tree322961e7f657e8fd8b94c60619a54f681e44ff9b
parentad14ea91a52563c83a3aba0c7d279cd5535b77e4 (diff)
downloaddokka-17f023731b9364228998838c4fab7e974cdc47c4.tar.gz
dokka-17f023731b9364228998838c4fab7e974cdc47c4.tar.bz2
dokka-17f023731b9364228998838c4fab7e974cdc47c4.zip
Workaround platform types
-rw-r--r--src/Markdown/MarkdownProcessor.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Markdown/MarkdownProcessor.kt b/src/Markdown/MarkdownProcessor.kt
index 19d5a8fb..040f2ad5 100644
--- a/src/Markdown/MarkdownProcessor.kt
+++ b/src/Markdown/MarkdownProcessor.kt
@@ -30,7 +30,7 @@ public class MarkdownTree(private val text: String, private val structure: Flywe
}
fun findChildByType(node: LighterASTNode, findType: IElementType) : LighterASTNode? {
- val ref = Ref.create<Array<LighterASTNode>?>()
+ val ref: Ref<Array<LighterASTNode>?> = Ref.create<Array<LighterASTNode>?>()
val count = structure.getChildren(node, ref)
val children = ref.get()
if (children != null) {
@@ -53,7 +53,7 @@ public class MarkdownTree(private val text: String, private val structure: Flywe
fun visit(node: LighterASTNode, action: (LighterASTNode, String, visitChildren: () -> Unit) -> Unit) {
action(node, text) {
- val ref = Ref.create<Array<LighterASTNode>?>()
+ val ref : Ref<Array<LighterASTNode>?> = Ref.create<Array<LighterASTNode>?>()
val count = structure.getChildren(node, ref)
val children = ref.get()
if (children != null) {