You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,7 @@ namespace ts {
201
201
An_export_declaration_can_only_be_used_in_a_module: {code: 1233,category: DiagnosticCategory.Error,key: "An export declaration can only be used in a module."},
202
202
An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: {code: 1234,category: DiagnosticCategory.Error,key: "An ambient module declaration is only allowed at the top level in a file."},
203
203
A_namespace_declaration_is_only_allowed_in_a_namespace_or_module: {code: 1235,category: DiagnosticCategory.Error,key: "A namespace declaration is only allowed in a namespace or module."},
204
+
Experimental_support_for_async_functions_is_a_feature_that_is_subject_to_change_in_a_future_release_Specify_experimentalAsyncFunctions_to_remove_this_warning: {code: 1236,category: DiagnosticCategory.Error,key: "Experimental support for async functions is a feature that is subject to change in a future release. Specify '--experimentalAsyncFunctions' to remove this warning."},
204
205
with_statements_are_not_allowed_in_an_async_function_block: {code: 1300,category: DiagnosticCategory.Error,key: "'with' statements are not allowed in an async function block."},
205
206
await_expression_is_only_allowed_within_an_async_function: {code: 1308,category: DiagnosticCategory.Error,key: "'await' expression is only allowed within an async function."},
206
207
Async_functions_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1311,category: DiagnosticCategory.Error,key: "Async functions are only available when targeting ECMAScript 6 and higher."},
@@ -547,6 +548,8 @@ namespace ts {
547
548
Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified: {code: 6064,category: DiagnosticCategory.Error,key: "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified."},
548
549
Enables_experimental_support_for_ES7_decorators: {code: 6065,category: DiagnosticCategory.Message,key: "Enables experimental support for ES7 decorators."},
549
550
Enables_experimental_support_for_emitting_type_metadata_for_decorators: {code: 6066,category: DiagnosticCategory.Message,key: "Enables experimental support for emitting type metadata for decorators."},
551
+
Option_experimentalAsyncFunctions_cannot_be_specified_when_targeting_ES5_or_lower: {code: 6067,category: DiagnosticCategory.Message,key: "Option 'experimentalAsyncFunctions' cannot be specified when targeting ES5 or lower."},
552
+
Enables_experimental_support_for_ES7_async_functions: {code: 6068,category: DiagnosticCategory.Message,key: "Enables experimental support for ES7 async functions."},
550
553
Variable_0_implicitly_has_an_1_type: {code: 7005,category: DiagnosticCategory.Error,key: "Variable '{0}' implicitly has an '{1}' type."},
551
554
Parameter_0_implicitly_has_an_1_type: {code: 7006,category: DiagnosticCategory.Error,key: "Parameter '{0}' implicitly has an '{1}' type."},
552
555
Member_0_implicitly_has_an_1_type: {code: 7008,category: DiagnosticCategory.Error,key: "Member '{0}' implicitly has an '{1}' type."},
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -791,6 +791,10 @@
791
791
"category": "Error",
792
792
"code": 1235
793
793
},
794
+
"Experimental support for async functions is a feature that is subject to change in a future release. Specify '--experimentalAsyncFunctions' to remove this warning.": {
795
+
"category": "Error",
796
+
"code": 1236
797
+
},
794
798
795
799
796
800
"'with' statements are not allowed in an async function block.": {
@@ -2180,6 +2184,14 @@
2180
2184
"category": "Message",
2181
2185
"code": 6066
2182
2186
},
2187
+
"Option 'experimentalAsyncFunctions' cannot be specified when targeting ES5 or lower.": {
2188
+
"category": "Message",
2189
+
"code": 6067
2190
+
},
2191
+
"Enables experimental support for ES7 async functions.": {
0 commit comments