typescript 5.5.0-dev.20240227 → 5.5.0-dev.20240228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +78 -212
- package/lib/tsserver.js +102 -235
- package/lib/typescript.d.ts +2 -0
- package/lib/typescript.js +103 -242
- package/lib/typingsInstaller.js +16 -17
- package/package.json +2 -2
package/lib/tsserver.js
CHANGED
|
@@ -2242,7 +2242,6 @@ __export(server_exports, {
|
|
|
2242
2242
|
transformES2019: () => transformES2019,
|
|
2243
2243
|
transformES2020: () => transformES2020,
|
|
2244
2244
|
transformES2021: () => transformES2021,
|
|
2245
|
-
transformES5: () => transformES5,
|
|
2246
2245
|
transformESDecorators: () => transformESDecorators,
|
|
2247
2246
|
transformESNext: () => transformESNext,
|
|
2248
2247
|
transformGenerators: () => transformGenerators,
|
|
@@ -2341,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2341
2340
|
|
|
2342
2341
|
// src/compiler/corePublic.ts
|
|
2343
2342
|
var versionMajorMinor = "5.5";
|
|
2344
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-dev.20240228`;
|
|
2345
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2346
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2347
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7280,12 +7279,11 @@ var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => {
|
|
|
7280
7279
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldGet"] = 524288] = "ClassPrivateFieldGet";
|
|
7281
7280
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldSet"] = 1048576] = "ClassPrivateFieldSet";
|
|
7282
7281
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldIn"] = 2097152] = "ClassPrivateFieldIn";
|
|
7283
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
7284
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
7285
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
7286
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 33554432] = "AddDisposableResourceAndDisposeResources";
|
|
7282
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 4194304] = "SetFunctionName";
|
|
7283
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 8388608] = "PropKey";
|
|
7284
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 16777216] = "AddDisposableResourceAndDisposeResources";
|
|
7287
7285
|
ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper";
|
|
7288
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] =
|
|
7286
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper";
|
|
7289
7287
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes";
|
|
7290
7288
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ForAwaitOfIncludes"] = 16384 /* AsyncValues */] = "ForAwaitOfIncludes";
|
|
7291
7289
|
ExternalEmitHelpers2[ExternalEmitHelpers2["AsyncGeneratorIncludes"] = 6144] = "AsyncGeneratorIncludes";
|
|
@@ -7293,16 +7291,16 @@ var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => {
|
|
|
7293
7291
|
ExternalEmitHelpers2[ExternalEmitHelpers2["SpreadIncludes"] = 1536] = "SpreadIncludes";
|
|
7294
7292
|
return ExternalEmitHelpers2;
|
|
7295
7293
|
})(ExternalEmitHelpers || {});
|
|
7296
|
-
var EmitHint = /* @__PURE__ */ ((
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
return
|
|
7294
|
+
var EmitHint = /* @__PURE__ */ ((EmitHint5) => {
|
|
7295
|
+
EmitHint5[EmitHint5["SourceFile"] = 0] = "SourceFile";
|
|
7296
|
+
EmitHint5[EmitHint5["Expression"] = 1] = "Expression";
|
|
7297
|
+
EmitHint5[EmitHint5["IdentifierName"] = 2] = "IdentifierName";
|
|
7298
|
+
EmitHint5[EmitHint5["MappedTypeParameter"] = 3] = "MappedTypeParameter";
|
|
7299
|
+
EmitHint5[EmitHint5["Unspecified"] = 4] = "Unspecified";
|
|
7300
|
+
EmitHint5[EmitHint5["EmbeddedStatement"] = 5] = "EmbeddedStatement";
|
|
7301
|
+
EmitHint5[EmitHint5["JsxAttributeValue"] = 6] = "JsxAttributeValue";
|
|
7302
|
+
EmitHint5[EmitHint5["ImportTypeNodeAttributes"] = 7] = "ImportTypeNodeAttributes";
|
|
7303
|
+
return EmitHint5;
|
|
7306
7304
|
})(EmitHint || {});
|
|
7307
7305
|
var OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => {
|
|
7308
7306
|
OuterExpressionKinds2[OuterExpressionKinds2["Parentheses"] = 1] = "Parentheses";
|
|
@@ -9312,7 +9310,7 @@ var Diagnostics = {
|
|
|
9312
9310
|
A_set_accessor_parameter_cannot_have_an_initializer: diag(1052, 1 /* Error */, "A_set_accessor_parameter_cannot_have_an_initializer_1052", "A 'set' accessor parameter cannot have an initializer."),
|
|
9313
9311
|
A_set_accessor_cannot_have_rest_parameter: diag(1053, 1 /* Error */, "A_set_accessor_cannot_have_rest_parameter_1053", "A 'set' accessor cannot have rest parameter."),
|
|
9314
9312
|
A_get_accessor_cannot_have_parameters: diag(1054, 1 /* Error */, "A_get_accessor_cannot_have_parameters_1054", "A 'get' accessor cannot have parameters."),
|
|
9315
|
-
|
|
9313
|
+
Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: diag(1055, 1 /* Error */, "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055", "Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),
|
|
9316
9314
|
Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: diag(1056, 1 /* Error */, "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056", "Accessors are only available when targeting ECMAScript 5 and higher."),
|
|
9317
9315
|
The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1058, 1 /* Error */, "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058", "The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),
|
|
9318
9316
|
A_promise_must_have_a_then_method: diag(1059, 1 /* Error */, "A_promise_must_have_a_then_method_1059", "A promise must have a 'then' method."),
|
|
@@ -9471,9 +9469,9 @@ var Diagnostics = {
|
|
|
9471
9469
|
A_type_literal_property_cannot_have_an_initializer: diag(1247, 1 /* Error */, "A_type_literal_property_cannot_have_an_initializer_1247", "A type literal property cannot have an initializer."),
|
|
9472
9470
|
A_class_member_cannot_have_the_0_keyword: diag(1248, 1 /* Error */, "A_class_member_cannot_have_the_0_keyword_1248", "A class member cannot have the '{0}' keyword."),
|
|
9473
9471
|
A_decorator_can_only_decorate_a_method_implementation_not_an_overload: diag(1249, 1 /* Error */, "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249", "A decorator can only decorate a method implementation, not an overload."),
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9472
|
+
Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5: diag(1250, 1 /* Error */, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),
|
|
9473
|
+
Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode: diag(1251, 1 /* Error */, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),
|
|
9474
|
+
Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode: diag(1252, 1 /* Error */, "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252", "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),
|
|
9477
9475
|
Abstract_properties_can_only_appear_within_an_abstract_class: diag(1253, 1 /* Error */, "Abstract_properties_can_only_appear_within_an_abstract_class_1253", "Abstract properties can only appear within an abstract class."),
|
|
9478
9476
|
A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: diag(1254, 1 /* Error */, "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254", "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),
|
|
9479
9477
|
A_definite_assignment_assertion_is_not_permitted_in_this_context: diag(1255, 1 /* Error */, "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255", "A definite assignment assertion '!' is not permitted in this context."),
|
|
@@ -9910,7 +9908,7 @@ var Diagnostics = {
|
|
|
9910
9908
|
Tuple_type_0_of_length_1_has_no_element_at_index_2: diag(2493, 1 /* Error */, "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493", "Tuple type '{0}' of length '{1}' has no element at index '{2}'."),
|
|
9911
9909
|
Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: diag(2494, 1 /* Error */, "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494", "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),
|
|
9912
9910
|
Type_0_is_not_an_array_type_or_a_string_type: diag(2495, 1 /* Error */, "Type_0_is_not_an_array_type_or_a_string_type_2495", "Type '{0}' is not an array type or a string type."),
|
|
9913
|
-
|
|
9911
|
+
The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression: diag(2496, 1 /* Error */, "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496", "The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),
|
|
9914
9912
|
This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export: diag(2497, 1 /* Error */, "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497", "This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),
|
|
9915
9913
|
Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: diag(2498, 1 /* Error */, "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498", "Module '{0}' uses 'export =' and cannot be used with 'export *'."),
|
|
9916
9914
|
An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2499, 1 /* Error */, "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499", "An interface can only extend an identifier/qualified-name with optional type arguments."),
|
|
@@ -9935,7 +9933,7 @@ var Diagnostics = {
|
|
|
9935
9933
|
A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."),
|
|
9936
9934
|
An_async_iterator_must_have_a_next_method: diag(2519, 1 /* Error */, "An_async_iterator_must_have_a_next_method_2519", "An async iterator must have a 'next()' method."),
|
|
9937
9935
|
Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: diag(2520, 1 /* Error */, "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520", "Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),
|
|
9938
|
-
|
|
9936
|
+
The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method: diag(2522, 1 /* Error */, "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522", "The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),
|
|
9939
9937
|
yield_expressions_cannot_be_used_in_a_parameter_initializer: diag(2523, 1 /* Error */, "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523", "'yield' expressions cannot be used in a parameter initializer."),
|
|
9940
9938
|
await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, 1 /* Error */, "await_expressions_cannot_be_used_in_a_parameter_initializer_2524", "'await' expressions cannot be used in a parameter initializer."),
|
|
9941
9939
|
Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: diag(2525, 1 /* Error */, "Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525", "Initializer provides no value for this binding element and the binding element has no default value."),
|
|
@@ -10095,14 +10093,14 @@ var Diagnostics = {
|
|
|
10095
10093
|
_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."),
|
|
10096
10094
|
The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."),
|
|
10097
10095
|
The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1 /* Error */, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."),
|
|
10098
|
-
|
|
10096
|
+
An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1 /* Error */, "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705", "An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),
|
|
10099
10097
|
Required_type_parameters_may_not_follow_optional_type_parameters: diag(2706, 1 /* Error */, "Required_type_parameters_may_not_follow_optional_type_parameters_2706", "Required type parameters may not follow optional type parameters."),
|
|
10100
10098
|
Generic_type_0_requires_between_1_and_2_type_arguments: diag(2707, 1 /* Error */, "Generic_type_0_requires_between_1_and_2_type_arguments_2707", "Generic type '{0}' requires between {1} and {2} type arguments."),
|
|
10101
10099
|
Cannot_use_namespace_0_as_a_value: diag(2708, 1 /* Error */, "Cannot_use_namespace_0_as_a_value_2708", "Cannot use namespace '{0}' as a value."),
|
|
10102
10100
|
Cannot_use_namespace_0_as_a_type: diag(2709, 1 /* Error */, "Cannot_use_namespace_0_as_a_type_2709", "Cannot use namespace '{0}' as a type."),
|
|
10103
10101
|
_0_are_specified_twice_The_attribute_named_0_will_be_overwritten: diag(2710, 1 /* Error */, "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710", "'{0}' are specified twice. The attribute named '{0}' will be overwritten."),
|
|
10104
10102
|
A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2711, 1 /* Error */, "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711", "A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),
|
|
10105
|
-
|
|
10103
|
+
A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2712, 1 /* Error */, "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712", "A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),
|
|
10106
10104
|
Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1: diag(2713, 1 /* Error */, "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713", `Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),
|
|
10107
10105
|
The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: diag(2714, 1 /* Error */, "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714", "The expression of an export assignment must be an identifier or qualified name in an ambient context."),
|
|
10108
10106
|
Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: diag(2715, 1 /* Error */, "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715", "Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),
|
|
@@ -10368,7 +10366,6 @@ var Diagnostics = {
|
|
|
10368
10366
|
Could_not_write_file_0_Colon_1: diag(5033, 1 /* Error */, "Could_not_write_file_0_Colon_1_5033", "Could not write file '{0}': {1}."),
|
|
10369
10367
|
Option_project_cannot_be_mixed_with_source_files_on_a_command_line: diag(5042, 1 /* Error */, "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042", "Option 'project' cannot be mixed with source files on a command line."),
|
|
10370
10368
|
Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: diag(5047, 1 /* Error */, "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047", "Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),
|
|
10371
|
-
Option_0_cannot_be_specified_when_option_target_is_ES3: diag(5048, 1 /* Error */, "Option_0_cannot_be_specified_when_option_target_is_ES3_5048", "Option '{0}' cannot be specified when option 'target' is 'ES3'."),
|
|
10372
10369
|
Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: diag(5051, 1 /* Error */, "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051", "Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),
|
|
10373
10370
|
Option_0_cannot_be_specified_without_specifying_option_1: diag(5052, 1 /* Error */, "Option_0_cannot_be_specified_without_specifying_option_1_5052", "Option '{0}' cannot be specified without specifying option '{1}'."),
|
|
10374
10371
|
Option_0_cannot_be_specified_with_option_1: diag(5053, 1 /* Error */, "Option_0_cannot_be_specified_with_option_1_5053", "Option '{0}' cannot be specified with option '{1}'."),
|
|
@@ -10590,7 +10587,7 @@ var Diagnostics = {
|
|
|
10590
10587
|
Show_all_compiler_options: diag(6169, 3 /* Message */, "Show_all_compiler_options_6169", "Show all compiler options."),
|
|
10591
10588
|
Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: diag(6170, 3 /* Message */, "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170", "[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),
|
|
10592
10589
|
Command_line_Options: diag(6171, 3 /* Message */, "Command_line_Options_6171", "Command-line Options"),
|
|
10593
|
-
|
|
10590
|
+
Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5: diag(6179, 3 /* Message */, "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179", "Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),
|
|
10594
10591
|
Enable_all_strict_type_checking_options: diag(6180, 3 /* Message */, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."),
|
|
10595
10592
|
Scoped_package_detected_looking_in_0: diag(6182, 3 /* Message */, "Scoped_package_detected_looking_in_0_6182", "Scoped package detected, looking in '{0}'"),
|
|
10596
10593
|
Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6183, 3 /* Message */, "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183", "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),
|
|
@@ -11538,8 +11535,6 @@ var textToToken = new Map(Object.entries({
|
|
|
11538
11535
|
"#": 63 /* HashToken */,
|
|
11539
11536
|
"`": 62 /* BacktickToken */
|
|
11540
11537
|
}));
|
|
11541
|
-
var unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
|
|
11542
|
-
var unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
|
|
11543
11538
|
var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
|
|
11544
11539
|
var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
|
|
11545
11540
|
var unicodeESNextIdentifierStart = [65, 90, 97, 122, 170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 895, 895, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1488, 1514, 1519, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2144, 2154, 2208, 2228, 2230, 2237, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2432, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2556, 2556, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2809, 2809, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3133, 3160, 3162, 3168, 3169, 3200, 3200, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3412, 3414, 3423, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6264, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6430, 6480, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7401, 7404, 7406, 7411, 7413, 7414, 7418, 7418, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43261, 43262, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43488, 43492, 43494, 43503, 43514, 43518, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43646, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66176, 66204, 66208, 66256, 66304, 66335, 66349, 66378, 66384, 66421, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68096, 68112, 68115, 68117, 68119, 68121, 68149, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68324, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68899, 69376, 69404, 69415, 69415, 69424, 69445, 69600, 69622, 69635, 69687, 69763, 69807, 69840, 69864, 69891, 69926, 69956, 69956, 69968, 70002, 70006, 70006, 70019, 70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163, 70187, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70366, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70461, 70461, 70480, 70480, 70493, 70497, 70656, 70708, 70727, 70730, 70751, 70751, 70784, 70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168, 71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71680, 71723, 71840, 71903, 71935, 71935, 72096, 72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203, 72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72750, 72768, 72768, 72818, 72847, 72960, 72966, 72968, 72969, 72971, 73008, 73030, 73030, 73056, 73061, 73063, 73064, 73066, 73097, 73112, 73112, 73440, 73458, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92880, 92909, 92928, 92975, 92992, 92995, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94032, 94032, 94099, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 123136, 123180, 123191, 123197, 123214, 123214, 123584, 123627, 124928, 125124, 125184, 125251, 125259, 125259, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101];
|
|
@@ -11569,10 +11564,10 @@ function lookupInUnicodeMap(code, map2) {
|
|
|
11569
11564
|
return false;
|
|
11570
11565
|
}
|
|
11571
11566
|
function isUnicodeIdentifierStart(code, languageVersion) {
|
|
11572
|
-
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) :
|
|
11567
|
+
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code, unicodeES5IdentifierStart);
|
|
11573
11568
|
}
|
|
11574
11569
|
function isUnicodeIdentifierPart(code, languageVersion) {
|
|
11575
|
-
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) :
|
|
11570
|
+
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code, unicodeES5IdentifierPart);
|
|
11576
11571
|
}
|
|
11577
11572
|
function makeReverseMap(source) {
|
|
11578
11573
|
const result = [];
|
|
@@ -20609,7 +20604,8 @@ var computedOptions = createComputedCompilerOptions({
|
|
|
20609
20604
|
target: {
|
|
20610
20605
|
dependencies: ["module"],
|
|
20611
20606
|
computeValue: (compilerOptions) => {
|
|
20612
|
-
|
|
20607
|
+
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
|
20608
|
+
return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
|
|
20613
20609
|
}
|
|
20614
20610
|
},
|
|
20615
20611
|
module: {
|
|
@@ -25975,7 +25971,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
25975
25971
|
node.path = "";
|
|
25976
25972
|
node.resolvedPath = "";
|
|
25977
25973
|
node.originalFileName = "";
|
|
25978
|
-
node.languageVersion =
|
|
25974
|
+
node.languageVersion = 1 /* ES5 */;
|
|
25979
25975
|
node.languageVariant = 0;
|
|
25980
25976
|
node.scriptKind = 0;
|
|
25981
25977
|
node.isDeclarationFile = false;
|
|
@@ -27587,7 +27583,6 @@ function createEmitHelperFactory(context) {
|
|
|
27587
27583
|
// ES2015 Generator Helpers
|
|
27588
27584
|
createGeneratorHelper,
|
|
27589
27585
|
// ES Module Helpers
|
|
27590
|
-
createCreateBindingHelper,
|
|
27591
27586
|
createImportStarHelper,
|
|
27592
27587
|
createImportStarCallbackHelper,
|
|
27593
27588
|
createImportDefaultHelper,
|
|
@@ -28000,15 +27995,6 @@ function createEmitHelperFactory(context) {
|
|
|
28000
27995
|
[factory2.createThis(), body]
|
|
28001
27996
|
);
|
|
28002
27997
|
}
|
|
28003
|
-
function createCreateBindingHelper(module2, inputName, outputName) {
|
|
28004
|
-
context.requestEmitHelper(createBindingHelper);
|
|
28005
|
-
return factory2.createCallExpression(
|
|
28006
|
-
getUnscopedHelperName("__createBinding"),
|
|
28007
|
-
/*typeArguments*/
|
|
28008
|
-
void 0,
|
|
28009
|
-
[factory2.createIdentifier("exports"), module2, inputName, ...outputName ? [outputName] : []]
|
|
28010
|
-
);
|
|
28011
|
-
}
|
|
28012
27998
|
function createImportStarHelper(expression) {
|
|
28013
27999
|
context.requestEmitHelper(importStarHelper);
|
|
28014
28000
|
return factory2.createCallExpression(
|
|
@@ -46086,12 +46072,12 @@ function createBinder() {
|
|
|
46086
46072
|
}
|
|
46087
46073
|
function getStrictModeBlockScopeFunctionDeclarationMessage(node) {
|
|
46088
46074
|
if (getContainingClass(node)) {
|
|
46089
|
-
return Diagnostics.
|
|
46075
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode;
|
|
46090
46076
|
}
|
|
46091
46077
|
if (file.externalModuleIndicator) {
|
|
46092
|
-
return Diagnostics.
|
|
46078
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode;
|
|
46093
46079
|
}
|
|
46094
|
-
return Diagnostics.
|
|
46080
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5;
|
|
46095
46081
|
}
|
|
46096
46082
|
function checkStrictModeFunctionDeclaration(node) {
|
|
46097
46083
|
if (languageVersion < 2 /* ES2015 */) {
|
|
@@ -53026,7 +53012,7 @@ function createTypeChecker(host) {
|
|
|
53026
53012
|
return parentName;
|
|
53027
53013
|
}
|
|
53028
53014
|
const memberName = symbolName(type.symbol);
|
|
53029
|
-
if (isIdentifierText(memberName,
|
|
53015
|
+
if (isIdentifierText(memberName, 1 /* ES5 */)) {
|
|
53030
53016
|
return appendReferenceToType(
|
|
53031
53017
|
parentName,
|
|
53032
53018
|
factory.createTypeReferenceNode(
|
|
@@ -72468,9 +72454,9 @@ function createTypeChecker(host) {
|
|
|
72468
72454
|
if (container) {
|
|
72469
72455
|
if (languageVersion < 2 /* ES2015 */) {
|
|
72470
72456
|
if (container.kind === 219 /* ArrowFunction */) {
|
|
72471
|
-
error2(node, Diagnostics.
|
|
72457
|
+
error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression);
|
|
72472
72458
|
} else if (hasSyntacticModifier(container, 1024 /* Async */)) {
|
|
72473
|
-
error2(node, Diagnostics.
|
|
72459
|
+
error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method);
|
|
72474
72460
|
}
|
|
72475
72461
|
}
|
|
72476
72462
|
getNodeLinks(container).flags |= 512 /* CaptureArguments */;
|
|
@@ -76592,7 +76578,7 @@ function createTypeChecker(host) {
|
|
|
76592
76578
|
case 174 /* MethodDeclaration */:
|
|
76593
76579
|
case 177 /* GetAccessor */:
|
|
76594
76580
|
case 178 /* SetAccessor */:
|
|
76595
|
-
return
|
|
76581
|
+
return signature.parameters.length <= 2 ? 2 : 3;
|
|
76596
76582
|
case 169 /* Parameter */:
|
|
76597
76583
|
return 3;
|
|
76598
76584
|
default:
|
|
@@ -77272,12 +77258,6 @@ function createTypeChecker(host) {
|
|
|
77272
77258
|
return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144 /* TypeParameter */) || !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576 /* Union */) && !(getReducedType(apparentFuncType).flags & 131072 /* Never */) && isTypeAssignableTo(funcType, globalFunctionType);
|
|
77273
77259
|
}
|
|
77274
77260
|
function resolveNewExpression(node, candidatesOutArray, checkMode) {
|
|
77275
|
-
if (node.arguments && languageVersion < 1 /* ES5 */) {
|
|
77276
|
-
const spreadIndex = getSpreadArgumentIndex(node.arguments);
|
|
77277
|
-
if (spreadIndex >= 0) {
|
|
77278
|
-
error2(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);
|
|
77279
|
-
}
|
|
77280
|
-
}
|
|
77281
77261
|
let expressionType = checkNonNullExpression(node.expression);
|
|
77282
77262
|
if (expressionType === silentNeverType) {
|
|
77283
77263
|
return silentNeverSignature;
|
|
@@ -78805,7 +78785,7 @@ function createTypeChecker(host) {
|
|
|
78805
78785
|
const keyType = getClassElementPropertyKeyType(node);
|
|
78806
78786
|
const keyParam = createParameter2("propertyKey", keyType);
|
|
78807
78787
|
const returnType = isPropertyDeclaration(node) ? voidType : createTypedPropertyDescriptorType(getTypeOfNode(node));
|
|
78808
|
-
const hasPropDesc =
|
|
78788
|
+
const hasPropDesc = !isPropertyDeclaration(parent2) || hasAccessorModifier(parent2);
|
|
78809
78789
|
if (hasPropDesc) {
|
|
78810
78790
|
const descriptorType = createTypedPropertyDescriptorType(getTypeOfNode(node));
|
|
78811
78791
|
const descriptorParam = createParameter2("descriptor", descriptorType);
|
|
@@ -78872,7 +78852,7 @@ function createTypeChecker(host) {
|
|
|
78872
78852
|
)) {
|
|
78873
78853
|
error2(
|
|
78874
78854
|
func,
|
|
78875
|
-
isImportCall(func) ? Diagnostics.
|
|
78855
|
+
isImportCall(func) ? Diagnostics.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option : Diagnostics.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option
|
|
78876
78856
|
);
|
|
78877
78857
|
}
|
|
78878
78858
|
return promiseType;
|
|
@@ -82385,7 +82365,7 @@ function createTypeChecker(host) {
|
|
|
82385
82365
|
}
|
|
82386
82366
|
const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode);
|
|
82387
82367
|
if (promiseConstructorName === void 0) {
|
|
82388
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
82368
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType));
|
|
82389
82369
|
return;
|
|
82390
82370
|
}
|
|
82391
82371
|
const promiseConstructorSymbol = resolveEntityName(
|
|
@@ -82400,9 +82380,9 @@ function createTypeChecker(host) {
|
|
|
82400
82380
|
/*reportErrors*/
|
|
82401
82381
|
false
|
|
82402
82382
|
)) {
|
|
82403
|
-
error2(returnTypeErrorLocation, Diagnostics.
|
|
82383
|
+
error2(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);
|
|
82404
82384
|
} else {
|
|
82405
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
82385
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName));
|
|
82406
82386
|
}
|
|
82407
82387
|
return;
|
|
82408
82388
|
}
|
|
@@ -82411,10 +82391,10 @@ function createTypeChecker(host) {
|
|
|
82411
82391
|
true
|
|
82412
82392
|
);
|
|
82413
82393
|
if (globalPromiseConstructorLikeType === emptyObjectType) {
|
|
82414
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
82394
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName));
|
|
82415
82395
|
return;
|
|
82416
82396
|
}
|
|
82417
|
-
const headMessage = Diagnostics.
|
|
82397
|
+
const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;
|
|
82418
82398
|
const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages(
|
|
82419
82399
|
/*details*/
|
|
82420
82400
|
void 0,
|
|
@@ -82623,19 +82603,19 @@ function createTypeChecker(host) {
|
|
|
82623
82603
|
checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
|
|
82624
82604
|
if (isClassDeclaration(node)) {
|
|
82625
82605
|
if (!node.name) {
|
|
82626
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
82606
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
82627
82607
|
} else {
|
|
82628
82608
|
const member = getFirstTransformableStaticClassElement(node);
|
|
82629
82609
|
if (member) {
|
|
82630
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
82610
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
82631
82611
|
}
|
|
82632
82612
|
}
|
|
82633
82613
|
} else if (!isClassExpression(node)) {
|
|
82634
82614
|
if (isPrivateIdentifier(node.name) && (isMethodDeclaration(node) || isAccessor(node) || isAutoAccessorPropertyDeclaration(node))) {
|
|
82635
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
82615
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
82636
82616
|
}
|
|
82637
82617
|
if (isComputedPropertyName(node.name)) {
|
|
82638
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
82618
|
+
checkExternalEmitHelpers(firstDecorator, 8388608 /* PropKey */);
|
|
82639
82619
|
}
|
|
82640
82620
|
}
|
|
82641
82621
|
}
|
|
@@ -83512,7 +83492,7 @@ function createTypeChecker(host) {
|
|
|
83512
83492
|
function checkVariableDeclarationList(node) {
|
|
83513
83493
|
const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
|
|
83514
83494
|
if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) {
|
|
83515
|
-
checkExternalEmitHelpers(node,
|
|
83495
|
+
checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
|
|
83516
83496
|
}
|
|
83517
83497
|
forEach(node.declarations, checkSourceElement);
|
|
83518
83498
|
}
|
|
@@ -83788,7 +83768,6 @@ function createTypeChecker(host) {
|
|
|
83788
83768
|
}
|
|
83789
83769
|
}
|
|
83790
83770
|
let arrayType = inputType;
|
|
83791
|
-
let reportedError = false;
|
|
83792
83771
|
let hasStringConstituent = false;
|
|
83793
83772
|
if (use & 4 /* AllowsStringInputFlag */) {
|
|
83794
83773
|
if (arrayType.flags & 1048576 /* Union */) {
|
|
@@ -83802,19 +83781,13 @@ function createTypeChecker(host) {
|
|
|
83802
83781
|
}
|
|
83803
83782
|
hasStringConstituent = arrayType !== inputType;
|
|
83804
83783
|
if (hasStringConstituent) {
|
|
83805
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
83806
|
-
if (errorNode) {
|
|
83807
|
-
error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);
|
|
83808
|
-
reportedError = true;
|
|
83809
|
-
}
|
|
83810
|
-
}
|
|
83811
83784
|
if (arrayType.flags & 131072 /* Never */) {
|
|
83812
83785
|
return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType;
|
|
83813
83786
|
}
|
|
83814
83787
|
}
|
|
83815
83788
|
}
|
|
83816
83789
|
if (!isArrayLikeType(arrayType)) {
|
|
83817
|
-
if (errorNode
|
|
83790
|
+
if (errorNode) {
|
|
83818
83791
|
const allowsStrings = !!(use & 4 /* AllowsStringInputFlag */) && !hasStringConstituent;
|
|
83819
83792
|
const [defaultDiagnostic, maybeMissingAwait] = getIterationDiagnosticDetails(allowsStrings, downlevelIteration);
|
|
83820
83793
|
errorAndMaybeSuggestAwait(
|
|
@@ -84802,9 +84775,9 @@ function createTypeChecker(host) {
|
|
|
84802
84775
|
location = getFirstTransformableStaticClassElement(node);
|
|
84803
84776
|
}
|
|
84804
84777
|
if (location) {
|
|
84805
|
-
checkExternalEmitHelpers(location,
|
|
84778
|
+
checkExternalEmitHelpers(location, 4194304 /* SetFunctionName */);
|
|
84806
84779
|
if ((isPropertyAssignment(parent2) || isPropertyDeclaration(parent2) || isBindingElement(parent2)) && isComputedPropertyName(parent2.name)) {
|
|
84807
|
-
checkExternalEmitHelpers(location,
|
|
84780
|
+
checkExternalEmitHelpers(location, 8388608 /* PropKey */);
|
|
84808
84781
|
}
|
|
84809
84782
|
}
|
|
84810
84783
|
}
|
|
@@ -86079,9 +86052,6 @@ function createTypeChecker(host) {
|
|
|
86079
86052
|
if (!checkGrammarModifiers(node) && hasSyntacticModifiers(node)) {
|
|
86080
86053
|
grammarErrorOnFirstToken(node, Diagnostics.An_export_declaration_cannot_have_modifiers);
|
|
86081
86054
|
}
|
|
86082
|
-
if (node.moduleSpecifier && node.exportClause && isNamedExports(node.exportClause) && length(node.exportClause.elements) && languageVersion === 0 /* ES3 */) {
|
|
86083
|
-
checkExternalEmitHelpers(node, 4194304 /* CreateBinding */);
|
|
86084
|
-
}
|
|
86085
86055
|
checkGrammarExportDeclaration(node);
|
|
86086
86056
|
if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) {
|
|
86087
86057
|
if (node.exportClause && !isNamespaceExport(node.exportClause)) {
|
|
@@ -88492,7 +88462,7 @@ function createTypeChecker(host) {
|
|
|
88492
88462
|
const helpersModule = resolveHelpersModule(sourceFile, location);
|
|
88493
88463
|
if (helpersModule !== unknownSymbol) {
|
|
88494
88464
|
const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers;
|
|
88495
|
-
for (let helper = 1 /* FirstEmitHelper */; helper <=
|
|
88465
|
+
for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) {
|
|
88496
88466
|
if (uncheckedHelpers & helper) {
|
|
88497
88467
|
for (const name of getHelperNames(helper)) {
|
|
88498
88468
|
if (requestedExternalEmitHelperNames.has(name))
|
|
@@ -88568,13 +88538,11 @@ function createTypeChecker(host) {
|
|
|
88568
88538
|
return ["__classPrivateFieldSet"];
|
|
88569
88539
|
case 2097152 /* ClassPrivateFieldIn */:
|
|
88570
88540
|
return ["__classPrivateFieldIn"];
|
|
88571
|
-
case 4194304 /*
|
|
88572
|
-
return ["__createBinding"];
|
|
88573
|
-
case 8388608 /* SetFunctionName */:
|
|
88541
|
+
case 4194304 /* SetFunctionName */:
|
|
88574
88542
|
return ["__setFunctionName"];
|
|
88575
|
-
case
|
|
88543
|
+
case 8388608 /* PropKey */:
|
|
88576
88544
|
return ["__propKey"];
|
|
88577
|
-
case
|
|
88545
|
+
case 16777216 /* AddDisposableResourceAndDisposeResources */:
|
|
88578
88546
|
return ["__addDisposableResource", "__disposeResources"];
|
|
88579
88547
|
default:
|
|
88580
88548
|
return Debug.fail("Unrecognized helper");
|
|
@@ -89411,9 +89379,6 @@ function createTypeChecker(host) {
|
|
|
89411
89379
|
}
|
|
89412
89380
|
function checkGrammarAccessor(accessor) {
|
|
89413
89381
|
if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) {
|
|
89414
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
89415
|
-
return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);
|
|
89416
|
-
}
|
|
89417
89382
|
if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(accessor.name)) {
|
|
89418
89383
|
return grammarErrorOnNode(accessor.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);
|
|
89419
89384
|
}
|
|
@@ -98213,7 +98178,7 @@ function transformLegacyDecorators(context) {
|
|
|
98213
98178
|
/*generateNameForComputedPropertyName*/
|
|
98214
98179
|
!hasSyntacticModifier(member, 128 /* Ambient */)
|
|
98215
98180
|
);
|
|
98216
|
-
const descriptor =
|
|
98181
|
+
const descriptor = isPropertyDeclaration(member) && !hasAccessorModifier(member) ? factory2.createVoidZero() : factory2.createNull();
|
|
98217
98182
|
const helper = emitHelpers().createDecorateHelper(
|
|
98218
98183
|
decoratorExpressions,
|
|
98219
98184
|
prefix,
|
|
@@ -107576,77 +107541,6 @@ function transformES2015(context) {
|
|
|
107576
107541
|
}
|
|
107577
107542
|
}
|
|
107578
107543
|
|
|
107579
|
-
// src/compiler/transformers/es5.ts
|
|
107580
|
-
function transformES5(context) {
|
|
107581
|
-
const { factory: factory2 } = context;
|
|
107582
|
-
const compilerOptions = context.getCompilerOptions();
|
|
107583
|
-
let previousOnEmitNode;
|
|
107584
|
-
let noSubstitution;
|
|
107585
|
-
if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) {
|
|
107586
|
-
previousOnEmitNode = context.onEmitNode;
|
|
107587
|
-
context.onEmitNode = onEmitNode;
|
|
107588
|
-
context.enableEmitNotification(286 /* JsxOpeningElement */);
|
|
107589
|
-
context.enableEmitNotification(287 /* JsxClosingElement */);
|
|
107590
|
-
context.enableEmitNotification(285 /* JsxSelfClosingElement */);
|
|
107591
|
-
noSubstitution = [];
|
|
107592
|
-
}
|
|
107593
|
-
const previousOnSubstituteNode = context.onSubstituteNode;
|
|
107594
|
-
context.onSubstituteNode = onSubstituteNode;
|
|
107595
|
-
context.enableSubstitution(211 /* PropertyAccessExpression */);
|
|
107596
|
-
context.enableSubstitution(303 /* PropertyAssignment */);
|
|
107597
|
-
return chainBundle(context, transformSourceFile);
|
|
107598
|
-
function transformSourceFile(node) {
|
|
107599
|
-
return node;
|
|
107600
|
-
}
|
|
107601
|
-
function onEmitNode(hint, node, emitCallback) {
|
|
107602
|
-
switch (node.kind) {
|
|
107603
|
-
case 286 /* JsxOpeningElement */:
|
|
107604
|
-
case 287 /* JsxClosingElement */:
|
|
107605
|
-
case 285 /* JsxSelfClosingElement */:
|
|
107606
|
-
const tagName = node.tagName;
|
|
107607
|
-
noSubstitution[getOriginalNodeId(tagName)] = true;
|
|
107608
|
-
break;
|
|
107609
|
-
}
|
|
107610
|
-
previousOnEmitNode(hint, node, emitCallback);
|
|
107611
|
-
}
|
|
107612
|
-
function onSubstituteNode(hint, node) {
|
|
107613
|
-
if (node.id && noSubstitution && noSubstitution[node.id]) {
|
|
107614
|
-
return previousOnSubstituteNode(hint, node);
|
|
107615
|
-
}
|
|
107616
|
-
node = previousOnSubstituteNode(hint, node);
|
|
107617
|
-
if (isPropertyAccessExpression(node)) {
|
|
107618
|
-
return substitutePropertyAccessExpression(node);
|
|
107619
|
-
} else if (isPropertyAssignment(node)) {
|
|
107620
|
-
return substitutePropertyAssignment(node);
|
|
107621
|
-
}
|
|
107622
|
-
return node;
|
|
107623
|
-
}
|
|
107624
|
-
function substitutePropertyAccessExpression(node) {
|
|
107625
|
-
if (isPrivateIdentifier(node.name)) {
|
|
107626
|
-
return node;
|
|
107627
|
-
}
|
|
107628
|
-
const literalName = trySubstituteReservedName(node.name);
|
|
107629
|
-
if (literalName) {
|
|
107630
|
-
return setTextRange(factory2.createElementAccessExpression(node.expression, literalName), node);
|
|
107631
|
-
}
|
|
107632
|
-
return node;
|
|
107633
|
-
}
|
|
107634
|
-
function substitutePropertyAssignment(node) {
|
|
107635
|
-
const literalName = isIdentifier(node.name) && trySubstituteReservedName(node.name);
|
|
107636
|
-
if (literalName) {
|
|
107637
|
-
return factory2.updatePropertyAssignment(node, literalName, node.initializer);
|
|
107638
|
-
}
|
|
107639
|
-
return node;
|
|
107640
|
-
}
|
|
107641
|
-
function trySubstituteReservedName(name) {
|
|
107642
|
-
const token = identifierToKeywordKind(name);
|
|
107643
|
-
if (token !== void 0 && token >= 83 /* FirstReservedWord */ && token <= 118 /* LastReservedWord */) {
|
|
107644
|
-
return setTextRange(factory2.createStringLiteralFromNode(name), name);
|
|
107645
|
-
}
|
|
107646
|
-
return void 0;
|
|
107647
|
-
}
|
|
107648
|
-
}
|
|
107649
|
-
|
|
107650
107544
|
// src/compiler/transformers/generators.ts
|
|
107651
107545
|
function getInstructionName(instruction) {
|
|
107652
107546
|
switch (instruction) {
|
|
@@ -110899,43 +110793,29 @@ function transformModule(context) {
|
|
|
110899
110793
|
);
|
|
110900
110794
|
}
|
|
110901
110795
|
for (const specifier of node.exportClause.elements) {
|
|
110902
|
-
|
|
110903
|
-
|
|
110904
|
-
|
|
110905
|
-
|
|
110906
|
-
|
|
110907
|
-
|
|
110908
|
-
|
|
110909
|
-
|
|
110910
|
-
|
|
110911
|
-
|
|
110912
|
-
|
|
110913
|
-
|
|
110914
|
-
|
|
110915
|
-
|
|
110916
|
-
|
|
110917
|
-
|
|
110918
|
-
|
|
110919
|
-
);
|
|
110920
|
-
statements.push(
|
|
110921
|
-
setOriginalNode(
|
|
110922
|
-
setTextRange(
|
|
110923
|
-
factory2.createExpressionStatement(
|
|
110924
|
-
createExportExpression(
|
|
110925
|
-
factory2.getExportName(specifier),
|
|
110926
|
-
exportedValue,
|
|
110927
|
-
/*location*/
|
|
110928
|
-
void 0,
|
|
110929
|
-
/*liveBinding*/
|
|
110930
|
-
true
|
|
110931
|
-
)
|
|
110932
|
-
),
|
|
110933
|
-
specifier
|
|
110796
|
+
const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && idText(specifier.propertyName || specifier.name) === "default";
|
|
110797
|
+
const exportedValue = factory2.createPropertyAccessExpression(
|
|
110798
|
+
exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName,
|
|
110799
|
+
specifier.propertyName || specifier.name
|
|
110800
|
+
);
|
|
110801
|
+
statements.push(
|
|
110802
|
+
setOriginalNode(
|
|
110803
|
+
setTextRange(
|
|
110804
|
+
factory2.createExpressionStatement(
|
|
110805
|
+
createExportExpression(
|
|
110806
|
+
factory2.getExportName(specifier),
|
|
110807
|
+
exportedValue,
|
|
110808
|
+
/*location*/
|
|
110809
|
+
void 0,
|
|
110810
|
+
/*liveBinding*/
|
|
110811
|
+
true
|
|
110812
|
+
)
|
|
110934
110813
|
),
|
|
110935
110814
|
specifier
|
|
110936
|
-
)
|
|
110937
|
-
|
|
110938
|
-
|
|
110815
|
+
),
|
|
110816
|
+
specifier
|
|
110817
|
+
)
|
|
110818
|
+
);
|
|
110939
110819
|
}
|
|
110940
110820
|
return singleOrMany(statements);
|
|
110941
110821
|
} else if (node.exportClause) {
|
|
@@ -111286,30 +111166,20 @@ function transformModule(context) {
|
|
|
111286
111166
|
return statements;
|
|
111287
111167
|
}
|
|
111288
111168
|
function createUnderscoreUnderscoreESModule() {
|
|
111289
|
-
|
|
111290
|
-
|
|
111291
|
-
|
|
111292
|
-
|
|
111293
|
-
|
|
111294
|
-
|
|
111295
|
-
|
|
111296
|
-
|
|
111297
|
-
|
|
111298
|
-
|
|
111299
|
-
|
|
111300
|
-
|
|
111301
|
-
|
|
111302
|
-
|
|
111303
|
-
[
|
|
111304
|
-
factory2.createIdentifier("exports"),
|
|
111305
|
-
factory2.createStringLiteral("__esModule"),
|
|
111306
|
-
factory2.createObjectLiteralExpression([
|
|
111307
|
-
factory2.createPropertyAssignment("value", factory2.createTrue())
|
|
111308
|
-
])
|
|
111309
|
-
]
|
|
111310
|
-
)
|
|
111311
|
-
);
|
|
111312
|
-
}
|
|
111169
|
+
const statement = factory2.createExpressionStatement(
|
|
111170
|
+
factory2.createCallExpression(
|
|
111171
|
+
factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"),
|
|
111172
|
+
/*typeArguments*/
|
|
111173
|
+
void 0,
|
|
111174
|
+
[
|
|
111175
|
+
factory2.createIdentifier("exports"),
|
|
111176
|
+
factory2.createStringLiteral("__esModule"),
|
|
111177
|
+
factory2.createObjectLiteralExpression([
|
|
111178
|
+
factory2.createPropertyAssignment("value", factory2.createTrue())
|
|
111179
|
+
])
|
|
111180
|
+
]
|
|
111181
|
+
)
|
|
111182
|
+
);
|
|
111313
111183
|
setEmitFlags(statement, 2097152 /* CustomPrologue */);
|
|
111314
111184
|
return statement;
|
|
111315
111185
|
}
|
|
@@ -111329,7 +111199,7 @@ function transformModule(context) {
|
|
|
111329
111199
|
}
|
|
111330
111200
|
function createExportExpression(name, value, location, liveBinding) {
|
|
111331
111201
|
return setTextRange(
|
|
111332
|
-
liveBinding
|
|
111202
|
+
liveBinding ? factory2.createCallExpression(
|
|
111333
111203
|
factory2.createPropertyAccessExpression(
|
|
111334
111204
|
factory2.createIdentifier("Object"),
|
|
111335
111205
|
"defineProperty"
|
|
@@ -115290,9 +115160,6 @@ function getScriptTransformers(compilerOptions, customTransformers, emitOnly) {
|
|
|
115290
115160
|
transformers.push(transformGenerators);
|
|
115291
115161
|
}
|
|
115292
115162
|
transformers.push(getModuleTransformer(moduleKind));
|
|
115293
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
115294
|
-
transformers.push(transformES5);
|
|
115295
|
-
}
|
|
115296
115163
|
addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory));
|
|
115297
115164
|
return transformers;
|
|
115298
115165
|
}
|
|
@@ -124887,9 +124754,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124887
124754
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
124888
124755
|
}
|
|
124889
124756
|
}
|
|
124890
|
-
if (options.useDefineForClassFields && languageVersion === 0 /* ES3 */) {
|
|
124891
|
-
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, "useDefineForClassFields");
|
|
124892
|
-
}
|
|
124893
124757
|
if (options.checkJs && !getAllowJSCompilerOption(options)) {
|
|
124894
124758
|
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"));
|
|
124895
124759
|
}
|
|
@@ -161601,6 +161465,8 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
|
|
|
161601
161465
|
return 1 /* Success */;
|
|
161602
161466
|
}
|
|
161603
161467
|
function tryGetObjectLikeCompletionSymbols() {
|
|
161468
|
+
if ((contextToken == null ? void 0 : contextToken.kind) === 26 /* DotDotDotToken */)
|
|
161469
|
+
return 0 /* Continue */;
|
|
161604
161470
|
const symbolsStartIndex = symbols.length;
|
|
161605
161471
|
const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile);
|
|
161606
161472
|
if (!objectLikeContainer)
|
|
@@ -176682,7 +176548,6 @@ __export(ts_exports2, {
|
|
|
176682
176548
|
transformES2019: () => transformES2019,
|
|
176683
176549
|
transformES2020: () => transformES2020,
|
|
176684
176550
|
transformES2021: () => transformES2021,
|
|
176685
|
-
transformES5: () => transformES5,
|
|
176686
176551
|
transformESDecorators: () => transformESDecorators,
|
|
176687
176552
|
transformESNext: () => transformESNext,
|
|
176688
176553
|
transformGenerators: () => transformGenerators,
|
|
@@ -176888,9 +176753,9 @@ function buildOverload(name) {
|
|
|
176888
176753
|
|
|
176889
176754
|
// src/deprecatedCompat/5.0/identifierProperties.ts
|
|
176890
176755
|
addObjectAllocatorPatcher((objectAllocator2) => {
|
|
176891
|
-
const
|
|
176892
|
-
if (!hasProperty(
|
|
176893
|
-
Object.defineProperty(
|
|
176756
|
+
const Identifier78 = objectAllocator2.getIdentifierConstructor();
|
|
176757
|
+
if (!hasProperty(Identifier78.prototype, "originalKeywordKind")) {
|
|
176758
|
+
Object.defineProperty(Identifier78.prototype, "originalKeywordKind", {
|
|
176894
176759
|
get: deprecate(function() {
|
|
176895
176760
|
return identifierToKeywordKind(this);
|
|
176896
176761
|
}, {
|
|
@@ -176902,8 +176767,8 @@ addObjectAllocatorPatcher((objectAllocator2) => {
|
|
|
176902
176767
|
})
|
|
176903
176768
|
});
|
|
176904
176769
|
}
|
|
176905
|
-
if (!hasProperty(
|
|
176906
|
-
Object.defineProperty(
|
|
176770
|
+
if (!hasProperty(Identifier78.prototype, "isInJSDocNamespace")) {
|
|
176771
|
+
Object.defineProperty(Identifier78.prototype, "isInJSDocNamespace", {
|
|
176907
176772
|
get: deprecate(function() {
|
|
176908
176773
|
return this.flags & 4096 /* IdentifierIsInJSDocNamespace */ ? true : void 0;
|
|
176909
176774
|
}, {
|
|
@@ -177079,6 +176944,7 @@ var TypingsInstaller = class {
|
|
|
177079
176944
|
this.pendingRunRequests = [];
|
|
177080
176945
|
this.installRunCount = 1;
|
|
177081
176946
|
this.inFlightRequestCount = 0;
|
|
176947
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
177082
176948
|
this.latestDistTag = "latest";
|
|
177083
176949
|
const isLoggingEnabled = this.log.isEnabled();
|
|
177084
176950
|
if (isLoggingEnabled) {
|
|
@@ -183754,6 +183620,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
183754
183620
|
}
|
|
183755
183621
|
});
|
|
183756
183622
|
}
|
|
183623
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
183757
183624
|
closeExternalProject(uncheckedFileName, print) {
|
|
183758
183625
|
const fileName = toNormalizedPath(uncheckedFileName);
|
|
183759
183626
|
const configuredProjects = this.externalProjectToConfiguredProjectMap.get(fileName);
|
|
@@ -183892,6 +183759,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
183892
183759
|
excludedFiles.push(normalizedNames[index]);
|
|
183893
183760
|
}
|
|
183894
183761
|
}
|
|
183762
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
183895
183763
|
openExternalProject(proj, print) {
|
|
183896
183764
|
const existingExternalProject = this.findExternalProjectByProjectName(proj.projectFileName);
|
|
183897
183765
|
const existingConfiguredProjects = this.externalProjectToConfiguredProjectMap.get(proj.projectFileName);
|
|
@@ -191507,7 +191375,6 @@ start(initializeNodeSystem(), require("os").platform());
|
|
|
191507
191375
|
transformES2019,
|
|
191508
191376
|
transformES2020,
|
|
191509
191377
|
transformES2021,
|
|
191510
|
-
transformES5,
|
|
191511
191378
|
transformESDecorators,
|
|
191512
191379
|
transformESNext,
|
|
191513
191380
|
transformGenerators,
|