[FIR] Remove redundant opt-ins to ExperimentalStdlibApi in FIR modules
This commit is contained in:
committed by
Space Team
parent
fa9f0bcf84
commit
be3f8e7eb0
+3
-3
@@ -28,7 +28,7 @@ annotation class FirSymbolProviderInternals
|
||||
abstract class FirSymbolProvider(val session: FirSession) : FirSessionComponent {
|
||||
abstract fun getClassLikeSymbolByClassId(classId: ClassId): FirClassLikeSymbol<*>?
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class, FirSymbolProviderInternals::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
open fun getTopLevelCallableSymbols(packageFqName: FqName, name: Name): List<FirCallableSymbol<*>> {
|
||||
return buildList { getTopLevelCallableSymbolsTo(this, packageFqName, name) }
|
||||
}
|
||||
@@ -36,7 +36,7 @@ abstract class FirSymbolProvider(val session: FirSession) : FirSessionComponent
|
||||
@FirSymbolProviderInternals
|
||||
abstract fun getTopLevelCallableSymbolsTo(destination: MutableList<FirCallableSymbol<*>>, packageFqName: FqName, name: Name)
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class, FirSymbolProviderInternals::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
open fun getTopLevelFunctionSymbols(packageFqName: FqName, name: Name): List<FirNamedFunctionSymbol> {
|
||||
return buildList { getTopLevelFunctionSymbolsTo(this, packageFqName, name) }
|
||||
}
|
||||
@@ -44,7 +44,7 @@ abstract class FirSymbolProvider(val session: FirSession) : FirSessionComponent
|
||||
@FirSymbolProviderInternals
|
||||
abstract fun getTopLevelFunctionSymbolsTo(destination: MutableList<FirNamedFunctionSymbol>, packageFqName: FqName, name: Name)
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class, FirSymbolProviderInternals::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
open fun getTopLevelPropertySymbols(packageFqName: FqName, name: Name): List<FirPropertySymbol> {
|
||||
return buildList { getTopLevelPropertySymbolsTo(this, packageFqName, name) }
|
||||
}
|
||||
|
||||
+3
-3
@@ -45,17 +45,17 @@ open class FirDependenciesSymbolProviderImpl(session: FirSession) : FirDependenc
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
private fun computeTopLevelCallables(callableId: CallableId): List<FirCallableSymbol<*>> = buildList {
|
||||
dependencyProviders.forEach { it.getTopLevelCallableSymbolsTo(this, callableId.packageName, callableId.callableName) }
|
||||
}
|
||||
|
||||
@OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
private fun computeTopLevelFunctions(callableId: CallableId): List<FirNamedFunctionSymbol> = buildList {
|
||||
dependencyProviders.forEach { it.getTopLevelFunctionSymbolsTo(this, callableId.packageName, callableId.callableName) }
|
||||
}
|
||||
|
||||
@OptIn(FirSymbolProviderInternals::class, ExperimentalStdlibApi::class)
|
||||
@OptIn(FirSymbolProviderInternals::class)
|
||||
private fun computeTopLevelProperties(callableId: CallableId): List<FirPropertySymbol> = buildList {
|
||||
dependencyProviders.forEach { it.getTopLevelPropertySymbolsTo(this, callableId.packageName, callableId.callableName) }
|
||||
}
|
||||
|
||||
-2
@@ -172,7 +172,6 @@ class FirDelegatedMemberScope(
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private val callableNamesLazy: Set<Name> by lazy(LazyThreadSafetyMode.PUBLICATION) {
|
||||
buildSet {
|
||||
addAll(declaredMemberScope.getCallableNames())
|
||||
@@ -183,7 +182,6 @@ class FirDelegatedMemberScope(
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
private val classifierNamesLazy: Set<Name> by lazy(LazyThreadSafetyMode.PUBLICATION) {
|
||||
buildSet {
|
||||
addAll(declaredMemberScope.getClassifierNames())
|
||||
|
||||
Reference in New Issue
Block a user