@typescript-deploys/pr-build 5.0.0-pr-52667-13 → 5.0.0-pr-52710-9
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/lib.decorators.d.ts +112 -95
- package/lib/tsc.js +585 -133
- package/lib/tsserver.js +607 -146
- package/lib/tsserverlibrary.js +607 -146
- package/lib/typescript.js +607 -146
- package/lib/typingsInstaller.js +37 -11
- package/package.json +1 -1
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.0";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230210`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7466,6 +7466,7 @@ ${lanes.join("\n")}
|
|
|
7466
7466
|
To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module: diag(1483, 3 /* Message */, "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483", 'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),
|
|
7467
7467
|
_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1484, 1 /* Error */, "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484", "'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
7468
7468
|
_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled: diag(1485, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485", "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),
|
|
7469
|
+
Decorator_used_before_export_here: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."),
|
|
7469
7470
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
7470
7471
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
7471
7472
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -8822,7 +8823,7 @@ ${lanes.join("\n")}
|
|
|
8822
8823
|
You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: diag(8035, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035", "You cannot rename elements that are defined in a 'node_modules' folder."),
|
|
8823
8824
|
You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: diag(8036, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036", "You cannot rename elements that are defined in another 'node_modules' folder."),
|
|
8824
8825
|
Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: diag(8037, 1 /* Error */, "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037", "Type satisfaction expressions can only be used in TypeScript files."),
|
|
8825
|
-
|
|
8826
|
+
Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export: diag(8038, 1 /* Error */, "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038", "Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),
|
|
8826
8827
|
Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9005, 1 /* Error */, "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005", "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),
|
|
8827
8828
|
Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9006, 1 /* Error */, "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006", "Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),
|
|
8828
8829
|
JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."),
|
|
@@ -13168,101 +13169,400 @@ ${lanes.join("\n")}
|
|
|
13168
13169
|
return emitNode && emitNode.internalFlags || 0;
|
|
13169
13170
|
}
|
|
13170
13171
|
function getScriptTargetFeatures() {
|
|
13171
|
-
return {
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13213
|
-
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13172
|
+
return new Map(Object.entries({
|
|
13173
|
+
Array: new Map(Object.entries({
|
|
13174
|
+
es2015: [
|
|
13175
|
+
"find",
|
|
13176
|
+
"findIndex",
|
|
13177
|
+
"fill",
|
|
13178
|
+
"copyWithin",
|
|
13179
|
+
"entries",
|
|
13180
|
+
"keys",
|
|
13181
|
+
"values"
|
|
13182
|
+
],
|
|
13183
|
+
es2016: [
|
|
13184
|
+
"includes"
|
|
13185
|
+
],
|
|
13186
|
+
es2019: [
|
|
13187
|
+
"flat",
|
|
13188
|
+
"flatMap"
|
|
13189
|
+
],
|
|
13190
|
+
es2022: [
|
|
13191
|
+
"at"
|
|
13192
|
+
],
|
|
13193
|
+
es2023: [
|
|
13194
|
+
"findLastIndex",
|
|
13195
|
+
"findLast"
|
|
13196
|
+
]
|
|
13197
|
+
})),
|
|
13198
|
+
Iterator: new Map(Object.entries({
|
|
13199
|
+
es2015: emptyArray
|
|
13200
|
+
})),
|
|
13201
|
+
AsyncIterator: new Map(Object.entries({
|
|
13202
|
+
es2015: emptyArray
|
|
13203
|
+
})),
|
|
13204
|
+
Atomics: new Map(Object.entries({
|
|
13205
|
+
es2017: emptyArray
|
|
13206
|
+
})),
|
|
13207
|
+
SharedArrayBuffer: new Map(Object.entries({
|
|
13208
|
+
es2017: emptyArray
|
|
13209
|
+
})),
|
|
13210
|
+
AsyncIterable: new Map(Object.entries({
|
|
13211
|
+
es2018: emptyArray
|
|
13212
|
+
})),
|
|
13213
|
+
AsyncIterableIterator: new Map(Object.entries({
|
|
13214
|
+
es2018: emptyArray
|
|
13215
|
+
})),
|
|
13216
|
+
AsyncGenerator: new Map(Object.entries({
|
|
13217
|
+
es2018: emptyArray
|
|
13218
|
+
})),
|
|
13219
|
+
AsyncGeneratorFunction: new Map(Object.entries({
|
|
13220
|
+
es2018: emptyArray
|
|
13221
|
+
})),
|
|
13222
|
+
RegExp: new Map(Object.entries({
|
|
13223
|
+
es2015: [
|
|
13224
|
+
"flags",
|
|
13225
|
+
"sticky",
|
|
13226
|
+
"unicode"
|
|
13227
|
+
],
|
|
13228
|
+
es2018: [
|
|
13229
|
+
"dotAll"
|
|
13230
|
+
]
|
|
13231
|
+
})),
|
|
13232
|
+
Reflect: new Map(Object.entries({
|
|
13233
|
+
es2015: [
|
|
13234
|
+
"apply",
|
|
13235
|
+
"construct",
|
|
13236
|
+
"defineProperty",
|
|
13237
|
+
"deleteProperty",
|
|
13238
|
+
"get",
|
|
13239
|
+
" getOwnPropertyDescriptor",
|
|
13240
|
+
"getPrototypeOf",
|
|
13241
|
+
"has",
|
|
13242
|
+
"isExtensible",
|
|
13243
|
+
"ownKeys",
|
|
13244
|
+
"preventExtensions",
|
|
13245
|
+
"set",
|
|
13246
|
+
"setPrototypeOf"
|
|
13247
|
+
]
|
|
13248
|
+
})),
|
|
13249
|
+
ArrayConstructor: new Map(Object.entries({
|
|
13250
|
+
es2015: [
|
|
13251
|
+
"from",
|
|
13252
|
+
"of"
|
|
13253
|
+
]
|
|
13254
|
+
})),
|
|
13255
|
+
ObjectConstructor: new Map(Object.entries({
|
|
13256
|
+
es2015: [
|
|
13257
|
+
"assign",
|
|
13258
|
+
"getOwnPropertySymbols",
|
|
13259
|
+
"keys",
|
|
13260
|
+
"is",
|
|
13261
|
+
"setPrototypeOf"
|
|
13262
|
+
],
|
|
13263
|
+
es2017: [
|
|
13264
|
+
"values",
|
|
13265
|
+
"entries",
|
|
13266
|
+
"getOwnPropertyDescriptors"
|
|
13267
|
+
],
|
|
13268
|
+
es2019: [
|
|
13269
|
+
"fromEntries"
|
|
13270
|
+
],
|
|
13271
|
+
es2022: [
|
|
13272
|
+
"hasOwn"
|
|
13273
|
+
]
|
|
13274
|
+
})),
|
|
13275
|
+
NumberConstructor: new Map(Object.entries({
|
|
13276
|
+
es2015: [
|
|
13277
|
+
"isFinite",
|
|
13278
|
+
"isInteger",
|
|
13279
|
+
"isNaN",
|
|
13280
|
+
"isSafeInteger",
|
|
13281
|
+
"parseFloat",
|
|
13282
|
+
"parseInt"
|
|
13283
|
+
]
|
|
13284
|
+
})),
|
|
13285
|
+
Math: new Map(Object.entries({
|
|
13286
|
+
es2015: [
|
|
13287
|
+
"clz32",
|
|
13288
|
+
"imul",
|
|
13289
|
+
"sign",
|
|
13290
|
+
"log10",
|
|
13291
|
+
"log2",
|
|
13292
|
+
"log1p",
|
|
13293
|
+
"expm1",
|
|
13294
|
+
"cosh",
|
|
13295
|
+
"sinh",
|
|
13296
|
+
"tanh",
|
|
13297
|
+
"acosh",
|
|
13298
|
+
"asinh",
|
|
13299
|
+
"atanh",
|
|
13300
|
+
"hypot",
|
|
13301
|
+
"trunc",
|
|
13302
|
+
"fround",
|
|
13303
|
+
"cbrt"
|
|
13304
|
+
]
|
|
13305
|
+
})),
|
|
13306
|
+
Map: new Map(Object.entries({
|
|
13307
|
+
es2015: [
|
|
13308
|
+
"entries",
|
|
13309
|
+
"keys",
|
|
13310
|
+
"values"
|
|
13311
|
+
]
|
|
13312
|
+
})),
|
|
13313
|
+
Set: new Map(Object.entries({
|
|
13314
|
+
es2015: [
|
|
13315
|
+
"entries",
|
|
13316
|
+
"keys",
|
|
13317
|
+
"values"
|
|
13318
|
+
]
|
|
13319
|
+
})),
|
|
13320
|
+
PromiseConstructor: new Map(Object.entries({
|
|
13321
|
+
es2015: [
|
|
13322
|
+
"all",
|
|
13323
|
+
"race",
|
|
13324
|
+
"reject",
|
|
13325
|
+
"resolve"
|
|
13326
|
+
],
|
|
13327
|
+
es2020: [
|
|
13328
|
+
"allSettled"
|
|
13329
|
+
],
|
|
13330
|
+
es2021: [
|
|
13331
|
+
"any"
|
|
13332
|
+
]
|
|
13333
|
+
})),
|
|
13334
|
+
Symbol: new Map(Object.entries({
|
|
13335
|
+
es2015: [
|
|
13336
|
+
"for",
|
|
13337
|
+
"keyFor"
|
|
13338
|
+
],
|
|
13339
|
+
es2019: [
|
|
13340
|
+
"description"
|
|
13341
|
+
]
|
|
13342
|
+
})),
|
|
13343
|
+
WeakMap: new Map(Object.entries({
|
|
13344
|
+
es2015: [
|
|
13345
|
+
"entries",
|
|
13346
|
+
"keys",
|
|
13347
|
+
"values"
|
|
13348
|
+
]
|
|
13349
|
+
})),
|
|
13350
|
+
WeakSet: new Map(Object.entries({
|
|
13351
|
+
es2015: [
|
|
13352
|
+
"entries",
|
|
13353
|
+
"keys",
|
|
13354
|
+
"values"
|
|
13355
|
+
]
|
|
13356
|
+
})),
|
|
13357
|
+
String: new Map(Object.entries({
|
|
13358
|
+
es2015: [
|
|
13359
|
+
"codePointAt",
|
|
13360
|
+
"includes",
|
|
13361
|
+
"endsWith",
|
|
13362
|
+
"normalize",
|
|
13363
|
+
"repeat",
|
|
13364
|
+
"startsWith",
|
|
13365
|
+
"anchor",
|
|
13366
|
+
"big",
|
|
13367
|
+
"blink",
|
|
13368
|
+
"bold",
|
|
13369
|
+
"fixed",
|
|
13370
|
+
"fontcolor",
|
|
13371
|
+
"fontsize",
|
|
13372
|
+
"italics",
|
|
13373
|
+
"link",
|
|
13374
|
+
"small",
|
|
13375
|
+
"strike",
|
|
13376
|
+
"sub",
|
|
13377
|
+
"sup"
|
|
13378
|
+
],
|
|
13379
|
+
es2017: [
|
|
13380
|
+
"padStart",
|
|
13381
|
+
"padEnd"
|
|
13382
|
+
],
|
|
13383
|
+
es2019: [
|
|
13384
|
+
"trimStart",
|
|
13385
|
+
"trimEnd",
|
|
13386
|
+
"trimLeft",
|
|
13387
|
+
"trimRight"
|
|
13388
|
+
],
|
|
13389
|
+
es2020: [
|
|
13390
|
+
"matchAll"
|
|
13391
|
+
],
|
|
13392
|
+
es2021: [
|
|
13393
|
+
"replaceAll"
|
|
13394
|
+
],
|
|
13395
|
+
es2022: [
|
|
13396
|
+
"at"
|
|
13397
|
+
]
|
|
13398
|
+
})),
|
|
13399
|
+
StringConstructor: new Map(Object.entries({
|
|
13400
|
+
es2015: [
|
|
13401
|
+
"fromCodePoint",
|
|
13402
|
+
"raw"
|
|
13403
|
+
]
|
|
13404
|
+
})),
|
|
13405
|
+
DateTimeFormat: new Map(Object.entries({
|
|
13406
|
+
es2017: [
|
|
13407
|
+
"formatToParts"
|
|
13408
|
+
]
|
|
13409
|
+
})),
|
|
13410
|
+
Promise: new Map(Object.entries({
|
|
13411
|
+
es2015: emptyArray,
|
|
13412
|
+
es2018: [
|
|
13413
|
+
"finally"
|
|
13414
|
+
]
|
|
13415
|
+
})),
|
|
13416
|
+
RegExpMatchArray: new Map(Object.entries({
|
|
13417
|
+
es2018: [
|
|
13418
|
+
"groups"
|
|
13419
|
+
]
|
|
13420
|
+
})),
|
|
13421
|
+
RegExpExecArray: new Map(Object.entries({
|
|
13422
|
+
es2018: [
|
|
13423
|
+
"groups"
|
|
13424
|
+
]
|
|
13425
|
+
})),
|
|
13426
|
+
Intl: new Map(Object.entries({
|
|
13427
|
+
es2018: [
|
|
13428
|
+
"PluralRules"
|
|
13429
|
+
]
|
|
13430
|
+
})),
|
|
13431
|
+
NumberFormat: new Map(Object.entries({
|
|
13432
|
+
es2018: [
|
|
13433
|
+
"formatToParts"
|
|
13434
|
+
]
|
|
13435
|
+
})),
|
|
13436
|
+
SymbolConstructor: new Map(Object.entries({
|
|
13437
|
+
es2020: [
|
|
13438
|
+
"matchAll"
|
|
13439
|
+
]
|
|
13440
|
+
})),
|
|
13441
|
+
DataView: new Map(Object.entries({
|
|
13442
|
+
es2020: [
|
|
13443
|
+
"setBigInt64",
|
|
13444
|
+
"setBigUint64",
|
|
13445
|
+
"getBigInt64",
|
|
13446
|
+
"getBigUint64"
|
|
13447
|
+
]
|
|
13448
|
+
})),
|
|
13449
|
+
BigInt: new Map(Object.entries({
|
|
13450
|
+
es2020: emptyArray
|
|
13451
|
+
})),
|
|
13452
|
+
RelativeTimeFormat: new Map(Object.entries({
|
|
13453
|
+
es2020: [
|
|
13454
|
+
"format",
|
|
13455
|
+
"formatToParts",
|
|
13456
|
+
"resolvedOptions"
|
|
13457
|
+
]
|
|
13458
|
+
})),
|
|
13459
|
+
Int8Array: new Map(Object.entries({
|
|
13460
|
+
es2022: [
|
|
13461
|
+
"at"
|
|
13462
|
+
],
|
|
13463
|
+
es2023: [
|
|
13464
|
+
"findLastIndex",
|
|
13465
|
+
"findLast"
|
|
13466
|
+
]
|
|
13467
|
+
})),
|
|
13468
|
+
Uint8Array: new Map(Object.entries({
|
|
13469
|
+
es2022: [
|
|
13470
|
+
"at"
|
|
13471
|
+
],
|
|
13472
|
+
es2023: [
|
|
13473
|
+
"findLastIndex",
|
|
13474
|
+
"findLast"
|
|
13475
|
+
]
|
|
13476
|
+
})),
|
|
13477
|
+
Uint8ClampedArray: new Map(Object.entries({
|
|
13478
|
+
es2022: [
|
|
13479
|
+
"at"
|
|
13480
|
+
],
|
|
13481
|
+
es2023: [
|
|
13482
|
+
"findLastIndex",
|
|
13483
|
+
"findLast"
|
|
13484
|
+
]
|
|
13485
|
+
})),
|
|
13486
|
+
Int16Array: new Map(Object.entries({
|
|
13487
|
+
es2022: [
|
|
13488
|
+
"at"
|
|
13489
|
+
],
|
|
13490
|
+
es2023: [
|
|
13491
|
+
"findLastIndex",
|
|
13492
|
+
"findLast"
|
|
13493
|
+
]
|
|
13494
|
+
})),
|
|
13495
|
+
Uint16Array: new Map(Object.entries({
|
|
13496
|
+
es2022: [
|
|
13497
|
+
"at"
|
|
13498
|
+
],
|
|
13499
|
+
es2023: [
|
|
13500
|
+
"findLastIndex",
|
|
13501
|
+
"findLast"
|
|
13502
|
+
]
|
|
13503
|
+
})),
|
|
13504
|
+
Int32Array: new Map(Object.entries({
|
|
13505
|
+
es2022: [
|
|
13506
|
+
"at"
|
|
13507
|
+
],
|
|
13508
|
+
es2023: [
|
|
13509
|
+
"findLastIndex",
|
|
13510
|
+
"findLast"
|
|
13511
|
+
]
|
|
13512
|
+
})),
|
|
13513
|
+
Uint32Array: new Map(Object.entries({
|
|
13514
|
+
es2022: [
|
|
13515
|
+
"at"
|
|
13516
|
+
],
|
|
13517
|
+
es2023: [
|
|
13518
|
+
"findLastIndex",
|
|
13519
|
+
"findLast"
|
|
13520
|
+
]
|
|
13521
|
+
})),
|
|
13522
|
+
Float32Array: new Map(Object.entries({
|
|
13523
|
+
es2022: [
|
|
13524
|
+
"at"
|
|
13525
|
+
],
|
|
13526
|
+
es2023: [
|
|
13527
|
+
"findLastIndex",
|
|
13528
|
+
"findLast"
|
|
13529
|
+
]
|
|
13530
|
+
})),
|
|
13531
|
+
Float64Array: new Map(Object.entries({
|
|
13532
|
+
es2022: [
|
|
13533
|
+
"at"
|
|
13534
|
+
],
|
|
13535
|
+
es2023: [
|
|
13536
|
+
"findLastIndex",
|
|
13537
|
+
"findLast"
|
|
13538
|
+
]
|
|
13539
|
+
})),
|
|
13540
|
+
BigInt64Array: new Map(Object.entries({
|
|
13541
|
+
es2020: emptyArray,
|
|
13542
|
+
es2022: [
|
|
13543
|
+
"at"
|
|
13544
|
+
],
|
|
13545
|
+
es2023: [
|
|
13546
|
+
"findLastIndex",
|
|
13547
|
+
"findLast"
|
|
13548
|
+
]
|
|
13549
|
+
})),
|
|
13550
|
+
BigUint64Array: new Map(Object.entries({
|
|
13551
|
+
es2020: emptyArray,
|
|
13552
|
+
es2022: [
|
|
13553
|
+
"at"
|
|
13554
|
+
],
|
|
13555
|
+
es2023: [
|
|
13556
|
+
"findLastIndex",
|
|
13557
|
+
"findLast"
|
|
13558
|
+
]
|
|
13559
|
+
})),
|
|
13560
|
+
Error: new Map(Object.entries({
|
|
13561
|
+
es2022: [
|
|
13562
|
+
"cause"
|
|
13563
|
+
]
|
|
13564
|
+
}))
|
|
13565
|
+
}));
|
|
13266
13566
|
}
|
|
13267
13567
|
function getLiteralText(node, sourceFile, flags) {
|
|
13268
13568
|
var _a2;
|
|
@@ -24552,14 +24852,114 @@ ${lanes.join("\n")}
|
|
|
24552
24852
|
factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name)
|
|
24553
24853
|
]);
|
|
24554
24854
|
}
|
|
24855
|
+
function createESDecorateClassElementAccessGetMethod(elementName) {
|
|
24856
|
+
const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name);
|
|
24857
|
+
return factory2.createPropertyAssignment(
|
|
24858
|
+
"get",
|
|
24859
|
+
factory2.createArrowFunction(
|
|
24860
|
+
/*modifiers*/
|
|
24861
|
+
void 0,
|
|
24862
|
+
/*typeParameters*/
|
|
24863
|
+
void 0,
|
|
24864
|
+
[factory2.createParameterDeclaration(
|
|
24865
|
+
/*modifiers*/
|
|
24866
|
+
void 0,
|
|
24867
|
+
/*dotDotDotToken*/
|
|
24868
|
+
void 0,
|
|
24869
|
+
factory2.createIdentifier("obj")
|
|
24870
|
+
)],
|
|
24871
|
+
/*type*/
|
|
24872
|
+
void 0,
|
|
24873
|
+
/*equalsGreaterThanToken*/
|
|
24874
|
+
void 0,
|
|
24875
|
+
accessor
|
|
24876
|
+
)
|
|
24877
|
+
);
|
|
24878
|
+
}
|
|
24879
|
+
function createESDecorateClassElementAccessSetMethod(elementName) {
|
|
24880
|
+
const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name);
|
|
24881
|
+
return factory2.createPropertyAssignment(
|
|
24882
|
+
"set",
|
|
24883
|
+
factory2.createArrowFunction(
|
|
24884
|
+
/*modifiers*/
|
|
24885
|
+
void 0,
|
|
24886
|
+
/*typeParameters*/
|
|
24887
|
+
void 0,
|
|
24888
|
+
[
|
|
24889
|
+
factory2.createParameterDeclaration(
|
|
24890
|
+
/*modifiers*/
|
|
24891
|
+
void 0,
|
|
24892
|
+
/*dotDotDotToken*/
|
|
24893
|
+
void 0,
|
|
24894
|
+
factory2.createIdentifier("obj")
|
|
24895
|
+
),
|
|
24896
|
+
factory2.createParameterDeclaration(
|
|
24897
|
+
/*modifiers*/
|
|
24898
|
+
void 0,
|
|
24899
|
+
/*dotDotDotToken*/
|
|
24900
|
+
void 0,
|
|
24901
|
+
factory2.createIdentifier("value")
|
|
24902
|
+
)
|
|
24903
|
+
],
|
|
24904
|
+
/*type*/
|
|
24905
|
+
void 0,
|
|
24906
|
+
/*equalsGreaterThanToken*/
|
|
24907
|
+
void 0,
|
|
24908
|
+
factory2.createBlock([
|
|
24909
|
+
factory2.createExpressionStatement(
|
|
24910
|
+
factory2.createAssignment(
|
|
24911
|
+
accessor,
|
|
24912
|
+
factory2.createIdentifier("value")
|
|
24913
|
+
)
|
|
24914
|
+
)
|
|
24915
|
+
])
|
|
24916
|
+
)
|
|
24917
|
+
);
|
|
24918
|
+
}
|
|
24919
|
+
function createESDecorateClassElementAccessHasMethod(elementName) {
|
|
24920
|
+
const propertyName = elementName.computed ? elementName.name : isIdentifier(elementName.name) ? factory2.createStringLiteralFromNode(elementName.name) : elementName.name;
|
|
24921
|
+
return factory2.createPropertyAssignment(
|
|
24922
|
+
"has",
|
|
24923
|
+
factory2.createArrowFunction(
|
|
24924
|
+
/*modifiers*/
|
|
24925
|
+
void 0,
|
|
24926
|
+
/*typeParameters*/
|
|
24927
|
+
void 0,
|
|
24928
|
+
[factory2.createParameterDeclaration(
|
|
24929
|
+
/*modifiers*/
|
|
24930
|
+
void 0,
|
|
24931
|
+
/*dotDotDotToken*/
|
|
24932
|
+
void 0,
|
|
24933
|
+
factory2.createIdentifier("obj")
|
|
24934
|
+
)],
|
|
24935
|
+
/*type*/
|
|
24936
|
+
void 0,
|
|
24937
|
+
/*equalsGreaterThanToken*/
|
|
24938
|
+
void 0,
|
|
24939
|
+
factory2.createBinaryExpression(
|
|
24940
|
+
propertyName,
|
|
24941
|
+
101 /* InKeyword */,
|
|
24942
|
+
factory2.createIdentifier("obj")
|
|
24943
|
+
)
|
|
24944
|
+
)
|
|
24945
|
+
);
|
|
24946
|
+
}
|
|
24947
|
+
function createESDecorateClassElementAccessObject(name, access) {
|
|
24948
|
+
const properties = [];
|
|
24949
|
+
properties.push(createESDecorateClassElementAccessHasMethod(name));
|
|
24950
|
+
if (access.get)
|
|
24951
|
+
properties.push(createESDecorateClassElementAccessGetMethod(name));
|
|
24952
|
+
if (access.set)
|
|
24953
|
+
properties.push(createESDecorateClassElementAccessSetMethod(name));
|
|
24954
|
+
return factory2.createObjectLiteralExpression(properties);
|
|
24955
|
+
}
|
|
24555
24956
|
function createESDecorateClassElementContextObject(contextIn) {
|
|
24556
24957
|
return factory2.createObjectLiteralExpression([
|
|
24557
24958
|
factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)),
|
|
24558
24959
|
factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)),
|
|
24559
24960
|
factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()),
|
|
24560
|
-
factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse())
|
|
24561
|
-
|
|
24562
|
-
// factory.createPropertyAssignment(factory.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))
|
|
24961
|
+
factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()),
|
|
24962
|
+
factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))
|
|
24563
24963
|
]);
|
|
24564
24964
|
}
|
|
24565
24965
|
function createESDecorateContextObject(contextIn) {
|
|
@@ -29118,8 +29518,13 @@ ${lanes.join("\n")}
|
|
|
29118
29518
|
return tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;
|
|
29119
29519
|
case 14 /* JsxChildren */:
|
|
29120
29520
|
return true;
|
|
29521
|
+
case 25 /* StandaloneJSDoc */:
|
|
29522
|
+
return true;
|
|
29523
|
+
case 26 /* Count */:
|
|
29524
|
+
return Debug.fail("ParsingContext.Count used as a context");
|
|
29525
|
+
default:
|
|
29526
|
+
Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'.");
|
|
29121
29527
|
}
|
|
29122
|
-
return Debug.fail("Non-exhaustive case in 'isListElement'.");
|
|
29123
29528
|
}
|
|
29124
29529
|
function isValidHeritageClauseObjectLiteral() {
|
|
29125
29530
|
Debug.assert(token() === 18 /* OpenBraceToken */);
|
|
@@ -29213,7 +29618,8 @@ ${lanes.join("\n")}
|
|
|
29213
29618
|
return false;
|
|
29214
29619
|
}
|
|
29215
29620
|
function isInSomeParsingContext() {
|
|
29216
|
-
|
|
29621
|
+
Debug.assert(parsingContext, "Missing parsing context");
|
|
29622
|
+
for (let kind = 0; kind < 26 /* Count */; kind++) {
|
|
29217
29623
|
if (parsingContext & 1 << kind) {
|
|
29218
29624
|
if (isListElement2(
|
|
29219
29625
|
kind,
|
|
@@ -29292,6 +29698,7 @@ ${lanes.join("\n")}
|
|
|
29292
29698
|
case 8 /* VariableDeclarations */:
|
|
29293
29699
|
case 17 /* JSDocParameters */:
|
|
29294
29700
|
case 16 /* Parameters */:
|
|
29701
|
+
case 25 /* StandaloneJSDoc */:
|
|
29295
29702
|
return true;
|
|
29296
29703
|
}
|
|
29297
29704
|
return false;
|
|
@@ -29472,7 +29879,9 @@ ${lanes.join("\n")}
|
|
|
29472
29879
|
return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);
|
|
29473
29880
|
case 24 /* AssertEntries */:
|
|
29474
29881
|
return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);
|
|
29475
|
-
case 25 /*
|
|
29882
|
+
case 25 /* StandaloneJSDoc */:
|
|
29883
|
+
return;
|
|
29884
|
+
case 26 /* Count */:
|
|
29476
29885
|
return Debug.fail("ParsingContext.Count used as a context");
|
|
29477
29886
|
default:
|
|
29478
29887
|
Debug.assertNever(context);
|
|
@@ -31254,7 +31663,7 @@ ${lanes.join("\n")}
|
|
|
31254
31663
|
case 114 /* VoidKeyword */:
|
|
31255
31664
|
return parseVoidExpression();
|
|
31256
31665
|
case 29 /* LessThanToken */:
|
|
31257
|
-
if (languageVariant === 1 /* JSX */
|
|
31666
|
+
if (languageVariant === 1 /* JSX */) {
|
|
31258
31667
|
return parseJsxElementOrSelfClosingElementOrFragment(
|
|
31259
31668
|
/*inExpressionContext*/
|
|
31260
31669
|
true
|
|
@@ -31631,7 +32040,7 @@ ${lanes.join("\n")}
|
|
|
31631
32040
|
return finishNode(factory2.createJsxJsxClosingFragment(), pos);
|
|
31632
32041
|
}
|
|
31633
32042
|
function parseTypeAssertion() {
|
|
31634
|
-
Debug.assert(scriptKind === 3 /* TS
|
|
32043
|
+
Debug.assert(scriptKind === 3 /* TS */, "Type assertions should never be parsed outside of TS; they should either be comparisons or JSX.");
|
|
31635
32044
|
const pos = getNodePos();
|
|
31636
32045
|
parseExpected(29 /* LessThanToken */);
|
|
31637
32046
|
const type = parseType();
|
|
@@ -32982,17 +33391,25 @@ ${lanes.join("\n")}
|
|
|
32982
33391
|
function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
|
|
32983
33392
|
const pos = getNodePos();
|
|
32984
33393
|
let list;
|
|
32985
|
-
let modifier, hasSeenStaticModifier = false;
|
|
33394
|
+
let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
|
|
33395
|
+
if (allowDecorators && token() === 59 /* AtToken */) {
|
|
33396
|
+
while (decorator = tryParseDecorator()) {
|
|
33397
|
+
list = append(list, decorator);
|
|
33398
|
+
}
|
|
33399
|
+
}
|
|
32986
33400
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
32987
33401
|
if (modifier.kind === 124 /* StaticKeyword */)
|
|
32988
33402
|
hasSeenStaticModifier = true;
|
|
32989
33403
|
list = append(list, modifier);
|
|
33404
|
+
hasLeadingModifier = true;
|
|
32990
33405
|
}
|
|
32991
|
-
if (allowDecorators && token() === 59 /* AtToken */) {
|
|
32992
|
-
let decorator;
|
|
33406
|
+
if (hasLeadingModifier && allowDecorators && token() === 59 /* AtToken */) {
|
|
32993
33407
|
while (decorator = tryParseDecorator()) {
|
|
32994
33408
|
list = append(list, decorator);
|
|
33409
|
+
hasTrailingDecorator = true;
|
|
32995
33410
|
}
|
|
33411
|
+
}
|
|
33412
|
+
if (hasTrailingDecorator) {
|
|
32996
33413
|
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
|
32997
33414
|
if (modifier.kind === 124 /* StaticKeyword */)
|
|
32998
33415
|
hasSeenStaticModifier = true;
|
|
@@ -33564,7 +33981,8 @@ ${lanes.join("\n")}
|
|
|
33564
33981
|
ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses";
|
|
33565
33982
|
ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers";
|
|
33566
33983
|
ParsingContext2[ParsingContext2["AssertEntries"] = 24] = "AssertEntries";
|
|
33567
|
-
ParsingContext2[ParsingContext2["
|
|
33984
|
+
ParsingContext2[ParsingContext2["StandaloneJSDoc"] = 25] = "StandaloneJSDoc";
|
|
33985
|
+
ParsingContext2[ParsingContext2["Count"] = 26] = "Count";
|
|
33568
33986
|
})(ParsingContext || (ParsingContext = {}));
|
|
33569
33987
|
let Tristate;
|
|
33570
33988
|
((Tristate2) => {
|
|
@@ -33686,6 +34104,13 @@ ${lanes.join("\n")}
|
|
|
33686
34104
|
PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
|
|
33687
34105
|
})(PropertyLikeParse || (PropertyLikeParse = {}));
|
|
33688
34106
|
function parseJSDocCommentWorker(start = 0, length2) {
|
|
34107
|
+
const saveParsingContext = parsingContext;
|
|
34108
|
+
parsingContext |= 1 << 25 /* StandaloneJSDoc */;
|
|
34109
|
+
const jsdoc = parseJSDocCommentWorkerWorker(start, length2);
|
|
34110
|
+
parsingContext = saveParsingContext;
|
|
34111
|
+
return jsdoc;
|
|
34112
|
+
}
|
|
34113
|
+
function parseJSDocCommentWorkerWorker(start, length2) {
|
|
33689
34114
|
const content = sourceText;
|
|
33690
34115
|
const end = length2 === void 0 ? content.length : start + length2;
|
|
33691
34116
|
length2 = end - start;
|
|
@@ -57709,7 +58134,7 @@ ${lanes.join("\n")}
|
|
|
57709
58134
|
}
|
|
57710
58135
|
}
|
|
57711
58136
|
function removeStringLiteralsMatchedByTemplateLiterals(types) {
|
|
57712
|
-
const templates = filter(types, isPatternLiteralType);
|
|
58137
|
+
const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
|
|
57713
58138
|
if (templates.length) {
|
|
57714
58139
|
let i = types.length;
|
|
57715
58140
|
while (i > 0) {
|
|
@@ -66232,10 +66657,12 @@ ${lanes.join("\n")}
|
|
|
66232
66657
|
}
|
|
66233
66658
|
function isConstantReference(node) {
|
|
66234
66659
|
switch (node.kind) {
|
|
66235
|
-
case 79 /* Identifier */:
|
|
66236
|
-
|
|
66237
|
-
|
|
66238
|
-
|
|
66660
|
+
case 79 /* Identifier */:
|
|
66661
|
+
if (!isThisInTypeQuery(node)) {
|
|
66662
|
+
const symbol = getResolvedSymbol(node);
|
|
66663
|
+
return isConstVariable(symbol) || isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol);
|
|
66664
|
+
}
|
|
66665
|
+
break;
|
|
66239
66666
|
case 208 /* PropertyAccessExpression */:
|
|
66240
66667
|
case 209 /* ElementAccessExpression */:
|
|
66241
66668
|
return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);
|
|
@@ -70479,26 +70906,22 @@ ${lanes.join("\n")}
|
|
|
70479
70906
|
function getSuggestedLibForNonExistentName(name) {
|
|
70480
70907
|
const missingName = diagnosticName(name);
|
|
70481
70908
|
const allFeatures = getScriptTargetFeatures();
|
|
70482
|
-
const
|
|
70483
|
-
|
|
70484
|
-
const containingTypes = getOwnKeys(allFeatures[libTarget]);
|
|
70485
|
-
if (containingTypes !== void 0 && contains(containingTypes, missingName)) {
|
|
70486
|
-
return libTarget;
|
|
70487
|
-
}
|
|
70488
|
-
}
|
|
70909
|
+
const typeFeatures = allFeatures.get(missingName);
|
|
70910
|
+
return typeFeatures && firstIterator(typeFeatures.keys());
|
|
70489
70911
|
}
|
|
70490
70912
|
function getSuggestedLibForNonExistentProperty(missingProperty, containingType) {
|
|
70491
70913
|
const container = getApparentType(containingType).symbol;
|
|
70492
70914
|
if (!container) {
|
|
70493
70915
|
return void 0;
|
|
70494
70916
|
}
|
|
70917
|
+
const containingTypeName = symbolName(container);
|
|
70495
70918
|
const allFeatures = getScriptTargetFeatures();
|
|
70496
|
-
const
|
|
70497
|
-
|
|
70498
|
-
const
|
|
70499
|
-
|
|
70500
|
-
|
|
70501
|
-
|
|
70919
|
+
const typeFeatures = allFeatures.get(containingTypeName);
|
|
70920
|
+
if (typeFeatures) {
|
|
70921
|
+
for (const [libTarget, featuresOfType] of typeFeatures) {
|
|
70922
|
+
if (contains(featuresOfType, missingProperty)) {
|
|
70923
|
+
return libTarget;
|
|
70924
|
+
}
|
|
70502
70925
|
}
|
|
70503
70926
|
}
|
|
70504
70927
|
}
|
|
@@ -82956,6 +83379,7 @@ ${lanes.join("\n")}
|
|
|
82956
83379
|
let lastStatic, lastDeclare, lastAsync, lastOverride, firstDecorator;
|
|
82957
83380
|
let flags = 0 /* None */;
|
|
82958
83381
|
let sawExportBeforeDecorators = false;
|
|
83382
|
+
let hasLeadingDecorators = false;
|
|
82959
83383
|
for (const modifier of node.modifiers) {
|
|
82960
83384
|
if (isDecorator(modifier)) {
|
|
82961
83385
|
if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) {
|
|
@@ -82973,8 +83397,22 @@ ${lanes.join("\n")}
|
|
|
82973
83397
|
if (flags & ~(1025 /* ExportDefault */ | 131072 /* Decorator */)) {
|
|
82974
83398
|
return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here);
|
|
82975
83399
|
}
|
|
83400
|
+
if (hasLeadingDecorators && flags & 126975 /* Modifier */) {
|
|
83401
|
+
Debug.assertIsDefined(firstDecorator);
|
|
83402
|
+
const sourceFile = getSourceFileOfNode(modifier);
|
|
83403
|
+
if (!hasParseDiagnostics(sourceFile)) {
|
|
83404
|
+
addRelatedInfo(
|
|
83405
|
+
error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),
|
|
83406
|
+
createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here)
|
|
83407
|
+
);
|
|
83408
|
+
return true;
|
|
83409
|
+
}
|
|
83410
|
+
return false;
|
|
83411
|
+
}
|
|
82976
83412
|
flags |= 131072 /* Decorator */;
|
|
82977
|
-
if (flags &
|
|
83413
|
+
if (!(flags & 126975 /* Modifier */)) {
|
|
83414
|
+
hasLeadingDecorators = true;
|
|
83415
|
+
} else if (flags & 1 /* Export */) {
|
|
82978
83416
|
sawExportBeforeDecorators = true;
|
|
82979
83417
|
}
|
|
82980
83418
|
firstDecorator != null ? firstDecorator : firstDecorator = modifier;
|
|
@@ -116345,11 +116783,19 @@ ${lanes.join("\n")}
|
|
|
116345
116783
|
diagnostics.push(createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));
|
|
116346
116784
|
} else if (isClassDeclaration(parent2)) {
|
|
116347
116785
|
const exportIndex = findIndex(parent2.modifiers, isExportModifier);
|
|
116348
|
-
|
|
116349
|
-
|
|
116350
|
-
|
|
116351
|
-
|
|
116352
|
-
|
|
116786
|
+
if (exportIndex >= 0) {
|
|
116787
|
+
const defaultIndex = findIndex(parent2.modifiers, isDefaultModifier);
|
|
116788
|
+
if (decoratorIndex > exportIndex && defaultIndex >= 0 && decoratorIndex < defaultIndex) {
|
|
116789
|
+
diagnostics.push(createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));
|
|
116790
|
+
} else if (exportIndex >= 0 && decoratorIndex < exportIndex) {
|
|
116791
|
+
const trailingDecoratorIndex = findIndex(parent2.modifiers, isDecorator, exportIndex);
|
|
116792
|
+
if (trailingDecoratorIndex >= 0) {
|
|
116793
|
+
diagnostics.push(addRelatedInfo(
|
|
116794
|
+
createDiagnosticForNode2(parent2.modifiers[trailingDecoratorIndex], Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),
|
|
116795
|
+
createDiagnosticForNode2(parent2.modifiers[decoratorIndex], Diagnostics.Decorator_used_before_export_here)
|
|
116796
|
+
));
|
|
116797
|
+
}
|
|
116798
|
+
}
|
|
116353
116799
|
}
|
|
116354
116800
|
}
|
|
116355
116801
|
}
|
|
@@ -127743,10 +128189,13 @@ ${lanes.join("\n")}
|
|
|
127743
128189
|
return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
|
|
127744
128190
|
}
|
|
127745
128191
|
function getDefaultLikeExportNameFromDeclaration(symbol) {
|
|
127746
|
-
return firstDefined(
|
|
127747
|
-
|
|
127748
|
-
|
|
127749
|
-
|
|
128192
|
+
return firstDefined(
|
|
128193
|
+
symbol.declarations,
|
|
128194
|
+
(d) => {
|
|
128195
|
+
var _a2, _b;
|
|
128196
|
+
return isExportAssignment(d) ? (_a2 = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a2.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
|
|
128197
|
+
}
|
|
128198
|
+
);
|
|
127750
128199
|
}
|
|
127751
128200
|
function getSymbolParentOrFail(symbol) {
|
|
127752
128201
|
var _a2;
|
|
@@ -128169,13 +128618,25 @@ ${lanes.join("\n")}
|
|
|
128169
128618
|
const autoImportProvider = useAutoImportProvider && ((_a2 = host.getPackageJsonAutoImportProvider) == null ? void 0 : _a2.call(host));
|
|
128170
128619
|
if (autoImportProvider) {
|
|
128171
128620
|
const start = timestamp();
|
|
128172
|
-
|
|
128173
|
-
|
|
128174
|
-
file
|
|
128175
|
-
|
|
128176
|
-
|
|
128177
|
-
|
|
128178
|
-
|
|
128621
|
+
const checker = program.getTypeChecker();
|
|
128622
|
+
forEachExternalModule(autoImportProvider.getTypeChecker(), autoImportProvider.getSourceFiles(), excludePatterns, (module2, file) => {
|
|
128623
|
+
if (file && !program.getSourceFile(file.fileName) || !file && !checker.resolveName(
|
|
128624
|
+
module2.name,
|
|
128625
|
+
/*location*/
|
|
128626
|
+
void 0,
|
|
128627
|
+
1536 /* Module */,
|
|
128628
|
+
/*excludeGlobals*/
|
|
128629
|
+
false
|
|
128630
|
+
)) {
|
|
128631
|
+
cb(
|
|
128632
|
+
module2,
|
|
128633
|
+
file,
|
|
128634
|
+
autoImportProvider,
|
|
128635
|
+
/*isFromPackageJson*/
|
|
128636
|
+
true
|
|
128637
|
+
);
|
|
128638
|
+
}
|
|
128639
|
+
});
|
|
128179
128640
|
(_b = host.log) == null ? void 0 : _b.call(host, `forEachExternalModuleToImportFrom autoImportProvider: ${timestamp() - start}`);
|
|
128180
128641
|
}
|
|
128181
128642
|
}
|
|
@@ -141974,7 +142435,7 @@ ${lanes.join("\n")}
|
|
|
141974
142435
|
}
|
|
141975
142436
|
if (isObjectLiteralType(type)) {
|
|
141976
142437
|
const props = map(checker.getPropertiesOfType(type), (prop) => {
|
|
141977
|
-
const initializer =
|
|
142438
|
+
const initializer = tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeOfSymbol(prop), enclosingDeclaration);
|
|
141978
142439
|
return factory.createPropertyAssignment(prop.name, initializer);
|
|
141979
142440
|
});
|
|
141980
142441
|
return factory.createObjectLiteralExpression(
|
|
@@ -149033,7 +149494,7 @@ ${lanes.join("\n")}
|
|
|
149033
149494
|
return false;
|
|
149034
149495
|
}
|
|
149035
149496
|
function isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) {
|
|
149036
|
-
return (isRegularExpressionLiteral(contextToken2) || isStringTextContainingNode(contextToken2)) && (rangeContainsPositionExclusive(
|
|
149497
|
+
return (isRegularExpressionLiteral(contextToken2) || isStringTextContainingNode(contextToken2)) && (rangeContainsPositionExclusive(contextToken2, position) || position === contextToken2.end && (!!contextToken2.isUnterminated || isRegularExpressionLiteral(contextToken2)));
|
|
149037
149498
|
}
|
|
149038
149499
|
function tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols() {
|
|
149039
149500
|
const typeLiteralNode = tryGetTypeLiteralNode(contextToken);
|