@@ -13614,7 +13614,7 @@ namespace ts {
13614
13614
if (ok) {
13615
13615
// run check only if former checks succeeded to avoid reporting cascading errors
13616
13616
checkReferenceExpression(node.operand,
13617
- Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer ,
13617
+ Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access ,
13618
13618
Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant_or_a_read_only_property);
13619
13619
}
13620
13620
return numberType;
@@ -13632,7 +13632,7 @@ namespace ts {
13632
13632
if (ok) {
13633
13633
// run check only if former checks succeeded to avoid reporting cascading errors
13634
13634
checkReferenceExpression(node.operand,
13635
- Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer ,
13635
+ Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access ,
13636
13636
Diagnostics.The_operand_of_an_increment_or_decrement_operator_cannot_be_a_constant_or_a_read_only_property);
13637
13637
}
13638
13638
return numberType;
@@ -13859,7 +13859,7 @@ namespace ts {
13859
13859
13860
13860
function checkReferenceAssignment(target: Expression, sourceType: Type, contextualMapper?: TypeMapper): Type {
13861
13861
const targetType = checkExpression(target, contextualMapper);
13862
- if (checkReferenceExpression(target, Diagnostics.Invalid_left_hand_side_of_assignment_expression , Diagnostics.Left_hand_side_of_assignment_expression_cannot_be_a_constant_or_a_read_only_property)) {
13862
+ if (checkReferenceExpression(target, Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access , Diagnostics.Left_hand_side_of_assignment_expression_cannot_be_a_constant_or_a_read_only_property)) {
13863
13863
checkTypeAssignableTo(sourceType, targetType, target, /*headMessage*/ undefined);
13864
13864
}
13865
13865
return sourceType;
@@ -14143,7 +14143,7 @@ namespace ts {
14143
14143
// A compound assignment furthermore requires VarExpr to be classified as a reference (section 4.1)
14144
14144
// and the type of the non - compound operation to be assignable to the type of VarExpr.
14145
14145
const ok = checkReferenceExpression(left,
14146
- Diagnostics.Invalid_left_hand_side_of_assignment_expression ,
14146
+ Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access ,
14147
14147
Diagnostics.Left_hand_side_of_assignment_expression_cannot_be_a_constant_or_a_read_only_property);
14148
14148
// Use default messages
14149
14149
if (ok) {
@@ -16588,7 +16588,7 @@ namespace ts {
16588
16588
}
16589
16589
else {
16590
16590
const leftType = checkExpression(varExpr);
16591
- checkReferenceExpression(varExpr, /*invalidReferenceMessage*/ Diagnostics.Invalid_left_hand_side_in_for_of_statement ,
16591
+ checkReferenceExpression(varExpr, /*invalidReferenceMessage*/ Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access ,
16592
16592
/*constantVariableMessage*/ Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_be_a_constant_or_a_read_only_property);
16593
16593
16594
16594
// iteratedType will be undefined if the rightType was missing properties/signatures
@@ -16639,7 +16639,7 @@ namespace ts {
16639
16639
}
16640
16640
else {
16641
16641
// run check only former check succeeded to avoid cascading errors
16642
- checkReferenceExpression(varExpr, Diagnostics.Invalid_left_hand_side_in_for_in_statement ,
16642
+ checkReferenceExpression(varExpr, Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access ,
16643
16643
Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_constant_or_a_read_only_property);
16644
16644
}
16645
16645
}
0 commit comments