typescript 5.5.0-dev.20240228 → 5.5.0-dev.20240229
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 +847 -2035
- package/lib/tsserver.js +929 -2144
- package/lib/typescript.d.ts +73 -155
- package/lib/typescript.js +931 -2130
- package/lib/typingsInstaller.js +283 -346
- package/package.json +2 -2
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.5";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20240229`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -2765,64 +2765,57 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2765
2765
|
SyntaxKind4[SyntaxKind4["ShorthandPropertyAssignment"] = 304] = "ShorthandPropertyAssignment";
|
|
2766
2766
|
SyntaxKind4[SyntaxKind4["SpreadAssignment"] = 305] = "SpreadAssignment";
|
|
2767
2767
|
SyntaxKind4[SyntaxKind4["EnumMember"] = 306] = "EnumMember";
|
|
2768
|
-
SyntaxKind4[SyntaxKind4["
|
|
2769
|
-
SyntaxKind4[SyntaxKind4["
|
|
2770
|
-
SyntaxKind4[SyntaxKind4["
|
|
2771
|
-
SyntaxKind4[SyntaxKind4["
|
|
2772
|
-
SyntaxKind4[SyntaxKind4["
|
|
2773
|
-
SyntaxKind4[SyntaxKind4["
|
|
2774
|
-
SyntaxKind4[SyntaxKind4["
|
|
2775
|
-
SyntaxKind4[SyntaxKind4["
|
|
2776
|
-
SyntaxKind4[SyntaxKind4["
|
|
2777
|
-
SyntaxKind4[SyntaxKind4["
|
|
2778
|
-
SyntaxKind4[SyntaxKind4["
|
|
2779
|
-
SyntaxKind4[SyntaxKind4["
|
|
2780
|
-
SyntaxKind4[SyntaxKind4["
|
|
2781
|
-
SyntaxKind4[SyntaxKind4["
|
|
2782
|
-
SyntaxKind4[SyntaxKind4["
|
|
2783
|
-
SyntaxKind4[SyntaxKind4["
|
|
2784
|
-
SyntaxKind4[SyntaxKind4["
|
|
2785
|
-
SyntaxKind4[SyntaxKind4["
|
|
2786
|
-
SyntaxKind4[SyntaxKind4["
|
|
2787
|
-
SyntaxKind4[SyntaxKind4["
|
|
2788
|
-
SyntaxKind4[SyntaxKind4["
|
|
2789
|
-
SyntaxKind4[SyntaxKind4["
|
|
2790
|
-
SyntaxKind4[SyntaxKind4["
|
|
2791
|
-
SyntaxKind4[SyntaxKind4["
|
|
2792
|
-
SyntaxKind4[SyntaxKind4["
|
|
2793
|
-
SyntaxKind4[SyntaxKind4["
|
|
2794
|
-
SyntaxKind4[SyntaxKind4["
|
|
2795
|
-
SyntaxKind4[SyntaxKind4["
|
|
2796
|
-
SyntaxKind4[SyntaxKind4["
|
|
2797
|
-
SyntaxKind4[SyntaxKind4["
|
|
2798
|
-
SyntaxKind4[SyntaxKind4["
|
|
2799
|
-
SyntaxKind4[SyntaxKind4["
|
|
2800
|
-
SyntaxKind4[SyntaxKind4["
|
|
2801
|
-
SyntaxKind4[SyntaxKind4["
|
|
2802
|
-
SyntaxKind4[SyntaxKind4["
|
|
2803
|
-
SyntaxKind4[SyntaxKind4["
|
|
2804
|
-
SyntaxKind4[SyntaxKind4["
|
|
2805
|
-
SyntaxKind4[SyntaxKind4["
|
|
2806
|
-
SyntaxKind4[SyntaxKind4["
|
|
2807
|
-
SyntaxKind4[SyntaxKind4["
|
|
2808
|
-
SyntaxKind4[SyntaxKind4["
|
|
2809
|
-
SyntaxKind4[SyntaxKind4["
|
|
2810
|
-
SyntaxKind4[SyntaxKind4["
|
|
2811
|
-
SyntaxKind4[SyntaxKind4["
|
|
2812
|
-
SyntaxKind4[SyntaxKind4["
|
|
2813
|
-
SyntaxKind4[SyntaxKind4["
|
|
2814
|
-
SyntaxKind4[SyntaxKind4["
|
|
2815
|
-
SyntaxKind4[SyntaxKind4["
|
|
2816
|
-
SyntaxKind4[SyntaxKind4["
|
|
2817
|
-
SyntaxKind4[SyntaxKind4["
|
|
2818
|
-
SyntaxKind4[SyntaxKind4["
|
|
2819
|
-
SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag";
|
|
2820
|
-
SyntaxKind4[SyntaxKind4["SyntaxList"] = 358] = "SyntaxList";
|
|
2821
|
-
SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 359] = "NotEmittedStatement";
|
|
2822
|
-
SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 360] = "PartiallyEmittedExpression";
|
|
2823
|
-
SyntaxKind4[SyntaxKind4["CommaListExpression"] = 361] = "CommaListExpression";
|
|
2824
|
-
SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 362] = "SyntheticReferenceExpression";
|
|
2825
|
-
SyntaxKind4[SyntaxKind4["Count"] = 363] = "Count";
|
|
2768
|
+
SyntaxKind4[SyntaxKind4["SourceFile"] = 307] = "SourceFile";
|
|
2769
|
+
SyntaxKind4[SyntaxKind4["Bundle"] = 308] = "Bundle";
|
|
2770
|
+
SyntaxKind4[SyntaxKind4["JSDocTypeExpression"] = 309] = "JSDocTypeExpression";
|
|
2771
|
+
SyntaxKind4[SyntaxKind4["JSDocNameReference"] = 310] = "JSDocNameReference";
|
|
2772
|
+
SyntaxKind4[SyntaxKind4["JSDocMemberName"] = 311] = "JSDocMemberName";
|
|
2773
|
+
SyntaxKind4[SyntaxKind4["JSDocAllType"] = 312] = "JSDocAllType";
|
|
2774
|
+
SyntaxKind4[SyntaxKind4["JSDocUnknownType"] = 313] = "JSDocUnknownType";
|
|
2775
|
+
SyntaxKind4[SyntaxKind4["JSDocNullableType"] = 314] = "JSDocNullableType";
|
|
2776
|
+
SyntaxKind4[SyntaxKind4["JSDocNonNullableType"] = 315] = "JSDocNonNullableType";
|
|
2777
|
+
SyntaxKind4[SyntaxKind4["JSDocOptionalType"] = 316] = "JSDocOptionalType";
|
|
2778
|
+
SyntaxKind4[SyntaxKind4["JSDocFunctionType"] = 317] = "JSDocFunctionType";
|
|
2779
|
+
SyntaxKind4[SyntaxKind4["JSDocVariadicType"] = 318] = "JSDocVariadicType";
|
|
2780
|
+
SyntaxKind4[SyntaxKind4["JSDocNamepathType"] = 319] = "JSDocNamepathType";
|
|
2781
|
+
SyntaxKind4[SyntaxKind4["JSDoc"] = 320] = "JSDoc";
|
|
2782
|
+
SyntaxKind4[SyntaxKind4["JSDocComment"] = 320 /* JSDoc */] = "JSDocComment";
|
|
2783
|
+
SyntaxKind4[SyntaxKind4["JSDocText"] = 321] = "JSDocText";
|
|
2784
|
+
SyntaxKind4[SyntaxKind4["JSDocTypeLiteral"] = 322] = "JSDocTypeLiteral";
|
|
2785
|
+
SyntaxKind4[SyntaxKind4["JSDocSignature"] = 323] = "JSDocSignature";
|
|
2786
|
+
SyntaxKind4[SyntaxKind4["JSDocLink"] = 324] = "JSDocLink";
|
|
2787
|
+
SyntaxKind4[SyntaxKind4["JSDocLinkCode"] = 325] = "JSDocLinkCode";
|
|
2788
|
+
SyntaxKind4[SyntaxKind4["JSDocLinkPlain"] = 326] = "JSDocLinkPlain";
|
|
2789
|
+
SyntaxKind4[SyntaxKind4["JSDocTag"] = 327] = "JSDocTag";
|
|
2790
|
+
SyntaxKind4[SyntaxKind4["JSDocAugmentsTag"] = 328] = "JSDocAugmentsTag";
|
|
2791
|
+
SyntaxKind4[SyntaxKind4["JSDocImplementsTag"] = 329] = "JSDocImplementsTag";
|
|
2792
|
+
SyntaxKind4[SyntaxKind4["JSDocAuthorTag"] = 330] = "JSDocAuthorTag";
|
|
2793
|
+
SyntaxKind4[SyntaxKind4["JSDocDeprecatedTag"] = 331] = "JSDocDeprecatedTag";
|
|
2794
|
+
SyntaxKind4[SyntaxKind4["JSDocClassTag"] = 332] = "JSDocClassTag";
|
|
2795
|
+
SyntaxKind4[SyntaxKind4["JSDocPublicTag"] = 333] = "JSDocPublicTag";
|
|
2796
|
+
SyntaxKind4[SyntaxKind4["JSDocPrivateTag"] = 334] = "JSDocPrivateTag";
|
|
2797
|
+
SyntaxKind4[SyntaxKind4["JSDocProtectedTag"] = 335] = "JSDocProtectedTag";
|
|
2798
|
+
SyntaxKind4[SyntaxKind4["JSDocReadonlyTag"] = 336] = "JSDocReadonlyTag";
|
|
2799
|
+
SyntaxKind4[SyntaxKind4["JSDocOverrideTag"] = 337] = "JSDocOverrideTag";
|
|
2800
|
+
SyntaxKind4[SyntaxKind4["JSDocCallbackTag"] = 338] = "JSDocCallbackTag";
|
|
2801
|
+
SyntaxKind4[SyntaxKind4["JSDocOverloadTag"] = 339] = "JSDocOverloadTag";
|
|
2802
|
+
SyntaxKind4[SyntaxKind4["JSDocEnumTag"] = 340] = "JSDocEnumTag";
|
|
2803
|
+
SyntaxKind4[SyntaxKind4["JSDocParameterTag"] = 341] = "JSDocParameterTag";
|
|
2804
|
+
SyntaxKind4[SyntaxKind4["JSDocReturnTag"] = 342] = "JSDocReturnTag";
|
|
2805
|
+
SyntaxKind4[SyntaxKind4["JSDocThisTag"] = 343] = "JSDocThisTag";
|
|
2806
|
+
SyntaxKind4[SyntaxKind4["JSDocTypeTag"] = 344] = "JSDocTypeTag";
|
|
2807
|
+
SyntaxKind4[SyntaxKind4["JSDocTemplateTag"] = 345] = "JSDocTemplateTag";
|
|
2808
|
+
SyntaxKind4[SyntaxKind4["JSDocTypedefTag"] = 346] = "JSDocTypedefTag";
|
|
2809
|
+
SyntaxKind4[SyntaxKind4["JSDocSeeTag"] = 347] = "JSDocSeeTag";
|
|
2810
|
+
SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 348] = "JSDocPropertyTag";
|
|
2811
|
+
SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 349] = "JSDocThrowsTag";
|
|
2812
|
+
SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 350] = "JSDocSatisfiesTag";
|
|
2813
|
+
SyntaxKind4[SyntaxKind4["SyntaxList"] = 351] = "SyntaxList";
|
|
2814
|
+
SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 352] = "NotEmittedStatement";
|
|
2815
|
+
SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 353] = "PartiallyEmittedExpression";
|
|
2816
|
+
SyntaxKind4[SyntaxKind4["CommaListExpression"] = 354] = "CommaListExpression";
|
|
2817
|
+
SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 355] = "SyntheticReferenceExpression";
|
|
2818
|
+
SyntaxKind4[SyntaxKind4["Count"] = 356] = "Count";
|
|
2826
2819
|
SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
|
|
2827
2820
|
SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
|
|
2828
2821
|
SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
|
|
@@ -2850,10 +2843,10 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2850
2843
|
SyntaxKind4[SyntaxKind4["FirstStatement"] = 243 /* VariableStatement */] = "FirstStatement";
|
|
2851
2844
|
SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement";
|
|
2852
2845
|
SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode";
|
|
2853
|
-
SyntaxKind4[SyntaxKind4["FirstJSDocNode"] =
|
|
2854
|
-
SyntaxKind4[SyntaxKind4["LastJSDocNode"] =
|
|
2855
|
-
SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] =
|
|
2856
|
-
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] =
|
|
2846
|
+
SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 309 /* JSDocTypeExpression */] = "FirstJSDocNode";
|
|
2847
|
+
SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 350 /* JSDocSatisfiesTag */] = "LastJSDocNode";
|
|
2848
|
+
SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 327 /* JSDocTag */] = "FirstJSDocTagNode";
|
|
2849
|
+
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 350 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
|
|
2857
2850
|
SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
|
|
2858
2851
|
SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword";
|
|
2859
2852
|
return SyntaxKind4;
|
|
@@ -5380,7 +5373,6 @@ var Diagnostics = {
|
|
|
5380
5373
|
Split_all_invalid_type_only_imports: diag(1367, 3 /* Message */, "Split_all_invalid_type_only_imports_1367", "Split all invalid type-only imports"),
|
|
5381
5374
|
Class_constructor_may_not_be_a_generator: diag(1368, 1 /* Error */, "Class_constructor_may_not_be_a_generator_1368", "Class constructor may not be a generator."),
|
|
5382
5375
|
Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"),
|
|
5383
|
-
This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),
|
|
5384
5376
|
await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
|
|
5385
5377
|
_0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."),
|
|
5386
5378
|
_0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."),
|
|
@@ -5447,8 +5439,6 @@ var Diagnostics = {
|
|
|
5447
5439
|
Cannot_start_a_function_call_in_a_type_annotation: diag(1441, 1 /* Error */, "Cannot_start_a_function_call_in_a_type_annotation_1441", "Cannot start a function call in a type annotation."),
|
|
5448
5440
|
Expected_for_property_initializer: diag(1442, 1 /* Error */, "Expected_for_property_initializer_1442", "Expected '=' for property initializer."),
|
|
5449
5441
|
Module_declaration_names_may_only_use_or_quoted_strings: diag(1443, 1 /* Error */, "Module_declaration_names_may_only_use_or_quoted_strings_1443", `Module declaration names may only use ' or " quoted strings.`),
|
|
5450
|
-
_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: diag(1444, 1 /* Error */, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444", "'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),
|
|
5451
|
-
_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled: diag(1446, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),
|
|
5452
5442
|
_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled: diag(1448, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448", "'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),
|
|
5453
5443
|
Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed: diag(1449, 3 /* Message */, "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449", "Preserve unused imported values in the JavaScript output that would otherwise be removed."),
|
|
5454
5444
|
Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments: diag(1450, 3 /* Message */, "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450", "Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),
|
|
@@ -6525,8 +6515,6 @@ var Diagnostics = {
|
|
|
6525
6515
|
Output_file_0_has_not_been_built_from_source_file_1: diag(6305, 1 /* Error */, "Output_file_0_has_not_been_built_from_source_file_1_6305", "Output file '{0}' has not been built from source file '{1}'."),
|
|
6526
6516
|
Referenced_project_0_must_have_setting_composite_Colon_true: diag(6306, 1 /* Error */, "Referenced_project_0_must_have_setting_composite_Colon_true_6306", `Referenced project '{0}' must have setting "composite": true.`),
|
|
6527
6517
|
File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern: diag(6307, 1 /* Error */, "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307", "File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),
|
|
6528
|
-
Cannot_prepend_project_0_because_it_does_not_have_outFile_set: diag(6308, 1 /* Error */, "Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308", "Cannot prepend project '{0}' because it does not have 'outFile' set"),
|
|
6529
|
-
Output_file_0_from_project_1_does_not_exist: diag(6309, 1 /* Error */, "Output_file_0_from_project_1_does_not_exist_6309", "Output file '{0}' from project '{1}' does not exist"),
|
|
6530
6518
|
Referenced_project_0_may_not_disable_emit: diag(6310, 1 /* Error */, "Referenced_project_0_may_not_disable_emit_6310", "Referenced project '{0}' may not disable emit."),
|
|
6531
6519
|
Project_0_is_out_of_date_because_output_1_is_older_than_input_2: diag(6350, 3 /* Message */, "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350", "Project '{0}' is out of date because output '{1}' is older than input '{2}'"),
|
|
6532
6520
|
Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2: diag(6351, 3 /* Message */, "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351", "Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),
|
|
@@ -6547,11 +6535,7 @@ var Diagnostics = {
|
|
|
6547
6535
|
Option_build_must_be_the_first_command_line_argument: diag(6369, 1 /* Error */, "Option_build_must_be_the_first_command_line_argument_6369", "Option '--build' must be the first command line argument."),
|
|
6548
6536
|
Options_0_and_1_cannot_be_combined: diag(6370, 1 /* Error */, "Options_0_and_1_cannot_be_combined_6370", "Options '{0}' and '{1}' cannot be combined."),
|
|
6549
6537
|
Updating_unchanged_output_timestamps_of_project_0: diag(6371, 3 /* Message */, "Updating_unchanged_output_timestamps_of_project_0_6371", "Updating unchanged output timestamps of project '{0}'..."),
|
|
6550
|
-
Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed: diag(6372, 3 /* Message */, "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372", "Project '{0}' is out of date because output of its dependency '{1}' has changed"),
|
|
6551
|
-
Updating_output_of_project_0: diag(6373, 3 /* Message */, "Updating_output_of_project_0_6373", "Updating output of project '{0}'..."),
|
|
6552
6538
|
A_non_dry_build_would_update_timestamps_for_output_of_project_0: diag(6374, 3 /* Message */, "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374", "A non-dry build would update timestamps for output of project '{0}'"),
|
|
6553
|
-
A_non_dry_build_would_update_output_of_project_0: diag(6375, 3 /* Message */, "A_non_dry_build_would_update_output_of_project_0_6375", "A non-dry build would update output of project '{0}'"),
|
|
6554
|
-
Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: diag(6376, 3 /* Message */, "Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376", "Cannot update output of project '{0}' because there was error reading file '{1}'"),
|
|
6555
6539
|
Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, 1 /* Error */, "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377", "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),
|
|
6556
6540
|
Composite_projects_may_not_disable_incremental_compilation: diag(6379, 1 /* Error */, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."),
|
|
6557
6541
|
Specify_file_to_store_incremental_compilation_information: diag(6380, 3 /* Message */, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"),
|
|
@@ -9483,8 +9467,8 @@ function getNonAssignedNameOfDeclaration(declaration) {
|
|
|
9483
9467
|
switch (declaration.kind) {
|
|
9484
9468
|
case 80 /* Identifier */:
|
|
9485
9469
|
return declaration;
|
|
9486
|
-
case
|
|
9487
|
-
case
|
|
9470
|
+
case 348 /* JSDocPropertyTag */:
|
|
9471
|
+
case 341 /* JSDocParameterTag */: {
|
|
9488
9472
|
const { name } = declaration;
|
|
9489
9473
|
if (name.kind === 166 /* QualifiedName */) {
|
|
9490
9474
|
return name.right;
|
|
@@ -9508,9 +9492,9 @@ function getNonAssignedNameOfDeclaration(declaration) {
|
|
|
9508
9492
|
return void 0;
|
|
9509
9493
|
}
|
|
9510
9494
|
}
|
|
9511
|
-
case
|
|
9495
|
+
case 346 /* JSDocTypedefTag */:
|
|
9512
9496
|
return getNameOfJSDocTypedef(declaration);
|
|
9513
|
-
case
|
|
9497
|
+
case 340 /* JSDocEnumTag */:
|
|
9514
9498
|
return nameForNamelessJSDocTypedef(declaration);
|
|
9515
9499
|
case 277 /* ExportAssignment */: {
|
|
9516
9500
|
const { expression } = declaration;
|
|
@@ -9792,11 +9776,11 @@ function isFunctionLikeKind(kind) {
|
|
|
9792
9776
|
switch (kind) {
|
|
9793
9777
|
case 173 /* MethodSignature */:
|
|
9794
9778
|
case 179 /* CallSignature */:
|
|
9795
|
-
case
|
|
9779
|
+
case 323 /* JSDocSignature */:
|
|
9796
9780
|
case 180 /* ConstructSignature */:
|
|
9797
9781
|
case 181 /* IndexSignature */:
|
|
9798
9782
|
case 184 /* FunctionType */:
|
|
9799
|
-
case
|
|
9783
|
+
case 317 /* JSDocFunctionType */:
|
|
9800
9784
|
case 185 /* ConstructorType */:
|
|
9801
9785
|
return true;
|
|
9802
9786
|
default:
|
|
@@ -9951,8 +9935,8 @@ function isExpressionKind(kind) {
|
|
|
9951
9935
|
case 230 /* SpreadElement */:
|
|
9952
9936
|
case 234 /* AsExpression */:
|
|
9953
9937
|
case 232 /* OmittedExpression */:
|
|
9954
|
-
case
|
|
9955
|
-
case
|
|
9938
|
+
case 354 /* CommaListExpression */:
|
|
9939
|
+
case 353 /* PartiallyEmittedExpression */:
|
|
9956
9940
|
case 238 /* SatisfiesExpression */:
|
|
9957
9941
|
return true;
|
|
9958
9942
|
default:
|
|
@@ -9974,17 +9958,17 @@ function isNamedImportBindings(node) {
|
|
|
9974
9958
|
return kind === 275 /* NamedImports */ || kind === 274 /* NamespaceImport */;
|
|
9975
9959
|
}
|
|
9976
9960
|
function isDeclarationKind(kind) {
|
|
9977
|
-
return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind ===
|
|
9961
|
+
return kind === 219 /* ArrowFunction */ || kind === 208 /* BindingElement */ || kind === 263 /* ClassDeclaration */ || kind === 231 /* ClassExpression */ || kind === 175 /* ClassStaticBlockDeclaration */ || kind === 176 /* Constructor */ || kind === 266 /* EnumDeclaration */ || kind === 306 /* EnumMember */ || kind === 281 /* ExportSpecifier */ || kind === 262 /* FunctionDeclaration */ || kind === 218 /* FunctionExpression */ || kind === 177 /* GetAccessor */ || kind === 273 /* ImportClause */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 276 /* ImportSpecifier */ || kind === 264 /* InterfaceDeclaration */ || kind === 291 /* JsxAttribute */ || kind === 174 /* MethodDeclaration */ || kind === 173 /* MethodSignature */ || kind === 267 /* ModuleDeclaration */ || kind === 270 /* NamespaceExportDeclaration */ || kind === 274 /* NamespaceImport */ || kind === 280 /* NamespaceExport */ || kind === 169 /* Parameter */ || kind === 303 /* PropertyAssignment */ || kind === 172 /* PropertyDeclaration */ || kind === 171 /* PropertySignature */ || kind === 178 /* SetAccessor */ || kind === 304 /* ShorthandPropertyAssignment */ || kind === 265 /* TypeAliasDeclaration */ || kind === 168 /* TypeParameter */ || kind === 260 /* VariableDeclaration */ || kind === 346 /* JSDocTypedefTag */ || kind === 338 /* JSDocCallbackTag */ || kind === 348 /* JSDocPropertyTag */;
|
|
9978
9962
|
}
|
|
9979
9963
|
function isDeclarationStatementKind(kind) {
|
|
9980
9964
|
return kind === 262 /* FunctionDeclaration */ || kind === 282 /* MissingDeclaration */ || kind === 263 /* ClassDeclaration */ || kind === 264 /* InterfaceDeclaration */ || kind === 265 /* TypeAliasDeclaration */ || kind === 266 /* EnumDeclaration */ || kind === 267 /* ModuleDeclaration */ || kind === 272 /* ImportDeclaration */ || kind === 271 /* ImportEqualsDeclaration */ || kind === 278 /* ExportDeclaration */ || kind === 277 /* ExportAssignment */ || kind === 270 /* NamespaceExportDeclaration */;
|
|
9981
9965
|
}
|
|
9982
9966
|
function isStatementKindButNotDeclarationKind(kind) {
|
|
9983
|
-
return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind ===
|
|
9967
|
+
return kind === 252 /* BreakStatement */ || kind === 251 /* ContinueStatement */ || kind === 259 /* DebuggerStatement */ || kind === 246 /* DoStatement */ || kind === 244 /* ExpressionStatement */ || kind === 242 /* EmptyStatement */ || kind === 249 /* ForInStatement */ || kind === 250 /* ForOfStatement */ || kind === 248 /* ForStatement */ || kind === 245 /* IfStatement */ || kind === 256 /* LabeledStatement */ || kind === 253 /* ReturnStatement */ || kind === 255 /* SwitchStatement */ || kind === 257 /* ThrowStatement */ || kind === 258 /* TryStatement */ || kind === 243 /* VariableStatement */ || kind === 247 /* WhileStatement */ || kind === 254 /* WithStatement */ || kind === 352 /* NotEmittedStatement */;
|
|
9984
9968
|
}
|
|
9985
9969
|
function isDeclaration(node) {
|
|
9986
9970
|
if (node.kind === 168 /* TypeParameter */) {
|
|
9987
|
-
return node.parent && node.parent.kind !==
|
|
9971
|
+
return node.parent && node.parent.kind !== 345 /* JSDocTemplateTag */ || isInJSFile(node);
|
|
9988
9972
|
}
|
|
9989
9973
|
return isDeclarationKind(node.kind);
|
|
9990
9974
|
}
|
|
@@ -10031,7 +10015,7 @@ function isCaseOrDefaultClause(node) {
|
|
|
10031
10015
|
return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */;
|
|
10032
10016
|
}
|
|
10033
10017
|
function isJSDocNode(node) {
|
|
10034
|
-
return node.kind >=
|
|
10018
|
+
return node.kind >= 309 /* FirstJSDocNode */ && node.kind <= 350 /* LastJSDocNode */;
|
|
10035
10019
|
}
|
|
10036
10020
|
function hasJSDocNodes(node) {
|
|
10037
10021
|
if (!canHaveJSDoc(node))
|
|
@@ -10114,7 +10098,7 @@ function aggregateChildData(node) {
|
|
|
10114
10098
|
}
|
|
10115
10099
|
}
|
|
10116
10100
|
function getSourceFileOfNode(node) {
|
|
10117
|
-
while (node && node.kind !==
|
|
10101
|
+
while (node && node.kind !== 307 /* SourceFile */) {
|
|
10118
10102
|
node = node.parent;
|
|
10119
10103
|
}
|
|
10120
10104
|
return node;
|
|
@@ -10236,7 +10220,7 @@ function getErrorSpanForArrowFunction(sourceFile, node) {
|
|
|
10236
10220
|
function getErrorSpanForNode(sourceFile, node) {
|
|
10237
10221
|
let errorNode = node;
|
|
10238
10222
|
switch (node.kind) {
|
|
10239
|
-
case
|
|
10223
|
+
case 307 /* SourceFile */: {
|
|
10240
10224
|
const pos2 = skipTrivia(
|
|
10241
10225
|
sourceFile.text,
|
|
10242
10226
|
0,
|
|
@@ -10284,7 +10268,7 @@ function getErrorSpanForNode(sourceFile, node) {
|
|
|
10284
10268
|
const pos2 = skipTrivia(sourceFile.text, node.expression.end);
|
|
10285
10269
|
return getSpanOfTokenAtPosition(sourceFile, pos2);
|
|
10286
10270
|
}
|
|
10287
|
-
case
|
|
10271
|
+
case 350 /* JSDocSatisfiesTag */: {
|
|
10288
10272
|
const pos2 = skipTrivia(sourceFile.text, node.tagName.pos);
|
|
10289
10273
|
return getSpanOfTokenAtPosition(sourceFile, pos2);
|
|
10290
10274
|
}
|
|
@@ -10556,8 +10540,8 @@ function canHaveJSDoc(node) {
|
|
|
10556
10540
|
case 271 /* ImportEqualsDeclaration */:
|
|
10557
10541
|
case 181 /* IndexSignature */:
|
|
10558
10542
|
case 264 /* InterfaceDeclaration */:
|
|
10559
|
-
case
|
|
10560
|
-
case
|
|
10543
|
+
case 317 /* JSDocFunctionType */:
|
|
10544
|
+
case 323 /* JSDocSignature */:
|
|
10561
10545
|
case 256 /* LabeledStatement */:
|
|
10562
10546
|
case 174 /* MethodDeclaration */:
|
|
10563
10547
|
case 173 /* MethodSignature */:
|
|
@@ -10725,7 +10709,7 @@ function getOperator(expression) {
|
|
|
10725
10709
|
}
|
|
10726
10710
|
function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|
10727
10711
|
switch (nodeKind) {
|
|
10728
|
-
case
|
|
10712
|
+
case 354 /* CommaListExpression */:
|
|
10729
10713
|
return 0 /* Comma */;
|
|
10730
10714
|
case 230 /* SpreadElement */:
|
|
10731
10715
|
return 1 /* Spread */;
|
|
@@ -10890,9 +10874,6 @@ function hostGetCanonicalFileName(host) {
|
|
|
10890
10874
|
function getPossibleOriginalInputExtensionForExtension(path2) {
|
|
10891
10875
|
return fileExtensionIsOneOf(path2, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path2, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path2, [`.d.json.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */];
|
|
10892
10876
|
}
|
|
10893
|
-
function outFile(options) {
|
|
10894
|
-
return options.outFile || options.out;
|
|
10895
|
-
}
|
|
10896
10877
|
function getPathsBasePath(options, host) {
|
|
10897
10878
|
var _a;
|
|
10898
10879
|
if (!options.paths)
|
|
@@ -11086,7 +11067,7 @@ function getLastChild(node) {
|
|
|
11086
11067
|
return lastChild;
|
|
11087
11068
|
}
|
|
11088
11069
|
function isTypeNodeKind(kind) {
|
|
11089
|
-
return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind ===
|
|
11070
|
+
return kind >= 182 /* FirstTypeNode */ && kind <= 205 /* LastTypeNode */ || kind === 133 /* AnyKeyword */ || kind === 159 /* UnknownKeyword */ || kind === 150 /* NumberKeyword */ || kind === 163 /* BigIntKeyword */ || kind === 151 /* ObjectKeyword */ || kind === 136 /* BooleanKeyword */ || kind === 154 /* StringKeyword */ || kind === 155 /* SymbolKeyword */ || kind === 116 /* VoidKeyword */ || kind === 157 /* UndefinedKeyword */ || kind === 146 /* NeverKeyword */ || kind === 141 /* IntrinsicKeyword */ || kind === 233 /* ExpressionWithTypeArguments */ || kind === 312 /* JSDocAllType */ || kind === 313 /* JSDocUnknownType */ || kind === 314 /* JSDocNullableType */ || kind === 315 /* JSDocNonNullableType */ || kind === 316 /* JSDocOptionalType */ || kind === 317 /* JSDocFunctionType */ || kind === 318 /* JSDocVariadicType */;
|
|
11090
11071
|
}
|
|
11091
11072
|
function isAccessExpression(node) {
|
|
11092
11073
|
return node.kind === 211 /* PropertyAccessExpression */ || node.kind === 212 /* ElementAccessExpression */;
|
|
@@ -11114,7 +11095,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
|
|
|
11114
11095
|
case 212 /* ElementAccessExpression */:
|
|
11115
11096
|
case 211 /* PropertyAccessExpression */:
|
|
11116
11097
|
case 235 /* NonNullExpression */:
|
|
11117
|
-
case
|
|
11098
|
+
case 353 /* PartiallyEmittedExpression */:
|
|
11118
11099
|
case 238 /* SatisfiesExpression */:
|
|
11119
11100
|
node = node.expression;
|
|
11120
11101
|
continue;
|
|
@@ -12852,40 +12833,40 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
12852
12833
|
updateExternalModuleReference,
|
|
12853
12834
|
// lazily load factory members for JSDoc types with similar structure
|
|
12854
12835
|
get createJSDocAllType() {
|
|
12855
|
-
return getJSDocPrimaryTypeCreateFunction(
|
|
12836
|
+
return getJSDocPrimaryTypeCreateFunction(312 /* JSDocAllType */);
|
|
12856
12837
|
},
|
|
12857
12838
|
get createJSDocUnknownType() {
|
|
12858
|
-
return getJSDocPrimaryTypeCreateFunction(
|
|
12839
|
+
return getJSDocPrimaryTypeCreateFunction(313 /* JSDocUnknownType */);
|
|
12859
12840
|
},
|
|
12860
12841
|
get createJSDocNonNullableType() {
|
|
12861
|
-
return getJSDocPrePostfixUnaryTypeCreateFunction(
|
|
12842
|
+
return getJSDocPrePostfixUnaryTypeCreateFunction(315 /* JSDocNonNullableType */);
|
|
12862
12843
|
},
|
|
12863
12844
|
get updateJSDocNonNullableType() {
|
|
12864
|
-
return getJSDocPrePostfixUnaryTypeUpdateFunction(
|
|
12845
|
+
return getJSDocPrePostfixUnaryTypeUpdateFunction(315 /* JSDocNonNullableType */);
|
|
12865
12846
|
},
|
|
12866
12847
|
get createJSDocNullableType() {
|
|
12867
|
-
return getJSDocPrePostfixUnaryTypeCreateFunction(
|
|
12848
|
+
return getJSDocPrePostfixUnaryTypeCreateFunction(314 /* JSDocNullableType */);
|
|
12868
12849
|
},
|
|
12869
12850
|
get updateJSDocNullableType() {
|
|
12870
|
-
return getJSDocPrePostfixUnaryTypeUpdateFunction(
|
|
12851
|
+
return getJSDocPrePostfixUnaryTypeUpdateFunction(314 /* JSDocNullableType */);
|
|
12871
12852
|
},
|
|
12872
12853
|
get createJSDocOptionalType() {
|
|
12873
|
-
return getJSDocUnaryTypeCreateFunction(
|
|
12854
|
+
return getJSDocUnaryTypeCreateFunction(316 /* JSDocOptionalType */);
|
|
12874
12855
|
},
|
|
12875
12856
|
get updateJSDocOptionalType() {
|
|
12876
|
-
return getJSDocUnaryTypeUpdateFunction(
|
|
12857
|
+
return getJSDocUnaryTypeUpdateFunction(316 /* JSDocOptionalType */);
|
|
12877
12858
|
},
|
|
12878
12859
|
get createJSDocVariadicType() {
|
|
12879
|
-
return getJSDocUnaryTypeCreateFunction(
|
|
12860
|
+
return getJSDocUnaryTypeCreateFunction(318 /* JSDocVariadicType */);
|
|
12880
12861
|
},
|
|
12881
12862
|
get updateJSDocVariadicType() {
|
|
12882
|
-
return getJSDocUnaryTypeUpdateFunction(
|
|
12863
|
+
return getJSDocUnaryTypeUpdateFunction(318 /* JSDocVariadicType */);
|
|
12883
12864
|
},
|
|
12884
12865
|
get createJSDocNamepathType() {
|
|
12885
|
-
return getJSDocUnaryTypeCreateFunction(
|
|
12866
|
+
return getJSDocUnaryTypeCreateFunction(319 /* JSDocNamepathType */);
|
|
12886
12867
|
},
|
|
12887
12868
|
get updateJSDocNamepathType() {
|
|
12888
|
-
return getJSDocUnaryTypeUpdateFunction(
|
|
12869
|
+
return getJSDocUnaryTypeUpdateFunction(319 /* JSDocNamepathType */);
|
|
12889
12870
|
},
|
|
12890
12871
|
createJSDocFunctionType,
|
|
12891
12872
|
updateJSDocFunctionType,
|
|
@@ -12925,82 +12906,82 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
12925
12906
|
updateJSDocLinkPlain,
|
|
12926
12907
|
// lazily load factory members for JSDoc tags with similar structure
|
|
12927
12908
|
get createJSDocTypeTag() {
|
|
12928
|
-
return getJSDocTypeLikeTagCreateFunction(
|
|
12909
|
+
return getJSDocTypeLikeTagCreateFunction(344 /* JSDocTypeTag */);
|
|
12929
12910
|
},
|
|
12930
12911
|
get updateJSDocTypeTag() {
|
|
12931
|
-
return getJSDocTypeLikeTagUpdateFunction(
|
|
12912
|
+
return getJSDocTypeLikeTagUpdateFunction(344 /* JSDocTypeTag */);
|
|
12932
12913
|
},
|
|
12933
12914
|
get createJSDocReturnTag() {
|
|
12934
|
-
return getJSDocTypeLikeTagCreateFunction(
|
|
12915
|
+
return getJSDocTypeLikeTagCreateFunction(342 /* JSDocReturnTag */);
|
|
12935
12916
|
},
|
|
12936
12917
|
get updateJSDocReturnTag() {
|
|
12937
|
-
return getJSDocTypeLikeTagUpdateFunction(
|
|
12918
|
+
return getJSDocTypeLikeTagUpdateFunction(342 /* JSDocReturnTag */);
|
|
12938
12919
|
},
|
|
12939
12920
|
get createJSDocThisTag() {
|
|
12940
|
-
return getJSDocTypeLikeTagCreateFunction(
|
|
12921
|
+
return getJSDocTypeLikeTagCreateFunction(343 /* JSDocThisTag */);
|
|
12941
12922
|
},
|
|
12942
12923
|
get updateJSDocThisTag() {
|
|
12943
|
-
return getJSDocTypeLikeTagUpdateFunction(
|
|
12924
|
+
return getJSDocTypeLikeTagUpdateFunction(343 /* JSDocThisTag */);
|
|
12944
12925
|
},
|
|
12945
12926
|
get createJSDocAuthorTag() {
|
|
12946
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12927
|
+
return getJSDocSimpleTagCreateFunction(330 /* JSDocAuthorTag */);
|
|
12947
12928
|
},
|
|
12948
12929
|
get updateJSDocAuthorTag() {
|
|
12949
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12930
|
+
return getJSDocSimpleTagUpdateFunction(330 /* JSDocAuthorTag */);
|
|
12950
12931
|
},
|
|
12951
12932
|
get createJSDocClassTag() {
|
|
12952
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12933
|
+
return getJSDocSimpleTagCreateFunction(332 /* JSDocClassTag */);
|
|
12953
12934
|
},
|
|
12954
12935
|
get updateJSDocClassTag() {
|
|
12955
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12936
|
+
return getJSDocSimpleTagUpdateFunction(332 /* JSDocClassTag */);
|
|
12956
12937
|
},
|
|
12957
12938
|
get createJSDocPublicTag() {
|
|
12958
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12939
|
+
return getJSDocSimpleTagCreateFunction(333 /* JSDocPublicTag */);
|
|
12959
12940
|
},
|
|
12960
12941
|
get updateJSDocPublicTag() {
|
|
12961
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12942
|
+
return getJSDocSimpleTagUpdateFunction(333 /* JSDocPublicTag */);
|
|
12962
12943
|
},
|
|
12963
12944
|
get createJSDocPrivateTag() {
|
|
12964
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12945
|
+
return getJSDocSimpleTagCreateFunction(334 /* JSDocPrivateTag */);
|
|
12965
12946
|
},
|
|
12966
12947
|
get updateJSDocPrivateTag() {
|
|
12967
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12948
|
+
return getJSDocSimpleTagUpdateFunction(334 /* JSDocPrivateTag */);
|
|
12968
12949
|
},
|
|
12969
12950
|
get createJSDocProtectedTag() {
|
|
12970
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12951
|
+
return getJSDocSimpleTagCreateFunction(335 /* JSDocProtectedTag */);
|
|
12971
12952
|
},
|
|
12972
12953
|
get updateJSDocProtectedTag() {
|
|
12973
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12954
|
+
return getJSDocSimpleTagUpdateFunction(335 /* JSDocProtectedTag */);
|
|
12974
12955
|
},
|
|
12975
12956
|
get createJSDocReadonlyTag() {
|
|
12976
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12957
|
+
return getJSDocSimpleTagCreateFunction(336 /* JSDocReadonlyTag */);
|
|
12977
12958
|
},
|
|
12978
12959
|
get updateJSDocReadonlyTag() {
|
|
12979
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12960
|
+
return getJSDocSimpleTagUpdateFunction(336 /* JSDocReadonlyTag */);
|
|
12980
12961
|
},
|
|
12981
12962
|
get createJSDocOverrideTag() {
|
|
12982
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12963
|
+
return getJSDocSimpleTagCreateFunction(337 /* JSDocOverrideTag */);
|
|
12983
12964
|
},
|
|
12984
12965
|
get updateJSDocOverrideTag() {
|
|
12985
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12966
|
+
return getJSDocSimpleTagUpdateFunction(337 /* JSDocOverrideTag */);
|
|
12986
12967
|
},
|
|
12987
12968
|
get createJSDocDeprecatedTag() {
|
|
12988
|
-
return getJSDocSimpleTagCreateFunction(
|
|
12969
|
+
return getJSDocSimpleTagCreateFunction(331 /* JSDocDeprecatedTag */);
|
|
12989
12970
|
},
|
|
12990
12971
|
get updateJSDocDeprecatedTag() {
|
|
12991
|
-
return getJSDocSimpleTagUpdateFunction(
|
|
12972
|
+
return getJSDocSimpleTagUpdateFunction(331 /* JSDocDeprecatedTag */);
|
|
12992
12973
|
},
|
|
12993
12974
|
get createJSDocThrowsTag() {
|
|
12994
|
-
return getJSDocTypeLikeTagCreateFunction(
|
|
12975
|
+
return getJSDocTypeLikeTagCreateFunction(349 /* JSDocThrowsTag */);
|
|
12995
12976
|
},
|
|
12996
12977
|
get updateJSDocThrowsTag() {
|
|
12997
|
-
return getJSDocTypeLikeTagUpdateFunction(
|
|
12978
|
+
return getJSDocTypeLikeTagUpdateFunction(349 /* JSDocThrowsTag */);
|
|
12998
12979
|
},
|
|
12999
12980
|
get createJSDocSatisfiesTag() {
|
|
13000
|
-
return getJSDocTypeLikeTagCreateFunction(
|
|
12981
|
+
return getJSDocTypeLikeTagCreateFunction(350 /* JSDocSatisfiesTag */);
|
|
13001
12982
|
},
|
|
13002
12983
|
get updateJSDocSatisfiesTag() {
|
|
13003
|
-
return getJSDocTypeLikeTagUpdateFunction(
|
|
12984
|
+
return getJSDocTypeLikeTagUpdateFunction(350 /* JSDocSatisfiesTag */);
|
|
13004
12985
|
},
|
|
13005
12986
|
createJSDocEnumTag,
|
|
13006
12987
|
updateJSDocEnumTag,
|
|
@@ -13055,12 +13036,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
13055
13036
|
createRedirectedSourceFile,
|
|
13056
13037
|
createBundle,
|
|
13057
13038
|
updateBundle,
|
|
13058
|
-
createUnparsedSource,
|
|
13059
|
-
createUnparsedPrologue,
|
|
13060
|
-
createUnparsedPrepend,
|
|
13061
|
-
createUnparsedTextLike,
|
|
13062
|
-
createUnparsedSyntheticReference,
|
|
13063
|
-
createInputFiles,
|
|
13064
13039
|
createSyntheticExpression,
|
|
13065
13040
|
createSyntaxList,
|
|
13066
13041
|
createNotEmittedStatement,
|
|
@@ -15468,7 +15443,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15468
15443
|
return node.type !== type ? update(createJSDocUnaryTypeWorker(kind, type), node) : node;
|
|
15469
15444
|
}
|
|
15470
15445
|
function createJSDocFunctionType(parameters, type) {
|
|
15471
|
-
const node = createBaseDeclaration(
|
|
15446
|
+
const node = createBaseDeclaration(317 /* JSDocFunctionType */);
|
|
15472
15447
|
node.parameters = asNodeArray(parameters);
|
|
15473
15448
|
node.type = type;
|
|
15474
15449
|
node.transformFlags = propagateChildrenFlags(node.parameters) | (node.type ? 1 /* ContainsTypeScript */ : 0 /* None */);
|
|
@@ -15482,7 +15457,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15482
15457
|
return node.parameters !== parameters || node.type !== type ? update(createJSDocFunctionType(parameters, type), node) : node;
|
|
15483
15458
|
}
|
|
15484
15459
|
function createJSDocTypeLiteral(propertyTags, isArrayType = false) {
|
|
15485
|
-
const node = createBaseDeclaration(
|
|
15460
|
+
const node = createBaseDeclaration(322 /* JSDocTypeLiteral */);
|
|
15486
15461
|
node.jsDocPropertyTags = asNodeArray(propertyTags);
|
|
15487
15462
|
node.isArrayType = isArrayType;
|
|
15488
15463
|
return node;
|
|
@@ -15491,7 +15466,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15491
15466
|
return node.jsDocPropertyTags !== propertyTags || node.isArrayType !== isArrayType ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node) : node;
|
|
15492
15467
|
}
|
|
15493
15468
|
function createJSDocTypeExpression(type) {
|
|
15494
|
-
const node = createBaseNode(
|
|
15469
|
+
const node = createBaseNode(309 /* JSDocTypeExpression */);
|
|
15495
15470
|
node.type = type;
|
|
15496
15471
|
return node;
|
|
15497
15472
|
}
|
|
@@ -15499,7 +15474,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15499
15474
|
return node.type !== type ? update(createJSDocTypeExpression(type), node) : node;
|
|
15500
15475
|
}
|
|
15501
15476
|
function createJSDocSignature(typeParameters, parameters, type) {
|
|
15502
|
-
const node = createBaseDeclaration(
|
|
15477
|
+
const node = createBaseDeclaration(323 /* JSDocSignature */);
|
|
15503
15478
|
node.typeParameters = asNodeArray(typeParameters);
|
|
15504
15479
|
node.parameters = createNodeArray(parameters);
|
|
15505
15480
|
node.type = type;
|
|
@@ -15528,7 +15503,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15528
15503
|
return node;
|
|
15529
15504
|
}
|
|
15530
15505
|
function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) {
|
|
15531
|
-
const node = createBaseJSDocTag(
|
|
15506
|
+
const node = createBaseJSDocTag(345 /* JSDocTemplateTag */, tagName ?? createIdentifier("template"), comment);
|
|
15532
15507
|
node.constraint = constraint;
|
|
15533
15508
|
node.typeParameters = createNodeArray(typeParameters);
|
|
15534
15509
|
return node;
|
|
@@ -15537,7 +15512,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15537
15512
|
return node.tagName !== tagName || node.constraint !== constraint || node.typeParameters !== typeParameters || node.comment !== comment ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node) : node;
|
|
15538
15513
|
}
|
|
15539
15514
|
function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) {
|
|
15540
|
-
const node = createBaseJSDocTagDeclaration(
|
|
15515
|
+
const node = createBaseJSDocTagDeclaration(346 /* JSDocTypedefTag */, tagName ?? createIdentifier("typedef"), comment);
|
|
15541
15516
|
node.typeExpression = typeExpression;
|
|
15542
15517
|
node.fullName = fullName;
|
|
15543
15518
|
node.name = getJSDocTypeAliasName(fullName);
|
|
@@ -15549,7 +15524,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15549
15524
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node) : node;
|
|
15550
15525
|
}
|
|
15551
15526
|
function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
|
|
15552
|
-
const node = createBaseJSDocTagDeclaration(
|
|
15527
|
+
const node = createBaseJSDocTagDeclaration(341 /* JSDocParameterTag */, tagName ?? createIdentifier("param"), comment);
|
|
15553
15528
|
node.typeExpression = typeExpression;
|
|
15554
15529
|
node.name = name;
|
|
15555
15530
|
node.isNameFirst = !!isNameFirst;
|
|
@@ -15560,7 +15535,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15560
15535
|
return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;
|
|
15561
15536
|
}
|
|
15562
15537
|
function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {
|
|
15563
|
-
const node = createBaseJSDocTagDeclaration(
|
|
15538
|
+
const node = createBaseJSDocTagDeclaration(348 /* JSDocPropertyTag */, tagName ?? createIdentifier("prop"), comment);
|
|
15564
15539
|
node.typeExpression = typeExpression;
|
|
15565
15540
|
node.name = name;
|
|
15566
15541
|
node.isNameFirst = !!isNameFirst;
|
|
@@ -15571,7 +15546,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15571
15546
|
return node.tagName !== tagName || node.name !== name || node.isBracketed !== isBracketed || node.typeExpression !== typeExpression || node.isNameFirst !== isNameFirst || node.comment !== comment ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node) : node;
|
|
15572
15547
|
}
|
|
15573
15548
|
function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) {
|
|
15574
|
-
const node = createBaseJSDocTagDeclaration(
|
|
15549
|
+
const node = createBaseJSDocTagDeclaration(338 /* JSDocCallbackTag */, tagName ?? createIdentifier("callback"), comment);
|
|
15575
15550
|
node.typeExpression = typeExpression;
|
|
15576
15551
|
node.fullName = fullName;
|
|
15577
15552
|
node.name = getJSDocTypeAliasName(fullName);
|
|
@@ -15583,7 +15558,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15583
15558
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.fullName !== fullName || node.comment !== comment ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node) : node;
|
|
15584
15559
|
}
|
|
15585
15560
|
function createJSDocOverloadTag(tagName, typeExpression, comment) {
|
|
15586
|
-
const node = createBaseJSDocTag(
|
|
15561
|
+
const node = createBaseJSDocTag(339 /* JSDocOverloadTag */, tagName ?? createIdentifier("overload"), comment);
|
|
15587
15562
|
node.typeExpression = typeExpression;
|
|
15588
15563
|
return node;
|
|
15589
15564
|
}
|
|
@@ -15591,7 +15566,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15591
15566
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocOverloadTag(tagName, typeExpression, comment), node) : node;
|
|
15592
15567
|
}
|
|
15593
15568
|
function createJSDocAugmentsTag(tagName, className, comment) {
|
|
15594
|
-
const node = createBaseJSDocTag(
|
|
15569
|
+
const node = createBaseJSDocTag(328 /* JSDocAugmentsTag */, tagName ?? createIdentifier("augments"), comment);
|
|
15595
15570
|
node.class = className;
|
|
15596
15571
|
return node;
|
|
15597
15572
|
}
|
|
@@ -15599,12 +15574,12 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15599
15574
|
return node.tagName !== tagName || node.class !== className || node.comment !== comment ? update(createJSDocAugmentsTag(tagName, className, comment), node) : node;
|
|
15600
15575
|
}
|
|
15601
15576
|
function createJSDocImplementsTag(tagName, className, comment) {
|
|
15602
|
-
const node = createBaseJSDocTag(
|
|
15577
|
+
const node = createBaseJSDocTag(329 /* JSDocImplementsTag */, tagName ?? createIdentifier("implements"), comment);
|
|
15603
15578
|
node.class = className;
|
|
15604
15579
|
return node;
|
|
15605
15580
|
}
|
|
15606
15581
|
function createJSDocSeeTag(tagName, name, comment) {
|
|
15607
|
-
const node = createBaseJSDocTag(
|
|
15582
|
+
const node = createBaseJSDocTag(347 /* JSDocSeeTag */, tagName ?? createIdentifier("see"), comment);
|
|
15608
15583
|
node.name = name;
|
|
15609
15584
|
return node;
|
|
15610
15585
|
}
|
|
@@ -15612,7 +15587,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15612
15587
|
return node.tagName !== tagName || node.name !== name || node.comment !== comment ? update(createJSDocSeeTag(tagName, name, comment), node) : node;
|
|
15613
15588
|
}
|
|
15614
15589
|
function createJSDocNameReference(name) {
|
|
15615
|
-
const node = createBaseNode(
|
|
15590
|
+
const node = createBaseNode(310 /* JSDocNameReference */);
|
|
15616
15591
|
node.name = name;
|
|
15617
15592
|
return node;
|
|
15618
15593
|
}
|
|
@@ -15620,7 +15595,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15620
15595
|
return node.name !== name ? update(createJSDocNameReference(name), node) : node;
|
|
15621
15596
|
}
|
|
15622
15597
|
function createJSDocMemberName(left, right) {
|
|
15623
|
-
const node = createBaseNode(
|
|
15598
|
+
const node = createBaseNode(311 /* JSDocMemberName */);
|
|
15624
15599
|
node.left = left;
|
|
15625
15600
|
node.right = right;
|
|
15626
15601
|
node.transformFlags |= propagateChildFlags(node.left) | propagateChildFlags(node.right);
|
|
@@ -15630,7 +15605,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15630
15605
|
return node.left !== left || node.right !== right ? update(createJSDocMemberName(left, right), node) : node;
|
|
15631
15606
|
}
|
|
15632
15607
|
function createJSDocLink(name, text) {
|
|
15633
|
-
const node = createBaseNode(
|
|
15608
|
+
const node = createBaseNode(324 /* JSDocLink */);
|
|
15634
15609
|
node.name = name;
|
|
15635
15610
|
node.text = text;
|
|
15636
15611
|
return node;
|
|
@@ -15639,7 +15614,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15639
15614
|
return node.name !== name ? update(createJSDocLink(name, text), node) : node;
|
|
15640
15615
|
}
|
|
15641
15616
|
function createJSDocLinkCode(name, text) {
|
|
15642
|
-
const node = createBaseNode(
|
|
15617
|
+
const node = createBaseNode(325 /* JSDocLinkCode */);
|
|
15643
15618
|
node.name = name;
|
|
15644
15619
|
node.text = text;
|
|
15645
15620
|
return node;
|
|
@@ -15648,7 +15623,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15648
15623
|
return node.name !== name ? update(createJSDocLinkCode(name, text), node) : node;
|
|
15649
15624
|
}
|
|
15650
15625
|
function createJSDocLinkPlain(name, text) {
|
|
15651
|
-
const node = createBaseNode(
|
|
15626
|
+
const node = createBaseNode(326 /* JSDocLinkPlain */);
|
|
15652
15627
|
node.name = name;
|
|
15653
15628
|
node.text = text;
|
|
15654
15629
|
return node;
|
|
@@ -15675,14 +15650,14 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15675
15650
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node) : node;
|
|
15676
15651
|
}
|
|
15677
15652
|
function createJSDocUnknownTag(tagName, comment) {
|
|
15678
|
-
const node = createBaseJSDocTag(
|
|
15653
|
+
const node = createBaseJSDocTag(327 /* JSDocTag */, tagName, comment);
|
|
15679
15654
|
return node;
|
|
15680
15655
|
}
|
|
15681
15656
|
function updateJSDocUnknownTag(node, tagName, comment) {
|
|
15682
15657
|
return node.tagName !== tagName || node.comment !== comment ? update(createJSDocUnknownTag(tagName, comment), node) : node;
|
|
15683
15658
|
}
|
|
15684
15659
|
function createJSDocEnumTag(tagName, typeExpression, comment) {
|
|
15685
|
-
const node = createBaseJSDocTagDeclaration(
|
|
15660
|
+
const node = createBaseJSDocTagDeclaration(340 /* JSDocEnumTag */, tagName ?? createIdentifier(getDefaultTagNameForKind(340 /* JSDocEnumTag */)), comment);
|
|
15686
15661
|
node.typeExpression = typeExpression;
|
|
15687
15662
|
node.locals = void 0;
|
|
15688
15663
|
node.nextContainer = void 0;
|
|
@@ -15692,7 +15667,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15692
15667
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
|
|
15693
15668
|
}
|
|
15694
15669
|
function createJSDocText(text) {
|
|
15695
|
-
const node = createBaseNode(
|
|
15670
|
+
const node = createBaseNode(321 /* JSDocText */);
|
|
15696
15671
|
node.text = text;
|
|
15697
15672
|
return node;
|
|
15698
15673
|
}
|
|
@@ -15700,7 +15675,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15700
15675
|
return node.text !== text ? update(createJSDocText(text), node) : node;
|
|
15701
15676
|
}
|
|
15702
15677
|
function createJSDocComment(comment, tags) {
|
|
15703
|
-
const node = createBaseNode(
|
|
15678
|
+
const node = createBaseNode(320 /* JSDoc */);
|
|
15704
15679
|
node.comment = comment;
|
|
15705
15680
|
node.tags = asNodeArray(tags);
|
|
15706
15681
|
return node;
|
|
@@ -15955,7 +15930,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15955
15930
|
return node.name !== name || node.initializer !== initializer ? update(createEnumMember(name, initializer), node) : node;
|
|
15956
15931
|
}
|
|
15957
15932
|
function createSourceFile2(statements, endOfFileToken, flags2) {
|
|
15958
|
-
const node = baseFactory2.createBaseSourceFileNode(
|
|
15933
|
+
const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */);
|
|
15959
15934
|
node.statements = createNodeArray(statements);
|
|
15960
15935
|
node.endOfFileToken = endOfFileToken;
|
|
15961
15936
|
node.flags |= flags2;
|
|
@@ -16035,7 +16010,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16035
16010
|
return node;
|
|
16036
16011
|
}
|
|
16037
16012
|
function cloneSourceFileWorker(source) {
|
|
16038
|
-
const node = baseFactory2.createBaseSourceFileNode(
|
|
16013
|
+
const node = baseFactory2.createBaseSourceFileNode(307 /* SourceFile */);
|
|
16039
16014
|
node.flags |= source.flags & ~16 /* Synthesized */;
|
|
16040
16015
|
for (const p in source) {
|
|
16041
16016
|
if (hasProperty(node, p) || !hasProperty(source, p)) {
|
|
@@ -16068,9 +16043,8 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16068
16043
|
function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, hasNoDefaultLib = node.hasNoDefaultLib, libReferenceDirectives = node.libReferenceDirectives) {
|
|
16069
16044
|
return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.hasNoDefaultLib !== hasNoDefaultLib || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node) : node;
|
|
16070
16045
|
}
|
|
16071
|
-
function createBundle(sourceFiles
|
|
16072
|
-
const node = createBaseNode(
|
|
16073
|
-
node.prepends = prepends;
|
|
16046
|
+
function createBundle(sourceFiles) {
|
|
16047
|
+
const node = createBaseNode(308 /* Bundle */);
|
|
16074
16048
|
node.sourceFiles = sourceFiles;
|
|
16075
16049
|
node.syntheticFileReferences = void 0;
|
|
16076
16050
|
node.syntheticTypeReferences = void 0;
|
|
@@ -16078,48 +16052,8 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16078
16052
|
node.hasNoDefaultLib = void 0;
|
|
16079
16053
|
return node;
|
|
16080
16054
|
}
|
|
16081
|
-
function updateBundle(node, sourceFiles
|
|
16082
|
-
return node.sourceFiles !== sourceFiles
|
|
16083
|
-
}
|
|
16084
|
-
function createUnparsedSource(prologues, syntheticReferences, texts) {
|
|
16085
|
-
const node = createBaseNode(314 /* UnparsedSource */);
|
|
16086
|
-
node.prologues = prologues;
|
|
16087
|
-
node.syntheticReferences = syntheticReferences;
|
|
16088
|
-
node.texts = texts;
|
|
16089
|
-
node.fileName = "";
|
|
16090
|
-
node.text = "";
|
|
16091
|
-
node.referencedFiles = emptyArray;
|
|
16092
|
-
node.libReferenceDirectives = emptyArray;
|
|
16093
|
-
node.getLineAndCharacterOfPosition = (pos) => getLineAndCharacterOfPosition(node, pos);
|
|
16094
|
-
return node;
|
|
16095
|
-
}
|
|
16096
|
-
function createBaseUnparsedNode(kind, data) {
|
|
16097
|
-
const node = createBaseNode(kind);
|
|
16098
|
-
node.data = data;
|
|
16099
|
-
return node;
|
|
16100
|
-
}
|
|
16101
|
-
function createUnparsedPrologue(data) {
|
|
16102
|
-
return createBaseUnparsedNode(307 /* UnparsedPrologue */, data);
|
|
16103
|
-
}
|
|
16104
|
-
function createUnparsedPrepend(data, texts) {
|
|
16105
|
-
const node = createBaseUnparsedNode(308 /* UnparsedPrepend */, data);
|
|
16106
|
-
node.texts = texts;
|
|
16107
|
-
return node;
|
|
16108
|
-
}
|
|
16109
|
-
function createUnparsedTextLike(data, internal) {
|
|
16110
|
-
return createBaseUnparsedNode(internal ? 310 /* UnparsedInternalText */ : 309 /* UnparsedText */, data);
|
|
16111
|
-
}
|
|
16112
|
-
function createUnparsedSyntheticReference(section) {
|
|
16113
|
-
const node = createBaseNode(311 /* UnparsedSyntheticReference */);
|
|
16114
|
-
node.data = section.data;
|
|
16115
|
-
node.section = section;
|
|
16116
|
-
return node;
|
|
16117
|
-
}
|
|
16118
|
-
function createInputFiles() {
|
|
16119
|
-
const node = createBaseNode(315 /* InputFiles */);
|
|
16120
|
-
node.javascriptText = "";
|
|
16121
|
-
node.declarationText = "";
|
|
16122
|
-
return node;
|
|
16055
|
+
function updateBundle(node, sourceFiles) {
|
|
16056
|
+
return node.sourceFiles !== sourceFiles ? update(createBundle(sourceFiles), node) : node;
|
|
16123
16057
|
}
|
|
16124
16058
|
function createSyntheticExpression(type, isSpread = false, tupleNameSource) {
|
|
16125
16059
|
const node = createBaseNode(237 /* SyntheticExpression */);
|
|
@@ -16129,18 +16063,18 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16129
16063
|
return node;
|
|
16130
16064
|
}
|
|
16131
16065
|
function createSyntaxList(children) {
|
|
16132
|
-
const node = createBaseNode(
|
|
16066
|
+
const node = createBaseNode(351 /* SyntaxList */);
|
|
16133
16067
|
node._children = children;
|
|
16134
16068
|
return node;
|
|
16135
16069
|
}
|
|
16136
16070
|
function createNotEmittedStatement(original) {
|
|
16137
|
-
const node = createBaseNode(
|
|
16071
|
+
const node = createBaseNode(352 /* NotEmittedStatement */);
|
|
16138
16072
|
node.original = original;
|
|
16139
16073
|
setTextRange(node, original);
|
|
16140
16074
|
return node;
|
|
16141
16075
|
}
|
|
16142
16076
|
function createPartiallyEmittedExpression(expression, original) {
|
|
16143
|
-
const node = createBaseNode(
|
|
16077
|
+
const node = createBaseNode(353 /* PartiallyEmittedExpression */);
|
|
16144
16078
|
node.expression = expression;
|
|
16145
16079
|
node.original = original;
|
|
16146
16080
|
node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
|
|
@@ -16162,7 +16096,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16162
16096
|
return node;
|
|
16163
16097
|
}
|
|
16164
16098
|
function createCommaListExpression(elements) {
|
|
16165
|
-
const node = createBaseNode(
|
|
16099
|
+
const node = createBaseNode(354 /* CommaListExpression */);
|
|
16166
16100
|
node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
|
|
16167
16101
|
node.transformFlags |= propagateChildrenFlags(node.elements);
|
|
16168
16102
|
return node;
|
|
@@ -16171,7 +16105,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16171
16105
|
return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
|
|
16172
16106
|
}
|
|
16173
16107
|
function createSyntheticReferenceExpression(expression, thisArg) {
|
|
16174
|
-
const node = createBaseNode(
|
|
16108
|
+
const node = createBaseNode(355 /* SyntheticReferenceExpression */);
|
|
16175
16109
|
node.expression = expression;
|
|
16176
16110
|
node.thisArg = thisArg;
|
|
16177
16111
|
node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
|
|
@@ -16181,40 +16115,40 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16181
16115
|
return node.expression !== expression || node.thisArg !== thisArg ? update(createSyntheticReferenceExpression(expression, thisArg), node) : node;
|
|
16182
16116
|
}
|
|
16183
16117
|
function cloneGeneratedIdentifier(node) {
|
|
16184
|
-
const
|
|
16185
|
-
|
|
16186
|
-
|
|
16187
|
-
setOriginal(
|
|
16188
|
-
setIdentifierAutoGenerate(
|
|
16189
|
-
return
|
|
16118
|
+
const clone = createBaseIdentifier(node.escapedText);
|
|
16119
|
+
clone.flags |= node.flags & ~16 /* Synthesized */;
|
|
16120
|
+
clone.transformFlags = node.transformFlags;
|
|
16121
|
+
setOriginal(clone, node);
|
|
16122
|
+
setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate });
|
|
16123
|
+
return clone;
|
|
16190
16124
|
}
|
|
16191
16125
|
function cloneIdentifier(node) {
|
|
16192
|
-
const
|
|
16193
|
-
|
|
16194
|
-
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
setOriginal(
|
|
16126
|
+
const clone = createBaseIdentifier(node.escapedText);
|
|
16127
|
+
clone.flags |= node.flags & ~16 /* Synthesized */;
|
|
16128
|
+
clone.jsDoc = node.jsDoc;
|
|
16129
|
+
clone.flowNode = node.flowNode;
|
|
16130
|
+
clone.symbol = node.symbol;
|
|
16131
|
+
clone.transformFlags = node.transformFlags;
|
|
16132
|
+
setOriginal(clone, node);
|
|
16199
16133
|
const typeArguments = getIdentifierTypeArguments(node);
|
|
16200
16134
|
if (typeArguments)
|
|
16201
|
-
setIdentifierTypeArguments(
|
|
16202
|
-
return
|
|
16135
|
+
setIdentifierTypeArguments(clone, typeArguments);
|
|
16136
|
+
return clone;
|
|
16203
16137
|
}
|
|
16204
16138
|
function cloneGeneratedPrivateIdentifier(node) {
|
|
16205
|
-
const
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
setOriginal(
|
|
16209
|
-
setIdentifierAutoGenerate(
|
|
16210
|
-
return
|
|
16139
|
+
const clone = createBasePrivateIdentifier(node.escapedText);
|
|
16140
|
+
clone.flags |= node.flags & ~16 /* Synthesized */;
|
|
16141
|
+
clone.transformFlags = node.transformFlags;
|
|
16142
|
+
setOriginal(clone, node);
|
|
16143
|
+
setIdentifierAutoGenerate(clone, { ...node.emitNode.autoGenerate });
|
|
16144
|
+
return clone;
|
|
16211
16145
|
}
|
|
16212
16146
|
function clonePrivateIdentifier(node) {
|
|
16213
|
-
const
|
|
16214
|
-
|
|
16215
|
-
|
|
16216
|
-
setOriginal(
|
|
16217
|
-
return
|
|
16147
|
+
const clone = createBasePrivateIdentifier(node.escapedText);
|
|
16148
|
+
clone.flags |= node.flags & ~16 /* Synthesized */;
|
|
16149
|
+
clone.transformFlags = node.transformFlags;
|
|
16150
|
+
setOriginal(clone, node);
|
|
16151
|
+
return clone;
|
|
16218
16152
|
}
|
|
16219
16153
|
function cloneNode(node) {
|
|
16220
16154
|
if (node === void 0) {
|
|
@@ -16235,17 +16169,17 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16235
16169
|
if (isPrivateIdentifier(node)) {
|
|
16236
16170
|
return clonePrivateIdentifier(node);
|
|
16237
16171
|
}
|
|
16238
|
-
const
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
setOriginal(
|
|
16172
|
+
const clone = !isNodeKind(node.kind) ? baseFactory2.createBaseTokenNode(node.kind) : baseFactory2.createBaseNode(node.kind);
|
|
16173
|
+
clone.flags |= node.flags & ~16 /* Synthesized */;
|
|
16174
|
+
clone.transformFlags = node.transformFlags;
|
|
16175
|
+
setOriginal(clone, node);
|
|
16242
16176
|
for (const key in node) {
|
|
16243
|
-
if (hasProperty(
|
|
16177
|
+
if (hasProperty(clone, key) || !hasProperty(node, key)) {
|
|
16244
16178
|
continue;
|
|
16245
16179
|
}
|
|
16246
|
-
|
|
16180
|
+
clone[key] = node[key];
|
|
16247
16181
|
}
|
|
16248
|
-
return
|
|
16182
|
+
return clone;
|
|
16249
16183
|
}
|
|
16250
16184
|
function createImmediatelyInvokedFunctionExpression(statements, param, paramValue) {
|
|
16251
16185
|
return createCallExpression(
|
|
@@ -16417,7 +16351,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16417
16351
|
return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
|
|
16418
16352
|
case 235 /* NonNullExpression */:
|
|
16419
16353
|
return updateNonNullExpression(outerExpression, expression);
|
|
16420
|
-
case
|
|
16354
|
+
case 353 /* PartiallyEmittedExpression */:
|
|
16421
16355
|
return updatePartiallyEmittedExpression(outerExpression, expression);
|
|
16422
16356
|
}
|
|
16423
16357
|
}
|
|
@@ -16789,43 +16723,43 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16789
16723
|
}
|
|
16790
16724
|
function getDefaultTagNameForKind(kind) {
|
|
16791
16725
|
switch (kind) {
|
|
16792
|
-
case
|
|
16726
|
+
case 344 /* JSDocTypeTag */:
|
|
16793
16727
|
return "type";
|
|
16794
|
-
case
|
|
16728
|
+
case 342 /* JSDocReturnTag */:
|
|
16795
16729
|
return "returns";
|
|
16796
|
-
case
|
|
16730
|
+
case 343 /* JSDocThisTag */:
|
|
16797
16731
|
return "this";
|
|
16798
|
-
case
|
|
16732
|
+
case 340 /* JSDocEnumTag */:
|
|
16799
16733
|
return "enum";
|
|
16800
|
-
case
|
|
16734
|
+
case 330 /* JSDocAuthorTag */:
|
|
16801
16735
|
return "author";
|
|
16802
|
-
case
|
|
16736
|
+
case 332 /* JSDocClassTag */:
|
|
16803
16737
|
return "class";
|
|
16804
|
-
case
|
|
16738
|
+
case 333 /* JSDocPublicTag */:
|
|
16805
16739
|
return "public";
|
|
16806
|
-
case
|
|
16740
|
+
case 334 /* JSDocPrivateTag */:
|
|
16807
16741
|
return "private";
|
|
16808
|
-
case
|
|
16742
|
+
case 335 /* JSDocProtectedTag */:
|
|
16809
16743
|
return "protected";
|
|
16810
|
-
case
|
|
16744
|
+
case 336 /* JSDocReadonlyTag */:
|
|
16811
16745
|
return "readonly";
|
|
16812
|
-
case
|
|
16746
|
+
case 337 /* JSDocOverrideTag */:
|
|
16813
16747
|
return "override";
|
|
16814
|
-
case
|
|
16748
|
+
case 345 /* JSDocTemplateTag */:
|
|
16815
16749
|
return "template";
|
|
16816
|
-
case
|
|
16750
|
+
case 346 /* JSDocTypedefTag */:
|
|
16817
16751
|
return "typedef";
|
|
16818
|
-
case
|
|
16752
|
+
case 341 /* JSDocParameterTag */:
|
|
16819
16753
|
return "param";
|
|
16820
|
-
case
|
|
16754
|
+
case 348 /* JSDocPropertyTag */:
|
|
16821
16755
|
return "prop";
|
|
16822
|
-
case
|
|
16756
|
+
case 338 /* JSDocCallbackTag */:
|
|
16823
16757
|
return "callback";
|
|
16824
|
-
case
|
|
16758
|
+
case 339 /* JSDocOverloadTag */:
|
|
16825
16759
|
return "overload";
|
|
16826
|
-
case
|
|
16760
|
+
case 328 /* JSDocAugmentsTag */:
|
|
16827
16761
|
return "augments";
|
|
16828
|
-
case
|
|
16762
|
+
case 329 /* JSDocImplementsTag */:
|
|
16829
16763
|
return "implements";
|
|
16830
16764
|
default:
|
|
16831
16765
|
return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
|
|
@@ -16967,7 +16901,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
|
|
|
16967
16901
|
case 216 /* TypeAssertionExpression */:
|
|
16968
16902
|
case 238 /* SatisfiesExpression */:
|
|
16969
16903
|
case 234 /* AsExpression */:
|
|
16970
|
-
case
|
|
16904
|
+
case 353 /* PartiallyEmittedExpression */:
|
|
16971
16905
|
case 217 /* ParenthesizedExpression */:
|
|
16972
16906
|
case 108 /* SuperKeyword */:
|
|
16973
16907
|
return -2147483648 /* OuterExpressionExcludes */;
|
|
@@ -17076,7 +17010,7 @@ function mergeTokenSourceMapRanges(sourceRanges, destRanges) {
|
|
|
17076
17010
|
function getOrCreateEmitNode(node) {
|
|
17077
17011
|
if (!node.emitNode) {
|
|
17078
17012
|
if (isParseTreeNode(node)) {
|
|
17079
|
-
if (node.kind ===
|
|
17013
|
+
if (node.kind === 307 /* SourceFile */) {
|
|
17080
17014
|
return node.emitNode = { annotatedNodes: [node] };
|
|
17081
17015
|
}
|
|
17082
17016
|
const sourceFile = getSourceFileOfNode(getParseTreeNode(getSourceFileOfNode(node))) ?? Debug.fail("Could not determine parsed source file.");
|
|
@@ -17411,7 +17345,7 @@ function isMetaProperty(node) {
|
|
|
17411
17345
|
return node.kind === 236 /* MetaProperty */;
|
|
17412
17346
|
}
|
|
17413
17347
|
function isCommaListExpression(node) {
|
|
17414
|
-
return node.kind ===
|
|
17348
|
+
return node.kind === 354 /* CommaListExpression */;
|
|
17415
17349
|
}
|
|
17416
17350
|
function isTemplateSpan(node) {
|
|
17417
17351
|
return node.kind === 239 /* TemplateSpan */;
|
|
@@ -17486,7 +17420,7 @@ function isExportSpecifier(node) {
|
|
|
17486
17420
|
return node.kind === 281 /* ExportSpecifier */;
|
|
17487
17421
|
}
|
|
17488
17422
|
function isNotEmittedStatement(node) {
|
|
17489
|
-
return node.kind ===
|
|
17423
|
+
return node.kind === 352 /* NotEmittedStatement */;
|
|
17490
17424
|
}
|
|
17491
17425
|
function isExternalModuleReference(node) {
|
|
17492
17426
|
return node.kind === 283 /* ExternalModuleReference */;
|
|
@@ -17525,55 +17459,55 @@ function isEnumMember(node) {
|
|
|
17525
17459
|
return node.kind === 306 /* EnumMember */;
|
|
17526
17460
|
}
|
|
17527
17461
|
function isSourceFile(node) {
|
|
17528
|
-
return node.kind ===
|
|
17462
|
+
return node.kind === 307 /* SourceFile */;
|
|
17529
17463
|
}
|
|
17530
17464
|
function isJSDocTypeExpression(node) {
|
|
17531
|
-
return node.kind ===
|
|
17465
|
+
return node.kind === 309 /* JSDocTypeExpression */;
|
|
17532
17466
|
}
|
|
17533
17467
|
function isJSDocNullableType(node) {
|
|
17534
|
-
return node.kind ===
|
|
17468
|
+
return node.kind === 314 /* JSDocNullableType */;
|
|
17535
17469
|
}
|
|
17536
17470
|
function isJSDocFunctionType(node) {
|
|
17537
|
-
return node.kind ===
|
|
17471
|
+
return node.kind === 317 /* JSDocFunctionType */;
|
|
17538
17472
|
}
|
|
17539
17473
|
function isJSDoc(node) {
|
|
17540
|
-
return node.kind ===
|
|
17474
|
+
return node.kind === 320 /* JSDoc */;
|
|
17541
17475
|
}
|
|
17542
17476
|
function isJSDocPublicTag(node) {
|
|
17543
|
-
return node.kind ===
|
|
17477
|
+
return node.kind === 333 /* JSDocPublicTag */;
|
|
17544
17478
|
}
|
|
17545
17479
|
function isJSDocPrivateTag(node) {
|
|
17546
|
-
return node.kind ===
|
|
17480
|
+
return node.kind === 334 /* JSDocPrivateTag */;
|
|
17547
17481
|
}
|
|
17548
17482
|
function isJSDocProtectedTag(node) {
|
|
17549
|
-
return node.kind ===
|
|
17483
|
+
return node.kind === 335 /* JSDocProtectedTag */;
|
|
17550
17484
|
}
|
|
17551
17485
|
function isJSDocReadonlyTag(node) {
|
|
17552
|
-
return node.kind ===
|
|
17486
|
+
return node.kind === 336 /* JSDocReadonlyTag */;
|
|
17553
17487
|
}
|
|
17554
17488
|
function isJSDocOverrideTag(node) {
|
|
17555
|
-
return node.kind ===
|
|
17489
|
+
return node.kind === 337 /* JSDocOverrideTag */;
|
|
17556
17490
|
}
|
|
17557
17491
|
function isJSDocOverloadTag(node) {
|
|
17558
|
-
return node.kind ===
|
|
17492
|
+
return node.kind === 339 /* JSDocOverloadTag */;
|
|
17559
17493
|
}
|
|
17560
17494
|
function isJSDocDeprecatedTag(node) {
|
|
17561
|
-
return node.kind ===
|
|
17495
|
+
return node.kind === 331 /* JSDocDeprecatedTag */;
|
|
17562
17496
|
}
|
|
17563
17497
|
function isJSDocParameterTag(node) {
|
|
17564
|
-
return node.kind ===
|
|
17498
|
+
return node.kind === 341 /* JSDocParameterTag */;
|
|
17565
17499
|
}
|
|
17566
17500
|
function isJSDocReturnTag(node) {
|
|
17567
|
-
return node.kind ===
|
|
17501
|
+
return node.kind === 342 /* JSDocReturnTag */;
|
|
17568
17502
|
}
|
|
17569
17503
|
function isJSDocTypeTag(node) {
|
|
17570
|
-
return node.kind ===
|
|
17504
|
+
return node.kind === 344 /* JSDocTypeTag */;
|
|
17571
17505
|
}
|
|
17572
17506
|
function isJSDocTemplateTag(node) {
|
|
17573
|
-
return node.kind ===
|
|
17507
|
+
return node.kind === 345 /* JSDocTemplateTag */;
|
|
17574
17508
|
}
|
|
17575
17509
|
function isJSDocSatisfiesTag(node) {
|
|
17576
|
-
return node.kind ===
|
|
17510
|
+
return node.kind === 350 /* JSDocSatisfiesTag */;
|
|
17577
17511
|
}
|
|
17578
17512
|
|
|
17579
17513
|
// src/compiler/factory/utilities.ts
|
|
@@ -17618,7 +17552,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
|
|
|
17618
17552
|
return (kinds & 2 /* TypeAssertions */) !== 0;
|
|
17619
17553
|
case 235 /* NonNullExpression */:
|
|
17620
17554
|
return (kinds & 4 /* NonNullAssertions */) !== 0;
|
|
17621
|
-
case
|
|
17555
|
+
case 353 /* PartiallyEmittedExpression */:
|
|
17622
17556
|
return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
|
|
17623
17557
|
}
|
|
17624
17558
|
return false;
|
|
@@ -18140,7 +18074,7 @@ var forEachChildTable = {
|
|
|
18140
18074
|
},
|
|
18141
18075
|
[241 /* Block */]: forEachChildInBlock,
|
|
18142
18076
|
[268 /* ModuleBlock */]: forEachChildInBlock,
|
|
18143
|
-
[
|
|
18077
|
+
[307 /* SourceFile */]: function forEachChildInSourceFile(node, cbNode, cbNodes) {
|
|
18144
18078
|
return visitNodes(cbNode, cbNodes, node.statements) || visitNode2(cbNode, node.endOfFileToken);
|
|
18145
18079
|
},
|
|
18146
18080
|
[243 /* VariableStatement */]: function forEachChildInVariableStatement(node, cbNode, cbNodes) {
|
|
@@ -18283,7 +18217,7 @@ var forEachChildTable = {
|
|
|
18283
18217
|
[282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
18284
18218
|
return visitNodes(cbNode, cbNodes, node.modifiers);
|
|
18285
18219
|
},
|
|
18286
|
-
[
|
|
18220
|
+
[354 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
18287
18221
|
return visitNodes(cbNode, cbNodes, node.elements);
|
|
18288
18222
|
},
|
|
18289
18223
|
[284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
@@ -18314,71 +18248,71 @@ var forEachChildTable = {
|
|
|
18314
18248
|
},
|
|
18315
18249
|
[190 /* OptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18316
18250
|
[191 /* RestType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18317
|
-
[
|
|
18318
|
-
[
|
|
18319
|
-
[
|
|
18320
|
-
[
|
|
18321
|
-
[
|
|
18322
|
-
[
|
|
18251
|
+
[309 /* JSDocTypeExpression */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18252
|
+
[315 /* JSDocNonNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18253
|
+
[314 /* JSDocNullableType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18254
|
+
[316 /* JSDocOptionalType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18255
|
+
[318 /* JSDocVariadicType */]: forEachChildInOptionalRestOrJSDocParameterModifier,
|
|
18256
|
+
[317 /* JSDocFunctionType */]: function forEachChildInJSDocFunctionType(node, cbNode, cbNodes) {
|
|
18323
18257
|
return visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
|
|
18324
18258
|
},
|
|
18325
|
-
[
|
|
18259
|
+
[320 /* JSDoc */]: function forEachChildInJSDoc(node, cbNode, cbNodes) {
|
|
18326
18260
|
return (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) || visitNodes(cbNode, cbNodes, node.tags);
|
|
18327
18261
|
},
|
|
18328
|
-
[
|
|
18262
|
+
[347 /* JSDocSeeTag */]: function forEachChildInJSDocSeeTag(node, cbNode, cbNodes) {
|
|
18329
18263
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.name) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18330
18264
|
},
|
|
18331
|
-
[
|
|
18265
|
+
[310 /* JSDocNameReference */]: function forEachChildInJSDocNameReference(node, cbNode, _cbNodes) {
|
|
18332
18266
|
return visitNode2(cbNode, node.name);
|
|
18333
18267
|
},
|
|
18334
|
-
[
|
|
18268
|
+
[311 /* JSDocMemberName */]: function forEachChildInJSDocMemberName(node, cbNode, _cbNodes) {
|
|
18335
18269
|
return visitNode2(cbNode, node.left) || visitNode2(cbNode, node.right);
|
|
18336
18270
|
},
|
|
18337
|
-
[
|
|
18338
|
-
[
|
|
18339
|
-
[
|
|
18271
|
+
[341 /* JSDocParameterTag */]: forEachChildInJSDocParameterOrPropertyTag,
|
|
18272
|
+
[348 /* JSDocPropertyTag */]: forEachChildInJSDocParameterOrPropertyTag,
|
|
18273
|
+
[330 /* JSDocAuthorTag */]: function forEachChildInJSDocAuthorTag(node, cbNode, cbNodes) {
|
|
18340
18274
|
return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18341
18275
|
},
|
|
18342
|
-
[
|
|
18276
|
+
[329 /* JSDocImplementsTag */]: function forEachChildInJSDocImplementsTag(node, cbNode, cbNodes) {
|
|
18343
18277
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18344
18278
|
},
|
|
18345
|
-
[
|
|
18279
|
+
[328 /* JSDocAugmentsTag */]: function forEachChildInJSDocAugmentsTag(node, cbNode, cbNodes) {
|
|
18346
18280
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.class) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18347
18281
|
},
|
|
18348
|
-
[
|
|
18282
|
+
[345 /* JSDocTemplateTag */]: function forEachChildInJSDocTemplateTag(node, cbNode, cbNodes) {
|
|
18349
18283
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.constraint) || visitNodes(cbNode, cbNodes, node.typeParameters) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18350
18284
|
},
|
|
18351
|
-
[
|
|
18352
|
-
return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind ===
|
|
18285
|
+
[346 /* JSDocTypedefTag */]: function forEachChildInJSDocTypedefTag(node, cbNode, cbNodes) {
|
|
18286
|
+
return visitNode2(cbNode, node.tagName) || (node.typeExpression && node.typeExpression.kind === 309 /* JSDocTypeExpression */ ? visitNode2(cbNode, node.typeExpression) || visitNode2(cbNode, node.fullName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)) : visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment)));
|
|
18353
18287
|
},
|
|
18354
|
-
[
|
|
18288
|
+
[338 /* JSDocCallbackTag */]: function forEachChildInJSDocCallbackTag(node, cbNode, cbNodes) {
|
|
18355
18289
|
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.fullName) || visitNode2(cbNode, node.typeExpression) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18356
18290
|
},
|
|
18357
|
-
[
|
|
18358
|
-
[
|
|
18359
|
-
[
|
|
18360
|
-
[
|
|
18361
|
-
[
|
|
18362
|
-
[
|
|
18363
|
-
[
|
|
18364
|
-
[
|
|
18291
|
+
[342 /* JSDocReturnTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18292
|
+
[344 /* JSDocTypeTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18293
|
+
[343 /* JSDocThisTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18294
|
+
[340 /* JSDocEnumTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18295
|
+
[350 /* JSDocSatisfiesTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18296
|
+
[349 /* JSDocThrowsTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18297
|
+
[339 /* JSDocOverloadTag */]: forEachChildInJSDocTypeLikeTag,
|
|
18298
|
+
[323 /* JSDocSignature */]: function forEachChildInJSDocSignature(node, cbNode, _cbNodes) {
|
|
18365
18299
|
return forEach(node.typeParameters, cbNode) || forEach(node.parameters, cbNode) || visitNode2(cbNode, node.type);
|
|
18366
18300
|
},
|
|
18367
|
-
[
|
|
18368
|
-
[
|
|
18369
|
-
[
|
|
18370
|
-
[
|
|
18301
|
+
[324 /* JSDocLink */]: forEachChildInJSDocLinkCodeOrPlain,
|
|
18302
|
+
[325 /* JSDocLinkCode */]: forEachChildInJSDocLinkCodeOrPlain,
|
|
18303
|
+
[326 /* JSDocLinkPlain */]: forEachChildInJSDocLinkCodeOrPlain,
|
|
18304
|
+
[322 /* JSDocTypeLiteral */]: function forEachChildInJSDocTypeLiteral(node, cbNode, _cbNodes) {
|
|
18371
18305
|
return forEach(node.jsDocPropertyTags, cbNode);
|
|
18372
18306
|
},
|
|
18373
|
-
[
|
|
18374
|
-
[
|
|
18375
|
-
[
|
|
18376
|
-
[
|
|
18377
|
-
[
|
|
18378
|
-
[
|
|
18379
|
-
[
|
|
18380
|
-
[
|
|
18381
|
-
[
|
|
18307
|
+
[327 /* JSDocTag */]: forEachChildInJSDocTag,
|
|
18308
|
+
[332 /* JSDocClassTag */]: forEachChildInJSDocTag,
|
|
18309
|
+
[333 /* JSDocPublicTag */]: forEachChildInJSDocTag,
|
|
18310
|
+
[334 /* JSDocPrivateTag */]: forEachChildInJSDocTag,
|
|
18311
|
+
[335 /* JSDocProtectedTag */]: forEachChildInJSDocTag,
|
|
18312
|
+
[336 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
|
|
18313
|
+
[331 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
|
|
18314
|
+
[337 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
|
|
18315
|
+
[353 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
|
|
18382
18316
|
};
|
|
18383
18317
|
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
18384
18318
|
return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
|
|
@@ -24840,9 +24774,9 @@ var Parser;
|
|
|
24840
24774
|
let child;
|
|
24841
24775
|
let children;
|
|
24842
24776
|
while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent3, name))) {
|
|
24843
|
-
if (child.kind ===
|
|
24777
|
+
if (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) {
|
|
24844
24778
|
children = append(children, child);
|
|
24845
|
-
} else if (child.kind ===
|
|
24779
|
+
} else if (child.kind === 345 /* JSDocTemplateTag */) {
|
|
24846
24780
|
parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);
|
|
24847
24781
|
}
|
|
24848
24782
|
}
|
|
@@ -24982,11 +24916,11 @@ var Parser;
|
|
|
24982
24916
|
let jsDocPropertyTags;
|
|
24983
24917
|
let hasChildren = false;
|
|
24984
24918
|
while (child = tryParse(() => parseChildPropertyTag(indent3))) {
|
|
24985
|
-
if (child.kind ===
|
|
24919
|
+
if (child.kind === 345 /* JSDocTemplateTag */) {
|
|
24986
24920
|
break;
|
|
24987
24921
|
}
|
|
24988
24922
|
hasChildren = true;
|
|
24989
|
-
if (child.kind ===
|
|
24923
|
+
if (child.kind === 344 /* JSDocTypeTag */) {
|
|
24990
24924
|
if (childTypeTag) {
|
|
24991
24925
|
const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
|
|
24992
24926
|
if (lastError) {
|
|
@@ -25044,7 +24978,7 @@ var Parser;
|
|
|
25044
24978
|
let child;
|
|
25045
24979
|
let parameters;
|
|
25046
24980
|
while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent3))) {
|
|
25047
|
-
if (child.kind ===
|
|
24981
|
+
if (child.kind === 345 /* JSDocTemplateTag */) {
|
|
25048
24982
|
parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);
|
|
25049
24983
|
break;
|
|
25050
24984
|
}
|
|
@@ -25057,7 +24991,7 @@ var Parser;
|
|
|
25057
24991
|
const returnTag = tryParse(() => {
|
|
25058
24992
|
if (parseOptionalJsdoc(60 /* AtToken */)) {
|
|
25059
24993
|
const tag = parseTag(indent3);
|
|
25060
|
-
if (tag && tag.kind ===
|
|
24994
|
+
if (tag && tag.kind === 342 /* JSDocReturnTag */) {
|
|
25061
24995
|
return tag;
|
|
25062
24996
|
}
|
|
25063
24997
|
}
|
|
@@ -25112,7 +25046,7 @@ var Parser;
|
|
|
25112
25046
|
case 60 /* AtToken */:
|
|
25113
25047
|
if (canParseTag) {
|
|
25114
25048
|
const child = tryParseChildTag(target, indent3);
|
|
25115
|
-
if (child && (child.kind ===
|
|
25049
|
+
if (child && (child.kind === 341 /* JSDocParameterTag */ || child.kind === 348 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
|
|
25116
25050
|
return false;
|
|
25117
25051
|
}
|
|
25118
25052
|
return child;
|
|
@@ -26489,7 +26423,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26489
26423
|
affectsEmit: true,
|
|
26490
26424
|
affectsSemanticDiagnostics: true,
|
|
26491
26425
|
affectsBuildInfo: true,
|
|
26492
|
-
category: Diagnostics.
|
|
26426
|
+
category: Diagnostics.Backwards_Compatibility,
|
|
26493
26427
|
description: Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,
|
|
26494
26428
|
defaultValueDescription: 0 /* Remove */
|
|
26495
26429
|
},
|
|
@@ -26513,6 +26447,9 @@ var commandOptionsWithoutBuild = [
|
|
|
26513
26447
|
{
|
|
26514
26448
|
name: "verbatimModuleSyntax",
|
|
26515
26449
|
type: "boolean",
|
|
26450
|
+
affectsEmit: true,
|
|
26451
|
+
affectsSemanticDiagnostics: true,
|
|
26452
|
+
affectsBuildInfo: true,
|
|
26516
26453
|
category: Diagnostics.Interop_Constraints,
|
|
26517
26454
|
description: Diagnostics.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,
|
|
26518
26455
|
defaultValueDescription: false
|
|
@@ -27213,7 +27150,7 @@ var commandOptionsWithoutBuild = [
|
|
|
27213
27150
|
type: "boolean",
|
|
27214
27151
|
affectsEmit: true,
|
|
27215
27152
|
affectsBuildInfo: true,
|
|
27216
|
-
category: Diagnostics.
|
|
27153
|
+
category: Diagnostics.Backwards_Compatibility,
|
|
27217
27154
|
description: Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,
|
|
27218
27155
|
defaultValueDescription: false
|
|
27219
27156
|
},
|
|
@@ -30796,20 +30733,20 @@ var visitEachChildTable = {
|
|
|
30796
30733
|
);
|
|
30797
30734
|
},
|
|
30798
30735
|
// Top-level nodes
|
|
30799
|
-
[
|
|
30736
|
+
[307 /* SourceFile */]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
30800
30737
|
return context.factory.updateSourceFile(
|
|
30801
30738
|
node,
|
|
30802
30739
|
visitLexicalEnvironment(node.statements, visitor, context)
|
|
30803
30740
|
);
|
|
30804
30741
|
},
|
|
30805
30742
|
// Transformation nodes
|
|
30806
|
-
[
|
|
30743
|
+
[353 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
30807
30744
|
return context.factory.updatePartiallyEmittedExpression(
|
|
30808
30745
|
node,
|
|
30809
30746
|
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
30810
30747
|
);
|
|
30811
30748
|
},
|
|
30812
|
-
[
|
|
30749
|
+
[354 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
30813
30750
|
return context.factory.updateCommaListExpression(
|
|
30814
30751
|
node,
|
|
30815
30752
|
nodesVisitor(node.elements, visitor, isExpression)
|
|
@@ -31390,7 +31327,7 @@ var BuilderState;
|
|
|
31390
31327
|
var _a, _b, _c;
|
|
31391
31328
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
31392
31329
|
const options = newProgram.getCompilerOptions();
|
|
31393
|
-
const isOutFile = outFile
|
|
31330
|
+
const isOutFile = options.outFile;
|
|
31394
31331
|
const referencedMap = options.module !== 0 /* None */ && !isOutFile ? createManyToManyPathMap() : void 0;
|
|
31395
31332
|
const exportedModulesMap = referencedMap ? createManyToManyPathMap() : void 0;
|
|
31396
31333
|
const useOldState = canReuseOldState(referencedMap, oldState);
|
|
@@ -31546,7 +31483,7 @@ var BuilderState;
|
|
|
31546
31483
|
BuilderState2.getExportedModules = getExportedModules;
|
|
31547
31484
|
function getAllDependencies(state, programOfThisState, sourceFile) {
|
|
31548
31485
|
const compilerOptions = programOfThisState.getCompilerOptions();
|
|
31549
|
-
if (outFile
|
|
31486
|
+
if (compilerOptions.outFile) {
|
|
31550
31487
|
return getAllFileNames(state, programOfThisState);
|
|
31551
31488
|
}
|
|
31552
31489
|
if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {
|
|
@@ -31621,7 +31558,7 @@ var BuilderState;
|
|
|
31621
31558
|
BuilderState2.getAllFilesExcludingDefaultLibraryFile = getAllFilesExcludingDefaultLibraryFile;
|
|
31622
31559
|
function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape) {
|
|
31623
31560
|
const compilerOptions = programOfThisState.getCompilerOptions();
|
|
31624
|
-
if (compilerOptions && outFile
|
|
31561
|
+
if (compilerOptions && compilerOptions.outFile) {
|
|
31625
31562
|
return [sourceFileWithUpdatedShape];
|
|
31626
31563
|
}
|
|
31627
31564
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
@@ -31631,7 +31568,7 @@ var BuilderState;
|
|
|
31631
31568
|
return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);
|
|
31632
31569
|
}
|
|
31633
31570
|
const compilerOptions = programOfThisState.getCompilerOptions();
|
|
31634
|
-
if (compilerOptions && (getIsolatedModules(compilerOptions) || outFile
|
|
31571
|
+
if (compilerOptions && (getIsolatedModules(compilerOptions) || compilerOptions.outFile)) {
|
|
31635
31572
|
return [sourceFileWithUpdatedShape];
|
|
31636
31573
|
}
|
|
31637
31574
|
const seenFileNamesMap = /* @__PURE__ */ new Map();
|