Skip to content

org.jetbrains.kotlin.analysis.api.platform.utils

Types

SublistMerger

class SublistMerger<A : Any>(initialElements: List<A>, val destination: MutableList<A>)

With each call to merge, SublistMerger can merge all elements of a specific (reified) type into a single element using a supplied constructor and then add it to destination. Unmerged elements are added to destination using finish.

Properties

KOTLIN_JAVA_ELEMENT_FINDER_CLASS_NAME

Functions

forEachNonKotlinPsiElementFinder

inline fun forEachNonKotlinPsiElementFinder(project: Project, action: (PsiElementFinder) -> Unit)

mergeInto

fun <A : Any> List<A>.mergeInto(destination: MutableList<A>, f: SublistMerger<A>.() -> Unit)

mergeOnly

inline fun <A : Any, reified R : A> List<A>.mergeOnly(crossinline create: (List<R>) -> A?): List<A>

mergeWith

fun <A : Any> List<A>.mergeWith(f: SublistMerger<A>.() -> Unit): List<A>