Skip to content

KotlinModuleInformationProvider

KotlinModuleInformationProvider offers additional, secondary information about KaModules.

The information provided by this platform component is secondary in nature, meaning there isn't a compelling reason to pollute the API of KaModule with such properties.

Types

Companion

object Companion

Functions

isEmpty

abstract fun isEmpty(module: KaModule): Boolean?

Whether module is empty, meaning it has no content.

This function is used internally as an optimization to avoid creating dependency sessions for empty KaModules. An empty KaModule can still be used as the use-site module of analyze.

Return

true if the module is empty, false if it has content, or null if it cannot be determined.