Refactor callableId around pathToLocal and classId properties

#KT-58739 Fixed
This commit is contained in:
Mikhail Glukhikh
2024-01-12 13:39:56 +01:00
committed by Space Team
parent 71f2a2df8e
commit 34877130c7
3 changed files with 52 additions and 27 deletions
@@ -63,18 +63,18 @@ class FirProviderImpl(val session: FirSession, val kotlinScopeProvider: FirKotli
@FirSymbolProviderInternals
override fun getTopLevelCallableSymbolsTo(destination: MutableList<FirCallableSymbol<*>>, packageFqName: FqName, name: Name) {
destination += (state.functionMap[CallableId(packageFqName, null, name)] ?: emptyList())
destination += (state.propertyMap[CallableId(packageFqName, null, name)] ?: emptyList())
destination += (state.functionMap[CallableId(packageFqName, name)] ?: emptyList())
destination += (state.propertyMap[CallableId(packageFqName, name)] ?: emptyList())
}
@FirSymbolProviderInternals
override fun getTopLevelFunctionSymbolsTo(destination: MutableList<FirNamedFunctionSymbol>, packageFqName: FqName, name: Name) {
destination += (state.functionMap[CallableId(packageFqName, null, name)] ?: emptyList())
destination += (state.functionMap[CallableId(packageFqName, name)] ?: emptyList())
}
@FirSymbolProviderInternals
override fun getTopLevelPropertySymbolsTo(destination: MutableList<FirPropertySymbol>, packageFqName: FqName, name: Name) {
destination += (state.propertyMap[CallableId(packageFqName, null, name)] ?: emptyList())
destination += (state.propertyMap[CallableId(packageFqName, name)] ?: emptyList())
}
override fun getPackage(fqName: FqName): FqName? {