Skip to content

KaDanglingFileModuleImpl

class KaDanglingFileModuleImpl(
    files: List<KtFile>, 
    val contextModule: KaModule, 
    val resolutionMode: KaDanglingFileResolutionMode
) : KaDanglingFileModule, KaModuleBase

The default implementation of the dangling file module, which provides all knowledge from the context module. Note that if you need custom behavior, you should create a custom implementation of a KaDanglingFileModule, as the Analysis API treats this implementation specially (by allowing certain performance optimizations).

Constructors

KaDanglingFileModuleImpl

constructor(
    files: List<KtFile>, 
    contextModule: KaModule, 
    resolutionMode: KaDanglingFileResolutionMode
)

Properties

baseContentScope

open override val baseContentScope: GlobalSearchScope

contentScope

open val contentScope: GlobalSearchScope

contextModule

open override val contextModule: KaModule

directDependsOnDependencies

directFriendDependencies

open override val directFriendDependencies: List<KaModule>

directRegularDependencies

files

open override val files: List<KtFile>

isCodeFragment

open override val isCodeFragment: Boolean

isValid

open override val isValid: Boolean

moduleDescription

open override val moduleDescription: String

platformKind

project

open override val project: Project

resolutionMode

stableModuleName

targetPlatform

open override val targetPlatform: TargetPlatform

transitiveDependsOnDependencies

Functions

areCompilerPluginsSupported

asDebugString

fun KaModule.asDebugString(indent: Int = 0): String

equals

open operator override fun equals(other: Any?): Boolean

hashCode

open override fun hashCode(): Int

publishCodeFragmentContextModificationEvent

publishModuleOutOfBlockModificationEvent

Publishes a KotlinModuleOutOfBlockModificationEvent for this KaModule. Must be called in a write action.

publishModuleStateModificationEvent

Publishes a KotlinModuleStateModificationEvent for this KaModule. Must be called in a write action.

toString

open override fun toString(): String