Skip to content

KotlinForwardDeclarationProviderFactory

KotlinForwardDeclarationProviderFactory creates KotlinDeclarationProviders for Kotlin/Native forward declarations.

The declarations from the provider are used as a source representation for forward declaration symbols. The special provider is necessary because forward declarations are mere qualified names by themselves. It is a responsibility of the implementor to make the source representation correct. Symbol's properties are not affected by its source representation.

Implementations should be consistent with their corresponding KotlinForwardDeclarationsPackageProviderFactory implementation.

Types

Companion

object Companion

Functions

createDeclarationProvider

Creates a Kotlin/Native forward declaration provider for module, or null if the module cannot contain forward declarations.

Generally, only Kotlin/Native KLIB libraries can declare forward declarations. For other types of KaModules the provider normally shouldn't be created.