[LL] Add K/J library providers

Note on .kjsm library symbol providers.

It's not clear whether the provider is necessary for K2 IDE and whether
there will be libraries with .kjsm files that we are going to support.
Since there are no tests that can prove the correct work of the symbol
provider right now, it's better add them later if needed.
The existing tests cover only .knm files.

KTIJ-27566
This commit is contained in:
Pavel Kirpichenkov
2023-11-06 17:33:16 +02:00
committed by Space Team
parent c06e516205
commit 171a6f1a87
@@ -83,7 +83,11 @@ class LLStubBasedLibrarySymbolProviderFactory(private val project: Project) : LL
moduleDataProvider: SingleModuleDataProvider,
scope: GlobalSearchScope,
): List<FirSymbolProvider> {
return emptyList() // TODO(kirpichenkov)
return listOf(
createStubBasedFirSymbolProviderForKotlinNativeMetadataFiles(
project, scope, session, moduleDataProvider, kotlinScopeProvider
),
)
}
override fun createBuiltinsSymbolProvider(