Skip to content

KotlinDeclarationProviderFactory

KotlinDeclarationProviderFactory creates a scope-based KotlinDeclarationProvider which covers all non-generated, physical declarations found in source files and possibly indices/stubs for libraries.

The declaration provider created by KotlinDeclarationProviderFactory is considered the main declaration provider for the given scope. Other kinds of declaration providers exist, but they usually cover generated declarations for edge cases.

See also

Types

Companion

object Companion

Functions

createDeclarationProvider

abstract fun createDeclarationProvider(scope: GlobalSearchScope, contextualModule: KaModule?): KotlinDeclarationProvider