Skip to content

KotlinGlobalSearchScopeMergeStrategy

KotlinGlobalSearchScopeMergeStrategy is used to declare a strategy for merging a list of GlobalSearchScopes into a single GlobalSearchScope. Is used by implementations of KaGlobalSearchScopeMerger to optimize the merging process and flatten the resulting scope.

Note that KotlinGlobalSearchScopeMergeStrategy are applied in the order they are registered.

Types

Companion

object Companion

Properties

targetType

abstract val targetType: KClass<T>

Defines the target type KotlinGlobalSearchScopeMergeStrategy works with. All scopes passed to uniteScopes are guaranteed to be a subtype of targetType.

Functions

uniteScopes

abstract fun uniteScopes(scopes: List<T>, project: Project): List<GlobalSearchScope>

Merges a list of GlobalSearchScopes into an optimized set of GlobalSearchScopes.