[LL FIR] KT-57220 Make combined symbol provider constructors private

- The combined symbol provider should always be constructed using the
  dedicated `merge` function.
This commit is contained in:
Marco Pennekamp
2023-04-04 18:21:55 +02:00
committed by Space Team
parent 567abd2a1c
commit b50ecfddb7
2 changed files with 2 additions and 2 deletions
@@ -40,7 +40,7 @@ import org.jetbrains.kotlin.psi.KtFile
*
* [declarationProvider] must have a scope which combines the scopes of the individual [providers].
*/
internal class LLFirCombinedKotlinSymbolProvider(
internal class LLFirCombinedKotlinSymbolProvider private constructor(
session: FirSession,
private val project: Project,
private val providers: List<LLFirProvider.SymbolProvider>,
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.name.Name
* heuristics are checked only once.
*/
@OptIn(FirSymbolProviderInternals::class)
internal class LLFirCombinedSyntheticFunctionSymbolProvider(
internal class LLFirCombinedSyntheticFunctionSymbolProvider private constructor(
session: FirSession,
private val providers: List<FirSyntheticFunctionInterfaceProviderBase>,
) : FirSymbolProvider(session) {