FIR: render <T> name for DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER
Related to KT-50183
This commit is contained in:
+2
@@ -2572,12 +2572,14 @@ internal val KT_DIAGNOSTIC_CONVERTER = KtDiagnosticConverterBuilder.buildConvert
|
||||
}
|
||||
add(FirErrors.DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER.errorFactory) { firDiagnostic ->
|
||||
DelegateUsesExtensionPropertyTypeParameterErrorImpl(
|
||||
firSymbolBuilder.classifierBuilder.buildTypeParameterSymbol(firDiagnostic.a.fir),
|
||||
firDiagnostic as KtPsiDiagnostic,
|
||||
token,
|
||||
)
|
||||
}
|
||||
add(FirErrors.DELEGATE_USES_EXTENSION_PROPERTY_TYPE_PARAMETER.warningFactory) { firDiagnostic ->
|
||||
DelegateUsesExtensionPropertyTypeParameterWarningImpl(
|
||||
firSymbolBuilder.classifierBuilder.buildTypeParameterSymbol(firDiagnostic.a.fir),
|
||||
firDiagnostic as KtPsiDiagnostic,
|
||||
token,
|
||||
)
|
||||
|
||||
+2
@@ -1821,10 +1821,12 @@ sealed class KtFirDiagnostic<PSI : PsiElement> : KtDiagnosticWithPsi<PSI> {
|
||||
|
||||
abstract class DelegateUsesExtensionPropertyTypeParameterError : KtFirDiagnostic<KtProperty>() {
|
||||
override val diagnosticClass get() = DelegateUsesExtensionPropertyTypeParameterError::class
|
||||
abstract val usedTypeParameter: KtTypeParameterSymbol
|
||||
}
|
||||
|
||||
abstract class DelegateUsesExtensionPropertyTypeParameterWarning : KtFirDiagnostic<KtProperty>() {
|
||||
override val diagnosticClass get() = DelegateUsesExtensionPropertyTypeParameterWarning::class
|
||||
abstract val usedTypeParameter: KtTypeParameterSymbol
|
||||
}
|
||||
|
||||
abstract class InitializerTypeMismatch : KtFirDiagnostic<KtProperty>() {
|
||||
|
||||
+2
@@ -2188,11 +2188,13 @@ internal class WrongSetterParameterTypeImpl(
|
||||
) : KtFirDiagnostic.WrongSetterParameterType(), KtAbstractFirDiagnostic<KtTypeReference>
|
||||
|
||||
internal class DelegateUsesExtensionPropertyTypeParameterErrorImpl(
|
||||
override val usedTypeParameter: KtTypeParameterSymbol,
|
||||
override val firDiagnostic: KtPsiDiagnostic,
|
||||
override val token: ValidityToken,
|
||||
) : KtFirDiagnostic.DelegateUsesExtensionPropertyTypeParameterError(), KtAbstractFirDiagnostic<KtProperty>
|
||||
|
||||
internal class DelegateUsesExtensionPropertyTypeParameterWarningImpl(
|
||||
override val usedTypeParameter: KtTypeParameterSymbol,
|
||||
override val firDiagnostic: KtPsiDiagnostic,
|
||||
override val token: ValidityToken,
|
||||
) : KtFirDiagnostic.DelegateUsesExtensionPropertyTypeParameterWarning(), KtAbstractFirDiagnostic<KtProperty>
|
||||
|
||||
Reference in New Issue
Block a user