FIR: make FirTypeParameterScope to be name aware

This commit is contained in:
Ilya Kirillov
2020-09-01 19:12:48 +03:00
parent 7a1b1efef3
commit c0e9f05921
@@ -10,7 +10,7 @@ import org.jetbrains.kotlin.fir.resolve.substitution.ConeSubstitutor
import org.jetbrains.kotlin.fir.symbols.impl.FirClassifierSymbol
import org.jetbrains.kotlin.name.Name
abstract class FirTypeParameterScope : FirScope() {
abstract class FirTypeParameterScope : FirScope(), FirContainingNamesAwareScope {
abstract val typeParameters: Map<Name, List<FirTypeParameter>>
override fun processClassifiersByNameWithSubstitution(
@@ -21,4 +21,8 @@ abstract class FirTypeParameterScope : FirScope() {
matchedTypeParameters.forEach { processor(it.symbol, ConeSubstitutor.Empty) }
}
override fun getCallableNames(): Set<Name> = emptySet()
override fun getClassifierNames(): Set<Name> = typeParameters.keys
}