typescript 5.5.0-dev.20240226 → 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 +80 -214
- package/lib/tsserver.js +106 -239
- package/lib/typescript.d.ts +2 -0
- package/lib/typescript.js +107 -246
- package/lib/typingsInstaller.js +16 -17
- package/package.json +2 -2
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.5";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20240228`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -5028,12 +5028,11 @@ ${lanes.join("\n")}
|
|
|
5028
5028
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldGet"] = 524288] = "ClassPrivateFieldGet";
|
|
5029
5029
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldSet"] = 1048576] = "ClassPrivateFieldSet";
|
|
5030
5030
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ClassPrivateFieldIn"] = 2097152] = "ClassPrivateFieldIn";
|
|
5031
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
5032
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
5033
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["
|
|
5034
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 33554432] = "AddDisposableResourceAndDisposeResources";
|
|
5031
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["SetFunctionName"] = 4194304] = "SetFunctionName";
|
|
5032
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["PropKey"] = 8388608] = "PropKey";
|
|
5033
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["AddDisposableResourceAndDisposeResources"] = 16777216] = "AddDisposableResourceAndDisposeResources";
|
|
5035
5034
|
ExternalEmitHelpers2[ExternalEmitHelpers2["FirstEmitHelper"] = 1 /* Extends */] = "FirstEmitHelper";
|
|
5036
|
-
ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] =
|
|
5035
|
+
ExternalEmitHelpers2[ExternalEmitHelpers2["LastEmitHelper"] = 16777216 /* AddDisposableResourceAndDisposeResources */] = "LastEmitHelper";
|
|
5037
5036
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ForOfIncludes"] = 256 /* Values */] = "ForOfIncludes";
|
|
5038
5037
|
ExternalEmitHelpers2[ExternalEmitHelpers2["ForAwaitOfIncludes"] = 16384 /* AsyncValues */] = "ForAwaitOfIncludes";
|
|
5039
5038
|
ExternalEmitHelpers2[ExternalEmitHelpers2["AsyncGeneratorIncludes"] = 6144] = "AsyncGeneratorIncludes";
|
|
@@ -5041,16 +5040,16 @@ ${lanes.join("\n")}
|
|
|
5041
5040
|
ExternalEmitHelpers2[ExternalEmitHelpers2["SpreadIncludes"] = 1536] = "SpreadIncludes";
|
|
5042
5041
|
return ExternalEmitHelpers2;
|
|
5043
5042
|
})(ExternalEmitHelpers || {});
|
|
5044
|
-
EmitHint = /* @__PURE__ */ ((
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
return
|
|
5043
|
+
EmitHint = /* @__PURE__ */ ((EmitHint5) => {
|
|
5044
|
+
EmitHint5[EmitHint5["SourceFile"] = 0] = "SourceFile";
|
|
5045
|
+
EmitHint5[EmitHint5["Expression"] = 1] = "Expression";
|
|
5046
|
+
EmitHint5[EmitHint5["IdentifierName"] = 2] = "IdentifierName";
|
|
5047
|
+
EmitHint5[EmitHint5["MappedTypeParameter"] = 3] = "MappedTypeParameter";
|
|
5048
|
+
EmitHint5[EmitHint5["Unspecified"] = 4] = "Unspecified";
|
|
5049
|
+
EmitHint5[EmitHint5["EmbeddedStatement"] = 5] = "EmbeddedStatement";
|
|
5050
|
+
EmitHint5[EmitHint5["JsxAttributeValue"] = 6] = "JsxAttributeValue";
|
|
5051
|
+
EmitHint5[EmitHint5["ImportTypeNodeAttributes"] = 7] = "ImportTypeNodeAttributes";
|
|
5052
|
+
return EmitHint5;
|
|
5054
5053
|
})(EmitHint || {});
|
|
5055
5054
|
OuterExpressionKinds = /* @__PURE__ */ ((OuterExpressionKinds2) => {
|
|
5056
5055
|
OuterExpressionKinds2[OuterExpressionKinds2["Parentheses"] = 1] = "Parentheses";
|
|
@@ -7081,7 +7080,7 @@ ${lanes.join("\n")}
|
|
|
7081
7080
|
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."),
|
|
7082
7081
|
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."),
|
|
7083
7082
|
A_get_accessor_cannot_have_parameters: diag(1054, 1 /* Error */, "A_get_accessor_cannot_have_parameters_1054", "A 'get' accessor cannot have parameters."),
|
|
7084
|
-
|
|
7083
|
+
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."),
|
|
7085
7084
|
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."),
|
|
7086
7085
|
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."),
|
|
7087
7086
|
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."),
|
|
@@ -7240,9 +7239,9 @@ ${lanes.join("\n")}
|
|
|
7240
7239
|
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."),
|
|
7241
7240
|
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."),
|
|
7242
7241
|
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."),
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7242
|
+
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'."),
|
|
7243
|
+
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."),
|
|
7244
|
+
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."),
|
|
7246
7245
|
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."),
|
|
7247
7246
|
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."),
|
|
7248
7247
|
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."),
|
|
@@ -7679,7 +7678,7 @@ ${lanes.join("\n")}
|
|
|
7679
7678
|
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}'."),
|
|
7680
7679
|
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."),
|
|
7681
7680
|
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."),
|
|
7682
|
-
|
|
7681
|
+
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."),
|
|
7683
7682
|
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."),
|
|
7684
7683
|
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 *'."),
|
|
7685
7684
|
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."),
|
|
@@ -7704,7 +7703,7 @@ ${lanes.join("\n")}
|
|
|
7704
7703
|
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."),
|
|
7705
7704
|
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."),
|
|
7706
7705
|
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."),
|
|
7707
|
-
|
|
7706
|
+
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."),
|
|
7708
7707
|
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."),
|
|
7709
7708
|
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."),
|
|
7710
7709
|
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."),
|
|
@@ -7864,14 +7863,14 @@ ${lanes.join("\n")}
|
|
|
7864
7863
|
_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."),
|
|
7865
7864
|
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."),
|
|
7866
7865
|
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."),
|
|
7867
|
-
|
|
7866
|
+
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."),
|
|
7868
7867
|
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."),
|
|
7869
7868
|
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."),
|
|
7870
7869
|
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."),
|
|
7871
7870
|
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."),
|
|
7872
7871
|
_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."),
|
|
7873
7872
|
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."),
|
|
7874
|
-
|
|
7873
|
+
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."),
|
|
7875
7874
|
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}"]'?`),
|
|
7876
7875
|
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."),
|
|
7877
7876
|
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."),
|
|
@@ -8137,7 +8136,6 @@ ${lanes.join("\n")}
|
|
|
8137
8136
|
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}."),
|
|
8138
8137
|
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."),
|
|
8139
8138
|
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."),
|
|
8140
|
-
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'."),
|
|
8141
8139
|
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."),
|
|
8142
8140
|
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}'."),
|
|
8143
8141
|
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}'."),
|
|
@@ -8359,7 +8357,7 @@ ${lanes.join("\n")}
|
|
|
8359
8357
|
Show_all_compiler_options: diag(6169, 3 /* Message */, "Show_all_compiler_options_6169", "Show all compiler options."),
|
|
8360
8358
|
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"),
|
|
8361
8359
|
Command_line_Options: diag(6171, 3 /* Message */, "Command_line_Options_6171", "Command-line Options"),
|
|
8362
|
-
|
|
8360
|
+
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'."),
|
|
8363
8361
|
Enable_all_strict_type_checking_options: diag(6180, 3 /* Message */, "Enable_all_strict_type_checking_options_6180", "Enable all strict type-checking options."),
|
|
8364
8362
|
Scoped_package_detected_looking_in_0: diag(6182, 3 /* Message */, "Scoped_package_detected_looking_in_0_6182", "Scoped package detected, looking in '{0}'"),
|
|
8365
8363
|
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}'."),
|
|
@@ -9181,10 +9179,10 @@ ${lanes.join("\n")}
|
|
|
9181
9179
|
return false;
|
|
9182
9180
|
}
|
|
9183
9181
|
function isUnicodeIdentifierStart(code, languageVersion) {
|
|
9184
|
-
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) :
|
|
9182
|
+
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code, unicodeES5IdentifierStart);
|
|
9185
9183
|
}
|
|
9186
9184
|
function isUnicodeIdentifierPart(code, languageVersion) {
|
|
9187
|
-
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) :
|
|
9185
|
+
return languageVersion >= 2 /* ES2015 */ ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code, unicodeES5IdentifierPart);
|
|
9188
9186
|
}
|
|
9189
9187
|
function makeReverseMap(source) {
|
|
9190
9188
|
const result = [];
|
|
@@ -11231,7 +11229,7 @@ ${lanes.join("\n")}
|
|
|
11231
11229
|
function utf16EncodeAsString(codePoint) {
|
|
11232
11230
|
return utf16EncodeAsStringWorker(codePoint);
|
|
11233
11231
|
}
|
|
11234
|
-
var textToKeywordObj, textToKeyword, textToToken,
|
|
11232
|
+
var textToKeywordObj, textToKeyword, textToToken, unicodeES5IdentifierStart, unicodeES5IdentifierPart, unicodeESNextIdentifierStart, unicodeESNextIdentifierPart, commentDirectiveRegExSingleLine, commentDirectiveRegExMultiLine, jsDocSeeOrLink, tokenStrings, mergeConflictMarkerLength, shebangTriviaRegex, utf16EncodeAsStringWorker;
|
|
11235
11233
|
var init_scanner = __esm({
|
|
11236
11234
|
"src/compiler/scanner.ts"() {
|
|
11237
11235
|
"use strict";
|
|
@@ -11386,8 +11384,6 @@ ${lanes.join("\n")}
|
|
|
11386
11384
|
"#": 63 /* HashToken */,
|
|
11387
11385
|
"`": 62 /* BacktickToken */
|
|
11388
11386
|
}));
|
|
11389
|
-
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];
|
|
11390
|
-
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];
|
|
11391
11387
|
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];
|
|
11392
11388
|
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];
|
|
11393
11389
|
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];
|
|
@@ -19464,7 +19460,8 @@ ${lanes.join("\n")}
|
|
|
19464
19460
|
target: {
|
|
19465
19461
|
dependencies: ["module"],
|
|
19466
19462
|
computeValue: (compilerOptions) => {
|
|
19467
|
-
|
|
19463
|
+
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
|
19464
|
+
return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
|
|
19468
19465
|
}
|
|
19469
19466
|
},
|
|
19470
19467
|
module: {
|
|
@@ -23776,7 +23773,7 @@ ${lanes.join("\n")}
|
|
|
23776
23773
|
node.path = "";
|
|
23777
23774
|
node.resolvedPath = "";
|
|
23778
23775
|
node.originalFileName = "";
|
|
23779
|
-
node.languageVersion =
|
|
23776
|
+
node.languageVersion = 1 /* ES5 */;
|
|
23780
23777
|
node.languageVariant = 0;
|
|
23781
23778
|
node.scriptKind = 0;
|
|
23782
23779
|
node.isDeclarationFile = false;
|
|
@@ -25403,7 +25400,6 @@ ${lanes.join("\n")}
|
|
|
25403
25400
|
// ES2015 Generator Helpers
|
|
25404
25401
|
createGeneratorHelper,
|
|
25405
25402
|
// ES Module Helpers
|
|
25406
|
-
createCreateBindingHelper,
|
|
25407
25403
|
createImportStarHelper,
|
|
25408
25404
|
createImportStarCallbackHelper,
|
|
25409
25405
|
createImportDefaultHelper,
|
|
@@ -25816,15 +25812,6 @@ ${lanes.join("\n")}
|
|
|
25816
25812
|
[factory2.createThis(), body]
|
|
25817
25813
|
);
|
|
25818
25814
|
}
|
|
25819
|
-
function createCreateBindingHelper(module2, inputName, outputName) {
|
|
25820
|
-
context.requestEmitHelper(createBindingHelper);
|
|
25821
|
-
return factory2.createCallExpression(
|
|
25822
|
-
getUnscopedHelperName("__createBinding"),
|
|
25823
|
-
/*typeArguments*/
|
|
25824
|
-
void 0,
|
|
25825
|
-
[factory2.createIdentifier("exports"), module2, inputName, ...outputName ? [outputName] : []]
|
|
25826
|
-
);
|
|
25827
|
-
}
|
|
25828
25815
|
function createImportStarHelper(expression) {
|
|
25829
25816
|
context.requestEmitHelper(importStarHelper);
|
|
25830
25817
|
return factory2.createCallExpression(
|
|
@@ -43920,12 +43907,12 @@ ${lanes.join("\n")}
|
|
|
43920
43907
|
}
|
|
43921
43908
|
function getStrictModeBlockScopeFunctionDeclarationMessage(node) {
|
|
43922
43909
|
if (getContainingClass(node)) {
|
|
43923
|
-
return Diagnostics.
|
|
43910
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode;
|
|
43924
43911
|
}
|
|
43925
43912
|
if (file.externalModuleIndicator) {
|
|
43926
|
-
return Diagnostics.
|
|
43913
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode;
|
|
43927
43914
|
}
|
|
43928
|
-
return Diagnostics.
|
|
43915
|
+
return Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5;
|
|
43929
43916
|
}
|
|
43930
43917
|
function checkStrictModeFunctionDeclaration(node) {
|
|
43931
43918
|
if (languageVersion < 2 /* ES2015 */) {
|
|
@@ -50780,7 +50767,7 @@ ${lanes.join("\n")}
|
|
|
50780
50767
|
return parentName;
|
|
50781
50768
|
}
|
|
50782
50769
|
const memberName = symbolName(type.symbol);
|
|
50783
|
-
if (isIdentifierText(memberName,
|
|
50770
|
+
if (isIdentifierText(memberName, 1 /* ES5 */)) {
|
|
50784
50771
|
return appendReferenceToType(
|
|
50785
50772
|
parentName,
|
|
50786
50773
|
factory.createTypeReferenceNode(
|
|
@@ -70222,9 +70209,9 @@ ${lanes.join("\n")}
|
|
|
70222
70209
|
if (container) {
|
|
70223
70210
|
if (languageVersion < 2 /* ES2015 */) {
|
|
70224
70211
|
if (container.kind === 219 /* ArrowFunction */) {
|
|
70225
|
-
error2(node, Diagnostics.
|
|
70212
|
+
error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression);
|
|
70226
70213
|
} else if (hasSyntacticModifier(container, 1024 /* Async */)) {
|
|
70227
|
-
error2(node, Diagnostics.
|
|
70214
|
+
error2(node, Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method);
|
|
70228
70215
|
}
|
|
70229
70216
|
}
|
|
70230
70217
|
getNodeLinks(container).flags |= 512 /* CaptureArguments */;
|
|
@@ -74346,7 +74333,7 @@ ${lanes.join("\n")}
|
|
|
74346
74333
|
case 174 /* MethodDeclaration */:
|
|
74347
74334
|
case 177 /* GetAccessor */:
|
|
74348
74335
|
case 178 /* SetAccessor */:
|
|
74349
|
-
return
|
|
74336
|
+
return signature.parameters.length <= 2 ? 2 : 3;
|
|
74350
74337
|
case 169 /* Parameter */:
|
|
74351
74338
|
return 3;
|
|
74352
74339
|
default:
|
|
@@ -75026,12 +75013,6 @@ ${lanes.join("\n")}
|
|
|
75026
75013
|
return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144 /* TypeParameter */) || !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576 /* Union */) && !(getReducedType(apparentFuncType).flags & 131072 /* Never */) && isTypeAssignableTo(funcType, globalFunctionType);
|
|
75027
75014
|
}
|
|
75028
75015
|
function resolveNewExpression(node, candidatesOutArray, checkMode) {
|
|
75029
|
-
if (node.arguments && languageVersion < 1 /* ES5 */) {
|
|
75030
|
-
const spreadIndex = getSpreadArgumentIndex(node.arguments);
|
|
75031
|
-
if (spreadIndex >= 0) {
|
|
75032
|
-
error2(node.arguments[spreadIndex], Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);
|
|
75033
|
-
}
|
|
75034
|
-
}
|
|
75035
75016
|
let expressionType = checkNonNullExpression(node.expression);
|
|
75036
75017
|
if (expressionType === silentNeverType) {
|
|
75037
75018
|
return silentNeverSignature;
|
|
@@ -76559,7 +76540,7 @@ ${lanes.join("\n")}
|
|
|
76559
76540
|
const keyType = getClassElementPropertyKeyType(node);
|
|
76560
76541
|
const keyParam = createParameter2("propertyKey", keyType);
|
|
76561
76542
|
const returnType = isPropertyDeclaration(node) ? voidType : createTypedPropertyDescriptorType(getTypeOfNode(node));
|
|
76562
|
-
const hasPropDesc =
|
|
76543
|
+
const hasPropDesc = !isPropertyDeclaration(parent2) || hasAccessorModifier(parent2);
|
|
76563
76544
|
if (hasPropDesc) {
|
|
76564
76545
|
const descriptorType = createTypedPropertyDescriptorType(getTypeOfNode(node));
|
|
76565
76546
|
const descriptorParam = createParameter2("descriptor", descriptorType);
|
|
@@ -76626,7 +76607,7 @@ ${lanes.join("\n")}
|
|
|
76626
76607
|
)) {
|
|
76627
76608
|
error2(
|
|
76628
76609
|
func,
|
|
76629
|
-
isImportCall(func) ? Diagnostics.
|
|
76610
|
+
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
|
|
76630
76611
|
);
|
|
76631
76612
|
}
|
|
76632
76613
|
return promiseType;
|
|
@@ -80139,7 +80120,7 @@ ${lanes.join("\n")}
|
|
|
80139
80120
|
}
|
|
80140
80121
|
const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode);
|
|
80141
80122
|
if (promiseConstructorName === void 0) {
|
|
80142
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
80123
|
+
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));
|
|
80143
80124
|
return;
|
|
80144
80125
|
}
|
|
80145
80126
|
const promiseConstructorSymbol = resolveEntityName(
|
|
@@ -80154,9 +80135,9 @@ ${lanes.join("\n")}
|
|
|
80154
80135
|
/*reportErrors*/
|
|
80155
80136
|
false
|
|
80156
80137
|
)) {
|
|
80157
|
-
error2(returnTypeErrorLocation, Diagnostics.
|
|
80138
|
+
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);
|
|
80158
80139
|
} else {
|
|
80159
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
80140
|
+
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));
|
|
80160
80141
|
}
|
|
80161
80142
|
return;
|
|
80162
80143
|
}
|
|
@@ -80165,10 +80146,10 @@ ${lanes.join("\n")}
|
|
|
80165
80146
|
true
|
|
80166
80147
|
);
|
|
80167
80148
|
if (globalPromiseConstructorLikeType === emptyObjectType) {
|
|
80168
|
-
reportErrorForInvalidReturnType(Diagnostics.
|
|
80149
|
+
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));
|
|
80169
80150
|
return;
|
|
80170
80151
|
}
|
|
80171
|
-
const headMessage = Diagnostics.
|
|
80152
|
+
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;
|
|
80172
80153
|
const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages(
|
|
80173
80154
|
/*details*/
|
|
80174
80155
|
void 0,
|
|
@@ -80377,19 +80358,19 @@ ${lanes.join("\n")}
|
|
|
80377
80358
|
checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
|
|
80378
80359
|
if (isClassDeclaration(node)) {
|
|
80379
80360
|
if (!node.name) {
|
|
80380
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
80361
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
80381
80362
|
} else {
|
|
80382
80363
|
const member = getFirstTransformableStaticClassElement(node);
|
|
80383
80364
|
if (member) {
|
|
80384
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
80365
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
80385
80366
|
}
|
|
80386
80367
|
}
|
|
80387
80368
|
} else if (!isClassExpression(node)) {
|
|
80388
80369
|
if (isPrivateIdentifier(node.name) && (isMethodDeclaration(node) || isAccessor(node) || isAutoAccessorPropertyDeclaration(node))) {
|
|
80389
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
80370
|
+
checkExternalEmitHelpers(firstDecorator, 4194304 /* SetFunctionName */);
|
|
80390
80371
|
}
|
|
80391
80372
|
if (isComputedPropertyName(node.name)) {
|
|
80392
|
-
checkExternalEmitHelpers(firstDecorator,
|
|
80373
|
+
checkExternalEmitHelpers(firstDecorator, 8388608 /* PropKey */);
|
|
80393
80374
|
}
|
|
80394
80375
|
}
|
|
80395
80376
|
}
|
|
@@ -81266,7 +81247,7 @@ ${lanes.join("\n")}
|
|
|
81266
81247
|
function checkVariableDeclarationList(node) {
|
|
81267
81248
|
const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
|
|
81268
81249
|
if (blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) {
|
|
81269
|
-
checkExternalEmitHelpers(node,
|
|
81250
|
+
checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
|
|
81270
81251
|
}
|
|
81271
81252
|
forEach(node.declarations, checkSourceElement);
|
|
81272
81253
|
}
|
|
@@ -81542,7 +81523,6 @@ ${lanes.join("\n")}
|
|
|
81542
81523
|
}
|
|
81543
81524
|
}
|
|
81544
81525
|
let arrayType = inputType;
|
|
81545
|
-
let reportedError = false;
|
|
81546
81526
|
let hasStringConstituent = false;
|
|
81547
81527
|
if (use & 4 /* AllowsStringInputFlag */) {
|
|
81548
81528
|
if (arrayType.flags & 1048576 /* Union */) {
|
|
@@ -81556,19 +81536,13 @@ ${lanes.join("\n")}
|
|
|
81556
81536
|
}
|
|
81557
81537
|
hasStringConstituent = arrayType !== inputType;
|
|
81558
81538
|
if (hasStringConstituent) {
|
|
81559
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
81560
|
-
if (errorNode) {
|
|
81561
|
-
error2(errorNode, Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);
|
|
81562
|
-
reportedError = true;
|
|
81563
|
-
}
|
|
81564
|
-
}
|
|
81565
81539
|
if (arrayType.flags & 131072 /* Never */) {
|
|
81566
81540
|
return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType;
|
|
81567
81541
|
}
|
|
81568
81542
|
}
|
|
81569
81543
|
}
|
|
81570
81544
|
if (!isArrayLikeType(arrayType)) {
|
|
81571
|
-
if (errorNode
|
|
81545
|
+
if (errorNode) {
|
|
81572
81546
|
const allowsStrings = !!(use & 4 /* AllowsStringInputFlag */) && !hasStringConstituent;
|
|
81573
81547
|
const [defaultDiagnostic, maybeMissingAwait] = getIterationDiagnosticDetails(allowsStrings, downlevelIteration);
|
|
81574
81548
|
errorAndMaybeSuggestAwait(
|
|
@@ -82556,9 +82530,9 @@ ${lanes.join("\n")}
|
|
|
82556
82530
|
location = getFirstTransformableStaticClassElement(node);
|
|
82557
82531
|
}
|
|
82558
82532
|
if (location) {
|
|
82559
|
-
checkExternalEmitHelpers(location,
|
|
82533
|
+
checkExternalEmitHelpers(location, 4194304 /* SetFunctionName */);
|
|
82560
82534
|
if ((isPropertyAssignment(parent2) || isPropertyDeclaration(parent2) || isBindingElement(parent2)) && isComputedPropertyName(parent2.name)) {
|
|
82561
|
-
checkExternalEmitHelpers(location,
|
|
82535
|
+
checkExternalEmitHelpers(location, 8388608 /* PropKey */);
|
|
82562
82536
|
}
|
|
82563
82537
|
}
|
|
82564
82538
|
}
|
|
@@ -83833,9 +83807,6 @@ ${lanes.join("\n")}
|
|
|
83833
83807
|
if (!checkGrammarModifiers(node) && hasSyntacticModifiers(node)) {
|
|
83834
83808
|
grammarErrorOnFirstToken(node, Diagnostics.An_export_declaration_cannot_have_modifiers);
|
|
83835
83809
|
}
|
|
83836
|
-
if (node.moduleSpecifier && node.exportClause && isNamedExports(node.exportClause) && length(node.exportClause.elements) && languageVersion === 0 /* ES3 */) {
|
|
83837
|
-
checkExternalEmitHelpers(node, 4194304 /* CreateBinding */);
|
|
83838
|
-
}
|
|
83839
83810
|
checkGrammarExportDeclaration(node);
|
|
83840
83811
|
if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) {
|
|
83841
83812
|
if (node.exportClause && !isNamespaceExport(node.exportClause)) {
|
|
@@ -86246,7 +86217,7 @@ ${lanes.join("\n")}
|
|
|
86246
86217
|
const helpersModule = resolveHelpersModule(sourceFile, location);
|
|
86247
86218
|
if (helpersModule !== unknownSymbol) {
|
|
86248
86219
|
const uncheckedHelpers = helpers & ~requestedExternalEmitHelpers;
|
|
86249
|
-
for (let helper = 1 /* FirstEmitHelper */; helper <=
|
|
86220
|
+
for (let helper = 1 /* FirstEmitHelper */; helper <= 16777216 /* LastEmitHelper */; helper <<= 1) {
|
|
86250
86221
|
if (uncheckedHelpers & helper) {
|
|
86251
86222
|
for (const name of getHelperNames(helper)) {
|
|
86252
86223
|
if (requestedExternalEmitHelperNames.has(name))
|
|
@@ -86322,13 +86293,11 @@ ${lanes.join("\n")}
|
|
|
86322
86293
|
return ["__classPrivateFieldSet"];
|
|
86323
86294
|
case 2097152 /* ClassPrivateFieldIn */:
|
|
86324
86295
|
return ["__classPrivateFieldIn"];
|
|
86325
|
-
case 4194304 /*
|
|
86326
|
-
return ["__createBinding"];
|
|
86327
|
-
case 8388608 /* SetFunctionName */:
|
|
86296
|
+
case 4194304 /* SetFunctionName */:
|
|
86328
86297
|
return ["__setFunctionName"];
|
|
86329
|
-
case
|
|
86298
|
+
case 8388608 /* PropKey */:
|
|
86330
86299
|
return ["__propKey"];
|
|
86331
|
-
case
|
|
86300
|
+
case 16777216 /* AddDisposableResourceAndDisposeResources */:
|
|
86332
86301
|
return ["__addDisposableResource", "__disposeResources"];
|
|
86333
86302
|
default:
|
|
86334
86303
|
return Debug.fail("Unrecognized helper");
|
|
@@ -87165,9 +87134,6 @@ ${lanes.join("\n")}
|
|
|
87165
87134
|
}
|
|
87166
87135
|
function checkGrammarAccessor(accessor) {
|
|
87167
87136
|
if (!(accessor.flags & 33554432 /* Ambient */) && accessor.parent.kind !== 187 /* TypeLiteral */ && accessor.parent.kind !== 264 /* InterfaceDeclaration */) {
|
|
87168
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
87169
|
-
return grammarErrorOnNode(accessor.name, Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);
|
|
87170
|
-
}
|
|
87171
87137
|
if (languageVersion < 2 /* ES2015 */ && isPrivateIdentifier(accessor.name)) {
|
|
87172
87138
|
return grammarErrorOnNode(accessor.name, Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);
|
|
87173
87139
|
}
|
|
@@ -96168,7 +96134,7 @@ ${lanes.join("\n")}
|
|
|
96168
96134
|
/*generateNameForComputedPropertyName*/
|
|
96169
96135
|
!hasSyntacticModifier(member, 128 /* Ambient */)
|
|
96170
96136
|
);
|
|
96171
|
-
const descriptor =
|
|
96137
|
+
const descriptor = isPropertyDeclaration(member) && !hasAccessorModifier(member) ? factory2.createVoidZero() : factory2.createNull();
|
|
96172
96138
|
const helper = emitHelpers().createDecorateHelper(
|
|
96173
96139
|
decoratorExpressions,
|
|
96174
96140
|
prefix,
|
|
@@ -105598,83 +105564,6 @@ ${lanes.join("\n")}
|
|
|
105598
105564
|
}
|
|
105599
105565
|
});
|
|
105600
105566
|
|
|
105601
|
-
// src/compiler/transformers/es5.ts
|
|
105602
|
-
function transformES5(context) {
|
|
105603
|
-
const { factory: factory2 } = context;
|
|
105604
|
-
const compilerOptions = context.getCompilerOptions();
|
|
105605
|
-
let previousOnEmitNode;
|
|
105606
|
-
let noSubstitution;
|
|
105607
|
-
if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) {
|
|
105608
|
-
previousOnEmitNode = context.onEmitNode;
|
|
105609
|
-
context.onEmitNode = onEmitNode;
|
|
105610
|
-
context.enableEmitNotification(286 /* JsxOpeningElement */);
|
|
105611
|
-
context.enableEmitNotification(287 /* JsxClosingElement */);
|
|
105612
|
-
context.enableEmitNotification(285 /* JsxSelfClosingElement */);
|
|
105613
|
-
noSubstitution = [];
|
|
105614
|
-
}
|
|
105615
|
-
const previousOnSubstituteNode = context.onSubstituteNode;
|
|
105616
|
-
context.onSubstituteNode = onSubstituteNode;
|
|
105617
|
-
context.enableSubstitution(211 /* PropertyAccessExpression */);
|
|
105618
|
-
context.enableSubstitution(303 /* PropertyAssignment */);
|
|
105619
|
-
return chainBundle(context, transformSourceFile);
|
|
105620
|
-
function transformSourceFile(node) {
|
|
105621
|
-
return node;
|
|
105622
|
-
}
|
|
105623
|
-
function onEmitNode(hint, node, emitCallback) {
|
|
105624
|
-
switch (node.kind) {
|
|
105625
|
-
case 286 /* JsxOpeningElement */:
|
|
105626
|
-
case 287 /* JsxClosingElement */:
|
|
105627
|
-
case 285 /* JsxSelfClosingElement */:
|
|
105628
|
-
const tagName = node.tagName;
|
|
105629
|
-
noSubstitution[getOriginalNodeId(tagName)] = true;
|
|
105630
|
-
break;
|
|
105631
|
-
}
|
|
105632
|
-
previousOnEmitNode(hint, node, emitCallback);
|
|
105633
|
-
}
|
|
105634
|
-
function onSubstituteNode(hint, node) {
|
|
105635
|
-
if (node.id && noSubstitution && noSubstitution[node.id]) {
|
|
105636
|
-
return previousOnSubstituteNode(hint, node);
|
|
105637
|
-
}
|
|
105638
|
-
node = previousOnSubstituteNode(hint, node);
|
|
105639
|
-
if (isPropertyAccessExpression(node)) {
|
|
105640
|
-
return substitutePropertyAccessExpression(node);
|
|
105641
|
-
} else if (isPropertyAssignment(node)) {
|
|
105642
|
-
return substitutePropertyAssignment(node);
|
|
105643
|
-
}
|
|
105644
|
-
return node;
|
|
105645
|
-
}
|
|
105646
|
-
function substitutePropertyAccessExpression(node) {
|
|
105647
|
-
if (isPrivateIdentifier(node.name)) {
|
|
105648
|
-
return node;
|
|
105649
|
-
}
|
|
105650
|
-
const literalName = trySubstituteReservedName(node.name);
|
|
105651
|
-
if (literalName) {
|
|
105652
|
-
return setTextRange(factory2.createElementAccessExpression(node.expression, literalName), node);
|
|
105653
|
-
}
|
|
105654
|
-
return node;
|
|
105655
|
-
}
|
|
105656
|
-
function substitutePropertyAssignment(node) {
|
|
105657
|
-
const literalName = isIdentifier(node.name) && trySubstituteReservedName(node.name);
|
|
105658
|
-
if (literalName) {
|
|
105659
|
-
return factory2.updatePropertyAssignment(node, literalName, node.initializer);
|
|
105660
|
-
}
|
|
105661
|
-
return node;
|
|
105662
|
-
}
|
|
105663
|
-
function trySubstituteReservedName(name) {
|
|
105664
|
-
const token = identifierToKeywordKind(name);
|
|
105665
|
-
if (token !== void 0 && token >= 83 /* FirstReservedWord */ && token <= 118 /* LastReservedWord */) {
|
|
105666
|
-
return setTextRange(factory2.createStringLiteralFromNode(name), name);
|
|
105667
|
-
}
|
|
105668
|
-
return void 0;
|
|
105669
|
-
}
|
|
105670
|
-
}
|
|
105671
|
-
var init_es5 = __esm({
|
|
105672
|
-
"src/compiler/transformers/es5.ts"() {
|
|
105673
|
-
"use strict";
|
|
105674
|
-
init_ts2();
|
|
105675
|
-
}
|
|
105676
|
-
});
|
|
105677
|
-
|
|
105678
105567
|
// src/compiler/transformers/generators.ts
|
|
105679
105568
|
function getInstructionName(instruction) {
|
|
105680
105569
|
switch (instruction) {
|
|
@@ -108933,43 +108822,29 @@ ${lanes.join("\n")}
|
|
|
108933
108822
|
);
|
|
108934
108823
|
}
|
|
108935
108824
|
for (const specifier of node.exportClause.elements) {
|
|
108936
|
-
|
|
108937
|
-
|
|
108938
|
-
|
|
108939
|
-
|
|
108940
|
-
|
|
108941
|
-
|
|
108942
|
-
|
|
108943
|
-
|
|
108944
|
-
|
|
108945
|
-
|
|
108946
|
-
|
|
108947
|
-
|
|
108948
|
-
|
|
108949
|
-
|
|
108950
|
-
|
|
108951
|
-
|
|
108952
|
-
|
|
108953
|
-
);
|
|
108954
|
-
statements.push(
|
|
108955
|
-
setOriginalNode(
|
|
108956
|
-
setTextRange(
|
|
108957
|
-
factory2.createExpressionStatement(
|
|
108958
|
-
createExportExpression(
|
|
108959
|
-
factory2.getExportName(specifier),
|
|
108960
|
-
exportedValue,
|
|
108961
|
-
/*location*/
|
|
108962
|
-
void 0,
|
|
108963
|
-
/*liveBinding*/
|
|
108964
|
-
true
|
|
108965
|
-
)
|
|
108966
|
-
),
|
|
108967
|
-
specifier
|
|
108825
|
+
const exportNeedsImportDefault = !!getESModuleInterop(compilerOptions) && !(getInternalEmitFlags(node) & 2 /* NeverApplyImportHelper */) && idText(specifier.propertyName || specifier.name) === "default";
|
|
108826
|
+
const exportedValue = factory2.createPropertyAccessExpression(
|
|
108827
|
+
exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName,
|
|
108828
|
+
specifier.propertyName || specifier.name
|
|
108829
|
+
);
|
|
108830
|
+
statements.push(
|
|
108831
|
+
setOriginalNode(
|
|
108832
|
+
setTextRange(
|
|
108833
|
+
factory2.createExpressionStatement(
|
|
108834
|
+
createExportExpression(
|
|
108835
|
+
factory2.getExportName(specifier),
|
|
108836
|
+
exportedValue,
|
|
108837
|
+
/*location*/
|
|
108838
|
+
void 0,
|
|
108839
|
+
/*liveBinding*/
|
|
108840
|
+
true
|
|
108841
|
+
)
|
|
108968
108842
|
),
|
|
108969
108843
|
specifier
|
|
108970
|
-
)
|
|
108971
|
-
|
|
108972
|
-
|
|
108844
|
+
),
|
|
108845
|
+
specifier
|
|
108846
|
+
)
|
|
108847
|
+
);
|
|
108973
108848
|
}
|
|
108974
108849
|
return singleOrMany(statements);
|
|
108975
108850
|
} else if (node.exportClause) {
|
|
@@ -109320,30 +109195,20 @@ ${lanes.join("\n")}
|
|
|
109320
109195
|
return statements;
|
|
109321
109196
|
}
|
|
109322
109197
|
function createUnderscoreUnderscoreESModule() {
|
|
109323
|
-
|
|
109324
|
-
|
|
109325
|
-
|
|
109326
|
-
|
|
109327
|
-
|
|
109328
|
-
|
|
109329
|
-
|
|
109330
|
-
|
|
109331
|
-
|
|
109332
|
-
|
|
109333
|
-
|
|
109334
|
-
|
|
109335
|
-
|
|
109336
|
-
|
|
109337
|
-
[
|
|
109338
|
-
factory2.createIdentifier("exports"),
|
|
109339
|
-
factory2.createStringLiteral("__esModule"),
|
|
109340
|
-
factory2.createObjectLiteralExpression([
|
|
109341
|
-
factory2.createPropertyAssignment("value", factory2.createTrue())
|
|
109342
|
-
])
|
|
109343
|
-
]
|
|
109344
|
-
)
|
|
109345
|
-
);
|
|
109346
|
-
}
|
|
109198
|
+
const statement = factory2.createExpressionStatement(
|
|
109199
|
+
factory2.createCallExpression(
|
|
109200
|
+
factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "defineProperty"),
|
|
109201
|
+
/*typeArguments*/
|
|
109202
|
+
void 0,
|
|
109203
|
+
[
|
|
109204
|
+
factory2.createIdentifier("exports"),
|
|
109205
|
+
factory2.createStringLiteral("__esModule"),
|
|
109206
|
+
factory2.createObjectLiteralExpression([
|
|
109207
|
+
factory2.createPropertyAssignment("value", factory2.createTrue())
|
|
109208
|
+
])
|
|
109209
|
+
]
|
|
109210
|
+
)
|
|
109211
|
+
);
|
|
109347
109212
|
setEmitFlags(statement, 2097152 /* CustomPrologue */);
|
|
109348
109213
|
return statement;
|
|
109349
109214
|
}
|
|
@@ -109363,7 +109228,7 @@ ${lanes.join("\n")}
|
|
|
109363
109228
|
}
|
|
109364
109229
|
function createExportExpression(name, value, location, liveBinding) {
|
|
109365
109230
|
return setTextRange(
|
|
109366
|
-
liveBinding
|
|
109231
|
+
liveBinding ? factory2.createCallExpression(
|
|
109367
109232
|
factory2.createPropertyAccessExpression(
|
|
109368
109233
|
factory2.createIdentifier("Object"),
|
|
109369
109234
|
"defineProperty"
|
|
@@ -113362,9 +113227,6 @@ ${lanes.join("\n")}
|
|
|
113362
113227
|
transformers.push(transformGenerators);
|
|
113363
113228
|
}
|
|
113364
113229
|
transformers.push(getModuleTransformer(moduleKind));
|
|
113365
|
-
if (languageVersion < 1 /* ES5 */) {
|
|
113366
|
-
transformers.push(transformES5);
|
|
113367
|
-
}
|
|
113368
113230
|
addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory));
|
|
113369
113231
|
return transformers;
|
|
113370
113232
|
}
|
|
@@ -114064,8 +113926,8 @@ ${lanes.join("\n")}
|
|
|
114064
113926
|
removeComments: compilerOptions.removeComments,
|
|
114065
113927
|
newLine: compilerOptions.newLine,
|
|
114066
113928
|
noEmitHelpers: compilerOptions.noEmitHelpers,
|
|
114067
|
-
module: compilerOptions
|
|
114068
|
-
target: compilerOptions
|
|
113929
|
+
module: getEmitModuleKind(compilerOptions),
|
|
113930
|
+
target: getEmitScriptTarget(compilerOptions),
|
|
114069
113931
|
sourceMap: compilerOptions.sourceMap,
|
|
114070
113932
|
inlineSourceMap: compilerOptions.inlineSourceMap,
|
|
114071
113933
|
inlineSources: compilerOptions.inlineSources,
|
|
@@ -122860,9 +122722,6 @@ ${lanes.join("\n")}
|
|
|
122860
122722
|
createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
|
|
122861
122723
|
}
|
|
122862
122724
|
}
|
|
122863
|
-
if (options.useDefineForClassFields && languageVersion === 0 /* ES3 */) {
|
|
122864
|
-
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, "useDefineForClassFields");
|
|
122865
|
-
}
|
|
122866
122725
|
if (options.checkJs && !getAllowJSCompilerOption(options)) {
|
|
122867
122726
|
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"));
|
|
122868
122727
|
}
|
|
@@ -130221,7 +130080,6 @@ ${lanes.join("\n")}
|
|
|
130221
130080
|
init_jsx();
|
|
130222
130081
|
init_es2016();
|
|
130223
130082
|
init_es2015();
|
|
130224
|
-
init_es5();
|
|
130225
130083
|
init_generators();
|
|
130226
130084
|
init_module();
|
|
130227
130085
|
init_system();
|
|
@@ -160814,6 +160672,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160814
160672
|
return 1 /* Success */;
|
|
160815
160673
|
}
|
|
160816
160674
|
function tryGetObjectLikeCompletionSymbols() {
|
|
160675
|
+
if ((contextToken == null ? void 0 : contextToken.kind) === 26 /* DotDotDotToken */)
|
|
160676
|
+
return 0 /* Continue */;
|
|
160817
160677
|
const symbolsStartIndex = symbols.length;
|
|
160818
160678
|
const objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken, position, sourceFile);
|
|
160819
160679
|
if (!objectLikeContainer)
|
|
@@ -161884,7 +161744,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
161884
161744
|
return charCode;
|
|
161885
161745
|
}
|
|
161886
161746
|
function isContextualKeywordInAutoImportableExpressionSpace(keyword) {
|
|
161887
|
-
return keyword === "abstract" || keyword === "async" || keyword === "await" || keyword === "declare" || keyword === "module" || keyword === "namespace" || keyword === "type";
|
|
161747
|
+
return keyword === "abstract" || keyword === "async" || keyword === "await" || keyword === "declare" || keyword === "module" || keyword === "namespace" || keyword === "type" || keyword === "satisfies" || keyword === "as";
|
|
161888
161748
|
}
|
|
161889
161749
|
var moduleSpecifierResolutionLimit, moduleSpecifierResolutionCacheAttemptLimit, SortText, CompletionSource, SymbolOriginInfoKind, CompletionKind, _keywordCompletions, allKeywordsCompletions;
|
|
161890
161750
|
var init_completions = __esm({
|
|
@@ -166171,7 +166031,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
166171
166031
|
return false;
|
|
166172
166032
|
}
|
|
166173
166033
|
function leadingCommentsContainsParameterName(node, name) {
|
|
166174
|
-
if (!isIdentifierText(name, compilerOptions
|
|
166034
|
+
if (!isIdentifierText(name, getEmitScriptTarget(compilerOptions), getLanguageVariant(file.scriptKind))) {
|
|
166175
166035
|
return false;
|
|
166176
166036
|
}
|
|
166177
166037
|
const ranges = getLeadingCommentRanges(sourceFileText, node.pos);
|
|
@@ -174170,9 +174030,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
174170
174030
|
init_ts5();
|
|
174171
174031
|
init_deprecate();
|
|
174172
174032
|
addObjectAllocatorPatcher((objectAllocator2) => {
|
|
174173
|
-
const
|
|
174174
|
-
if (!hasProperty(
|
|
174175
|
-
Object.defineProperty(
|
|
174033
|
+
const Identifier78 = objectAllocator2.getIdentifierConstructor();
|
|
174034
|
+
if (!hasProperty(Identifier78.prototype, "originalKeywordKind")) {
|
|
174035
|
+
Object.defineProperty(Identifier78.prototype, "originalKeywordKind", {
|
|
174176
174036
|
get: deprecate(function() {
|
|
174177
174037
|
return identifierToKeywordKind(this);
|
|
174178
174038
|
}, {
|
|
@@ -174184,8 +174044,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
174184
174044
|
})
|
|
174185
174045
|
});
|
|
174186
174046
|
}
|
|
174187
|
-
if (!hasProperty(
|
|
174188
|
-
Object.defineProperty(
|
|
174047
|
+
if (!hasProperty(Identifier78.prototype, "isInJSDocNamespace")) {
|
|
174048
|
+
Object.defineProperty(Identifier78.prototype, "isInJSDocNamespace", {
|
|
174189
174049
|
get: deprecate(function() {
|
|
174190
174050
|
return this.flags & 4096 /* IdentifierIsInJSDocNamespace */ ? true : void 0;
|
|
174191
174051
|
}, {
|
|
@@ -174283,6 +174143,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
174283
174143
|
this.pendingRunRequests = [];
|
|
174284
174144
|
this.installRunCount = 1;
|
|
174285
174145
|
this.inFlightRequestCount = 0;
|
|
174146
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
174286
174147
|
this.latestDistTag = "latest";
|
|
174287
174148
|
const isLoggingEnabled = this.log.isEnabled();
|
|
174288
174149
|
if (isLoggingEnabled) {
|
|
@@ -181073,6 +180934,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
181073
180934
|
}
|
|
181074
180935
|
});
|
|
181075
180936
|
}
|
|
180937
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
181076
180938
|
closeExternalProject(uncheckedFileName, print) {
|
|
181077
180939
|
const fileName = toNormalizedPath(uncheckedFileName);
|
|
181078
180940
|
const configuredProjects = this.externalProjectToConfiguredProjectMap.get(fileName);
|
|
@@ -181211,6 +181073,7 @@ Dynamic files must always be opened with service's current directory or service
|
|
|
181211
181073
|
excludedFiles.push(normalizedNames[index]);
|
|
181212
181074
|
}
|
|
181213
181075
|
}
|
|
181076
|
+
// eslint-disable-line @typescript-eslint/unified-signatures
|
|
181214
181077
|
openExternalProject(proj, print) {
|
|
181215
181078
|
const existingExternalProject = this.findExternalProjectByProjectName(proj.projectFileName);
|
|
181216
181079
|
const existingConfiguredProjects = this.externalProjectToConfiguredProjectMap.get(proj.projectFileName);
|
|
@@ -188267,7 +188130,6 @@ ${e.message}`;
|
|
|
188267
188130
|
transformES2019: () => transformES2019,
|
|
188268
188131
|
transformES2020: () => transformES2020,
|
|
188269
188132
|
transformES2021: () => transformES2021,
|
|
188270
|
-
transformES5: () => transformES5,
|
|
188271
188133
|
transformESDecorators: () => transformESDecorators,
|
|
188272
188134
|
transformESNext: () => transformESNext,
|
|
188273
188135
|
transformGenerators: () => transformGenerators,
|
|
@@ -190689,7 +190551,6 @@ ${e.message}`;
|
|
|
190689
190551
|
transformES2019: () => transformES2019,
|
|
190690
190552
|
transformES2020: () => transformES2020,
|
|
190691
190553
|
transformES2021: () => transformES2021,
|
|
190692
|
-
transformES5: () => transformES5,
|
|
190693
190554
|
transformESDecorators: () => transformESDecorators,
|
|
190694
190555
|
transformESNext: () => transformESNext,
|
|
190695
190556
|
transformGenerators: () => transformGenerators,
|