Skip to content

Commit 0c0d607

Browse files
Removed duplicate messages from diagnosticMessages.json.
1 parent b9124a7 commit 0c0d607

File tree

3 files changed

+6
-26
lines changed

3 files changed

+6
-26
lines changed

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module ts {
88
Unrecognized_escape_sequence: { code: 1000, category: DiagnosticCategory.Error, key: "Unrecognized escape sequence." },
99
Unexpected_character_0: { code: 1001, category: DiagnosticCategory.Error, key: "Unexpected character {0}." },
1010
Missing_close_quote_character: { code: 1002, category: DiagnosticCategory.Error, key: "Missing close quote character." },
11-
Identifier_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Identifier expected." },
11+
Identifier_expected: { code: 1003, category: DiagnosticCategory.Error, key: "Identifier expected." },
1212
_0_keyword_expected: { code: 1004, category: DiagnosticCategory.Error, key: "'{0}' keyword expected." },
13-
_0_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "'{0}' expected." },
13+
_0_expected: { code: 1005, category: DiagnosticCategory.Error, key: "'{0}' expected." },
1414
Identifier_expected_0_is_a_keyword: { code: 1006, category: DiagnosticCategory.Error, key: "Identifier expected; '{0}' is a keyword." },
1515
Automatic_semicolon_insertion_not_allowed: { code: 1007, category: DiagnosticCategory.Error, key: "Automatic semicolon insertion not allowed." },
1616
Trailing_comma_not_allowed: { code: 1009, category: DiagnosticCategory.Error, key: "Trailing comma not allowed." },
@@ -93,8 +93,8 @@ module ts {
9393
A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: { code: 1105, category: DiagnosticCategory.Error, key: "A 'break' statement can only be used within an enclosing iteration or switch statement." },
9494
Jump_target_cannot_cross_function_boundary: { code: 1107, category: DiagnosticCategory.Error, key: "Jump target cannot cross function boundary." },
9595
A_return_statement_can_only_be_used_within_a_function_body: { code: 1108, category: DiagnosticCategory.Error, key: "A 'return' statement can only be used within a function body." },
96-
Expression_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Expression expected." },
97-
Type_expected: { code: -9999999, category: DiagnosticCategory.Error, key: "Type expected." },
96+
Expression_expected: { code: 1109, category: DiagnosticCategory.Error, key: "Expression expected." },
97+
Type_expected: { code: 1110, category: DiagnosticCategory.Error, key: "Type expected." },
9898
A_constructor_implementation_cannot_be_declared_in_an_ambient_context: { code: 1111, category: DiagnosticCategory.Error, key: "A constructor implementation cannot be declared in an ambient context." },
9999
A_class_member_cannot_be_declared_optional: { code: 1112, category: DiagnosticCategory.Error, key: "A class member cannot be declared optional." },
100100
A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: { code: 1113, category: DiagnosticCategory.Error, key: "A 'default' clause cannot appear more than once in a 'switch' statement." },

src/compiler/diagnosticMessages.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,22 +1259,10 @@
12591259
"category": "Error",
12601260
"code": -9999999
12611261
},
1262-
"'{0}' expected.": {
1263-
"category": "Error",
1264-
"code": -9999999
1265-
},
1266-
"Identifier expected.": {
1267-
"category": "Error",
1268-
"code": -9999999
1269-
},
12701262
"String literal expected.": {
12711263
"category": "Error",
12721264
"code": -9999999
12731265
},
1274-
"Type expected.": {
1275-
"category": "Error",
1276-
"code": -9999999
1277-
},
12781266
"'=>' not preceded by parameter list.": {
12791267
"category": "Error",
12801268
"code": -9999999
@@ -1287,10 +1275,6 @@
12871275
"category": "Error",
12881276
"code": -9999999
12891277
},
1290-
"Expression expected.": {
1291-
"category": "Error",
1292-
"code": -9999999
1293-
},
12941278
"Line break not permitted here.": {
12951279
"category": "Error",
12961280
"code": -9999999
@@ -1363,10 +1347,6 @@
13631347
"category": "Error",
13641348
"code": -9999999
13651349
},
1366-
"Only public methods of the base class are accessible via the 'super' keyword": {
1367-
"category": "Error",
1368-
"code": -9999999
1369-
},
13701350
"Import name cannot be '{0}'": {
13711351
"category": "Error",
13721352
"code": -9999999

tests/baselines/reference/dontShowCompilerGeneratedMembers.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
~
99
!!! Type parameter list cannot be empty.
1010
~
11-
!!! '(' expected.
12-
~
1311
!!! Type parameter declaration expected.
12+
~
13+
!!! '(' expected.
1414
};
1515
~
1616
!!! Expression expected.

0 commit comments

Comments
 (0)