Skip to content

org.jetbrains.kotlin.analysis.api.platform.declarations

Types

KotlinAnnotationsResolver

KotlinAnnotationsResolver matches declarations with their annotations and vice versa.

KotlinAnnotationsResolverFactory

KotlinCompositeDeclarationProvider

KotlinDeclarationProvider

A KotlinDeclarationProvider provides Kotlin PSI declarations for the project as well as additional information about them. The declarations may come from sources, libraries in case of stubbing, or declaration generation.

KotlinDeclarationProviderFactory

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

KotlinDeclarationProviderMerger

While the main declaration provider created via createDeclarationProvider is scope-based, there are other declaration providers which are not, such as file-based declaration providers. Not all declarations provided by such declaration providers can be provided by the main declaration provider, even if the correct scope is provided (such as a file-based scope). For example, the main declaration provider may be based on an index which doesn't contain the declarations provided by file-based declaration providers.

KotlinDirectInheritorsProvider

KotlinEmptyDeclarationProvider

KotlinFileBasedDeclarationProvider

KotlinForeignValueProviderService

KotlinForwardDeclarationProviderFactory

Functions

createAnnotationResolver

fun Project.createAnnotationResolver(searchScope: GlobalSearchScope): KotlinAnnotationsResolver

createDeclarationProvider

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

Creates a KotlinDeclarationProvider providing symbols within the given scope.

createForwardDeclarationProvider

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

mergeDeclarationProviders