FIR: make FirTypeParameterScope to be name aware
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user