aboutsummaryrefslogtreecommitdiff
path: root/src/Analysis
diff options
context:
space:
mode:
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!!)
- }
- }
- }
-}