From 4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 5 Feb 2015 16:53:40 +0100 Subject: use code from Kotlin plugin for resolving references in KDoc; delete some dead code --- src/Analysis/PsiAPI.kt | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/Analysis/PsiAPI.kt (limited to 'src/Analysis') diff --git a/src/Analysis/PsiAPI.kt b/src/Analysis/PsiAPI.kt deleted file mode 100644 index 19ac4675..00000000 --- a/src/Analysis/PsiAPI.kt +++ /dev/null @@ -1,23 +0,0 @@ -package org.jetbrains.dokka - -import com.intellij.psi.* -import kotlin.support.* - -fun PsiElement.children(): Stream { - val parent = this - var current: PsiElement? = null - return object : Stream { - override fun iterator(): Iterator = object : AbstractIterator() { - { - setNext(parent.getFirstChild()) - } - override fun computeNext() { - current = current?.getNextSibling() - if (current == null) - done() - else - setNext(current!!) - } - } - } -} -- cgit