FIR: Rename parameters for (ASSIGNMENT|RESULT)_TYPE_MISMATCH.
This commit is contained in:
committed by
teamcityserver
parent
b6b983aa2a
commit
eddc590aaf
+4
-4
@@ -331,13 +331,13 @@ object DIAGNOSTICS_LIST : DiagnosticList("FirErrors") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val ASSIGNMENT_TYPE_MISMATCH by error<KtExpression> {
|
val ASSIGNMENT_TYPE_MISMATCH by error<KtExpression> {
|
||||||
parameter<ConeKotlinType>("expected")
|
parameter<ConeKotlinType>("expectedType")
|
||||||
parameter<ConeKotlinType>("actual")
|
parameter<ConeKotlinType>("actualType")
|
||||||
}
|
}
|
||||||
|
|
||||||
val RESULT_TYPE_MISMATCH by error<KtExpression> {
|
val RESULT_TYPE_MISMATCH by error<KtExpression> {
|
||||||
parameter<ConeKotlinType>("expected")
|
parameter<ConeKotlinType>("expectedType")
|
||||||
parameter<ConeKotlinType>("actual")
|
parameter<ConeKotlinType>("actualType")
|
||||||
}
|
}
|
||||||
|
|
||||||
val MANY_LAMBDA_EXPRESSION_ARGUMENTS by error<KtValueArgument>()
|
val MANY_LAMBDA_EXPRESSION_ARGUMENTS by error<KtValueArgument>()
|
||||||
|
|||||||
+4
-4
@@ -762,14 +762,14 @@ sealed class KtFirDiagnostic<PSI: PsiElement> : KtDiagnosticWithPsi<PSI> {
|
|||||||
|
|
||||||
abstract class AssignmentTypeMismatch : KtFirDiagnostic<KtExpression>() {
|
abstract class AssignmentTypeMismatch : KtFirDiagnostic<KtExpression>() {
|
||||||
override val diagnosticClass get() = AssignmentTypeMismatch::class
|
override val diagnosticClass get() = AssignmentTypeMismatch::class
|
||||||
abstract val expected: KtType
|
abstract val expectedType: KtType
|
||||||
abstract val actual: KtType
|
abstract val actualType: KtType
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract class ResultTypeMismatch : KtFirDiagnostic<KtExpression>() {
|
abstract class ResultTypeMismatch : KtFirDiagnostic<KtExpression>() {
|
||||||
override val diagnosticClass get() = ResultTypeMismatch::class
|
override val diagnosticClass get() = ResultTypeMismatch::class
|
||||||
abstract val expected: KtType
|
abstract val expectedType: KtType
|
||||||
abstract val actual: KtType
|
abstract val actualType: KtType
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract class ManyLambdaExpressionArguments : KtFirDiagnostic<KtValueArgument>() {
|
abstract class ManyLambdaExpressionArguments : KtFirDiagnostic<KtValueArgument>() {
|
||||||
|
|||||||
+4
-4
@@ -1224,8 +1224,8 @@ internal class NamedParameterNotFoundImpl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class AssignmentTypeMismatchImpl(
|
internal class AssignmentTypeMismatchImpl(
|
||||||
override val expected: KtType,
|
override val expectedType: KtType,
|
||||||
override val actual: KtType,
|
override val actualType: KtType,
|
||||||
firDiagnostic: FirPsiDiagnostic<*>,
|
firDiagnostic: FirPsiDiagnostic<*>,
|
||||||
override val token: ValidityToken,
|
override val token: ValidityToken,
|
||||||
) : KtFirDiagnostic.AssignmentTypeMismatch(), KtAbstractFirDiagnostic<KtExpression> {
|
) : KtFirDiagnostic.AssignmentTypeMismatch(), KtAbstractFirDiagnostic<KtExpression> {
|
||||||
@@ -1233,8 +1233,8 @@ internal class AssignmentTypeMismatchImpl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal class ResultTypeMismatchImpl(
|
internal class ResultTypeMismatchImpl(
|
||||||
override val expected: KtType,
|
override val expectedType: KtType,
|
||||||
override val actual: KtType,
|
override val actualType: KtType,
|
||||||
firDiagnostic: FirPsiDiagnostic<*>,
|
firDiagnostic: FirPsiDiagnostic<*>,
|
||||||
override val token: ValidityToken,
|
override val token: ValidityToken,
|
||||||
) : KtFirDiagnostic.ResultTypeMismatch(), KtAbstractFirDiagnostic<KtExpression> {
|
) : KtFirDiagnostic.ResultTypeMismatch(), KtAbstractFirDiagnostic<KtExpression> {
|
||||||
|
|||||||
Reference in New Issue
Block a user