aboutsummaryrefslogtreecommitdiff
path: root/src/Analysis
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-05 16:53:40 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-05 16:53:40 +0100
commit4ed5b2ec786b0f67405e5db81be2a2d9f4b6e591 (patch)
tree8e7907f3d0739cfbf841000f87496185aaefb52c /src/Analysis
parentda1b31b03bc70bf6feb1111e68e5ffd032a6d82c (diff)
downloaddokka-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.kt23
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!!)
- }
- }
- }
-}