diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-05 16:53:40 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-05 16:53:40 +0100 |
commit | 4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591 (patch) | |
tree | 8e7907f3d0739cfbf841000f87496185aaefb52c /src/Analysis | |
parent | da1b31b03bc70bf6feb1111e68e5ffd032a6d82c (diff) | |
download | dokka-4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591.tar.gz dokka-4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591.tar.bz2 dokka-4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591.zip |
use code from Kotlin plugin for resolving references in KDoc; delete some dead code
Diffstat (limited to 'src/Analysis')
-rw-r--r-- | src/Analysis/PsiAPI.kt | 23 |
1 files changed, 0 insertions, 23 deletions
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<PsiElement> { - val parent = this - var current: PsiElement? = null - return object : Stream<PsiElement> { - override fun iterator(): Iterator<PsiElement> = object : AbstractIterator<PsiElement>() { - { - setNext(parent.getFirstChild()) - } - override fun computeNext() { - current = current?.getNextSibling() - if (current == null) - done() - else - setNext(current!!) - } - } - } -} |