Skip to content

KaResolutionScope

abstract class KaResolutionScope : GlobalSearchScope

The resolution scope for a KaModule. It determines the PSI elements that can be resolved in the context of an analysis session.

A resolution scope is mainly built from its use-site module's KaModule.contentScope and its dependencies' content scopes.

Constructors

KaResolutionScope

constructor()

Types

Companion

object Companion

Properties

displayName

@get:Nls(capitalization = Nls.Capitalization.Sentence)
@get:NotNull
open val displayName: @Nls(capitalization = Nls.Capitalization.Sentence) @NotNull String

icon

@get:Nullable
open val icon: @Nullable Icon?

isForceSearchingInLibrarySources

isSearchInLibraries

project

@get:Nullable
open val project: @Nullable Project?

underlyingSearchScope

abstract val underlyingSearchScope: GlobalSearchScope

The underlying GlobalSearchScope that covers all physical files contained in the resolution scope. Only intended for test purposes.

unloadedModulesBelongingToScope

@get:NotNull
open val unloadedModulesBelongingToScope: @NotNull Collection<UnloadedModuleDescription?>

Functions

accept

fun accept(file: @NotNull VirtualFile): Boolean

and

open fun and(other: @NotNull VirtualFileFilter): @NotNull VirtualFileFilter

compare

open fun compare(file1: @NotNull VirtualFile, file2: @NotNull VirtualFile): Int

contains

abstract operator fun contains(p0: @NotNull VirtualFile): Boolean
abstract fun contains(element: PsiElement): Boolean

Checks whether a PsiElement is contained in the resolution scope, i.e., the containing file is present in the resolution scope.

hashCode

open fun hashCode(): Int

intersectWith

open fun intersectWith(scope: @NotNull GlobalSearchScope): @NotNull GlobalSearchScope
open fun intersectWith(localScope2: @NotNull LocalSearchScope): @NotNull LocalSearchScope
open fun intersectWith(scope2: @NotNull SearchScope): @NotNull SearchScope

isSearchInModuleContent

abstract fun isSearchInModuleContent(p0: @NotNull Module): Boolean
open fun isSearchInModuleContent(aModule: @NotNull Module, testSources: Boolean): Boolean

toFullString

open fun toFullString(): @NotNull String

union

open fun union(scope: @NotNull LocalSearchScope): @NotNull GlobalSearchScope
open fun union(scope: @NotNull SearchScope): @NotNull GlobalSearchScope

uniteWith

open fun uniteWith(scope: @NotNull GlobalSearchScope): @NotNull GlobalSearchScope