Skip to content

Commit e70005b

Browse files
Merge pull request microsoft#1273 from Microsoft/asyncAwaitFidelity
Update fidelity to support all the latest language constructs (const enums, let/const, type aliases, etc).
2 parents be50b62 + aa91aa7 commit e70005b

23 files changed

Lines changed: 1711 additions & 1225 deletions

src/services/resources/diagnosticCode.generated.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module TypeScript {
2020
Parameter_cannot_have_question_mark_and_initializer: "Parameter cannot have question mark and initializer.",
2121
A_required_parameter_cannot_follow_an_optional_parameter: "A required parameter cannot follow an optional parameter.",
2222
Index_signatures_cannot_have_rest_parameters: "Index signatures cannot have rest parameters.",
23-
Index_signature_parameter_cannot_have_accessibility_modifiers: "Index signature parameter cannot have accessibility modifiers.",
23+
Index_signature_parameter_cannot_have_modifiers: "Index signature parameter cannot have modifiers.",
2424
Index_signature_parameter_cannot_have_a_question_mark: "Index signature parameter cannot have a question mark.",
2525
Index_signature_parameter_cannot_have_an_initializer: "Index signature parameter cannot have an initializer.",
2626
Index_signature_must_have_a_type_annotation: "Index signature must have a type annotation.",
@@ -99,6 +99,11 @@ module TypeScript {
9999
yield_expression_must_be_contained_within_a_generator_declaration: "'yield' expression must be contained within a generator declaration.",
100100
Unterminated_regular_expression_literal: "Unterminated regular expression literal.",
101101
Unterminated_template_literal: "Unterminated template literal.",
102+
await_expression_must_be_contained_within_an_async_declaration: "'await' expression must be contained within an async declaration.",
103+
async_arrow_function_parameters_must_be_parenthesized: "'async' arrow function parameters must be parenthesized.",
104+
A_generator_declaration_cannot_have_the_async_modifier: "A generator declaration cannot have the 'async' modifier.",
105+
async_modifier_cannot_appear_here: "'async' modifier cannot appear here.",
106+
comma_expression_cannot_appear_in_a_computed_property_name: "'comma' expression cannot appear in a computed property name.",
102107
Duplicate_identifier_0: "Duplicate identifier '{0}'.",
103108
The_name_0_does_not_exist_in_the_current_scope: "The name '{0}' does not exist in the current scope.",
104109
The_name_0_does_not_refer_to_a_value: "The name '{0}' does not refer to a value.",

src/services/resources/diagnosticInformationMap.generated.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module TypeScript {
2222
"Parameter cannot have question mark and initializer.": { "code": 1015, "category": DiagnosticCategory.Error },
2323
"A required parameter cannot follow an optional parameter.": { "code": 1016, "category": DiagnosticCategory.Error },
2424
"Index signatures cannot have rest parameters.": { "code": 1017, "category": DiagnosticCategory.Error },
25-
"Index signature parameter cannot have accessibility modifiers.": { "code": 1018, "category": DiagnosticCategory.Error },
25+
"Index signature parameter cannot have modifiers.": { "code": 1018, "category": DiagnosticCategory.Error },
2626
"Index signature parameter cannot have a question mark.": { "code": 1019, "category": DiagnosticCategory.Error },
2727
"Index signature parameter cannot have an initializer.": { "code": 1020, "category": DiagnosticCategory.Error },
2828
"Index signature must have a type annotation.": { "code": 1021, "category": DiagnosticCategory.Error },
@@ -101,6 +101,11 @@ module TypeScript {
101101
"'yield' expression must be contained within a generator declaration.": { "code": 1113, "category": DiagnosticCategory.Error },
102102
"Unterminated regular expression literal.": { "code": 1114, "category": DiagnosticCategory.Error },
103103
"Unterminated template literal.": { "code": 1115, "category": DiagnosticCategory.Error },
104+
"'await' expression must be contained within an 'async' declaration.": { "code": 1116, "category": DiagnosticCategory.Error },
105+
"'async' arrow function parameters must be parenthesized.": { "code": 1117, "category": DiagnosticCategory.Error },
106+
"A generator declaration cannot have the 'async' modifier.": { "code": 1118, "category": DiagnosticCategory.Error },
107+
"'async' modifier cannot appear here.": { "code": 1119, "category": DiagnosticCategory.Error },
108+
"'comma' expression cannot appear in a computed property name.": { "code": 1120, "category": DiagnosticCategory.Error },
104109
"Duplicate identifier '{0}'.": { "code": 2000, "category": DiagnosticCategory.Error },
105110
"The name '{0}' does not exist in the current scope.": { "code": 2001, "category": DiagnosticCategory.Error },
106111
"The name '{0}' does not refer to a value.": { "code": 2002, "category": DiagnosticCategory.Error },

src/services/resources/diagnosticMessages.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"category": "Error",
7676
"code": 1017
7777
},
78-
"Index signature parameter cannot have accessibility modifiers.": {
78+
"Index signature parameter cannot have modifiers.": {
7979
"category": "Error",
8080
"code": 1018
8181
},
@@ -391,6 +391,26 @@
391391
"category": "Error",
392392
"code": 1115
393393
},
394+
"'await' expression must be contained within an 'async' declaration.": {
395+
"category": "Error",
396+
"code": 1116
397+
},
398+
"'async' arrow function parameters must be parenthesized.": {
399+
"category": "Error",
400+
"code": 1117
401+
},
402+
"A generator declaration cannot have the 'async' modifier.": {
403+
"category": "Error",
404+
"code": 1118
405+
},
406+
"'async' modifier cannot appear here.": {
407+
"category": "Error",
408+
"code": 1119
409+
},
410+
"'comma' expression cannot appear in a computed property name.": {
411+
"category": "Error",
412+
"code": 1120
413+
},
394414
"Duplicate identifier '{0}'.": {
395415
"category": "Error",
396416
"code": 2000

0 commit comments

Comments
 (0)