Rename: ConeTypeVariableType.lookupTag -> typeConstructor

This commit is contained in:
Mikhail Glukhikh
2023-11-13 13:29:53 +01:00
committed by Space Team
parent 1ceec4d6d7
commit 53ab32e0fb
15 changed files with 20 additions and 21 deletions
@@ -468,8 +468,8 @@ internal class KtSymbolByFirBuilder(
}
is ConeTypeVariableType -> {
val diagnostic = when ( val typeParameter = coneType.lookupTag.originalTypeParameter) {
null -> ConeSimpleDiagnostic("Cannot infer parameter type for ${coneType.lookupTag.debugName}")
val diagnostic = when ( val typeParameter = coneType.typeConstructor.originalTypeParameter) {
null -> ConeSimpleDiagnostic("Cannot infer parameter type for ${coneType.typeConstructor.debugName}")
else -> ConeCannotInferTypeParameterType((typeParameter as ConeTypeParameterLookupTag).typeParameterSymbol)
}
buildKtType(ConeErrorType(diagnostic, isUninferredParameter = true, attributes = coneType.attributes))
@@ -30,7 +30,7 @@ internal class KtFirTypeErrorType(
override fun tryRenderAsNonErrorType(): String? = withValidityAssertion {
when (val diagnostic = coneType.diagnostic) {
is ConeCannotInferTypeParameterType -> diagnostic.typeParameter.name.asString()
is ConeTypeVariableTypeIsNotInferred -> diagnostic.typeVariableType.lookupTag.debugName
is ConeTypeVariableTypeIsNotInferred -> diagnostic.typeVariableType.typeConstructor.debugName
else -> null
}
}