@typescript-deploys/pr-build 5.4.0-pr-57207-3 → 5.4.0-pr-56594-3
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 +115 -166
- package/lib/tsserver.js +280 -287
- package/lib/typescript.d.ts +9 -31
- package/lib/typescript.js +280 -286
- package/lib/typingsInstaller.js +31 -85
- 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.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20240205`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -2817,13 +2817,12 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2817
2817
|
SyntaxKind4[SyntaxKind4["JSDocPropertyTag"] = 355] = "JSDocPropertyTag";
|
|
2818
2818
|
SyntaxKind4[SyntaxKind4["JSDocThrowsTag"] = 356] = "JSDocThrowsTag";
|
|
2819
2819
|
SyntaxKind4[SyntaxKind4["JSDocSatisfiesTag"] = 357] = "JSDocSatisfiesTag";
|
|
2820
|
-
SyntaxKind4[SyntaxKind4["
|
|
2821
|
-
SyntaxKind4[SyntaxKind4["
|
|
2822
|
-
SyntaxKind4[SyntaxKind4["
|
|
2823
|
-
SyntaxKind4[SyntaxKind4["
|
|
2824
|
-
SyntaxKind4[SyntaxKind4["
|
|
2825
|
-
SyntaxKind4[SyntaxKind4["
|
|
2826
|
-
SyntaxKind4[SyntaxKind4["Count"] = 364] = "Count";
|
|
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";
|
|
2827
2826
|
SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
|
|
2828
2827
|
SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
|
|
2829
2828
|
SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
|
|
@@ -2852,9 +2851,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
|
|
|
2852
2851
|
SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement";
|
|
2853
2852
|
SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode";
|
|
2854
2853
|
SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode";
|
|
2855
|
-
SyntaxKind4[SyntaxKind4["LastJSDocNode"] =
|
|
2854
|
+
SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode";
|
|
2856
2855
|
SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode";
|
|
2857
|
-
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] =
|
|
2856
|
+
SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
|
|
2858
2857
|
SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
|
|
2859
2858
|
SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword";
|
|
2860
2859
|
return SyntaxKind4;
|
|
@@ -6300,7 +6299,6 @@ var Diagnostics = {
|
|
|
6300
6299
|
Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, 3 /* Message */, "Disallow_inconsistently_cased_references_to_the_same_file_6078", "Disallow inconsistently-cased references to the same file."),
|
|
6301
6300
|
Specify_library_files_to_be_included_in_the_compilation: diag(6079, 3 /* Message */, "Specify_library_files_to_be_included_in_the_compilation_6079", "Specify library files to be included in the compilation."),
|
|
6302
6301
|
Specify_JSX_code_generation: diag(6080, 3 /* Message */, "Specify_JSX_code_generation_6080", "Specify JSX code generation."),
|
|
6303
|
-
File_0_has_an_unsupported_extension_so_skipping_it: diag(6081, 3 /* Message */, "File_0_has_an_unsupported_extension_so_skipping_it_6081", "File '{0}' has an unsupported extension, so skipping it."),
|
|
6304
6302
|
Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, 1 /* Error */, "Only_amd_and_system_modules_are_supported_alongside_0_6082", "Only 'amd' and 'system' modules are supported alongside --{0}."),
|
|
6305
6303
|
Base_directory_to_resolve_non_absolute_module_names: diag(6083, 3 /* Message */, "Base_directory_to_resolve_non_absolute_module_names_6083", "Base directory to resolve non-absolute module names."),
|
|
6306
6304
|
Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, 3 /* Message */, "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084", "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),
|
|
@@ -9956,8 +9954,8 @@ function isExpressionKind(kind) {
|
|
|
9956
9954
|
case 230 /* SpreadElement */:
|
|
9957
9955
|
case 234 /* AsExpression */:
|
|
9958
9956
|
case 232 /* OmittedExpression */:
|
|
9959
|
-
case
|
|
9960
|
-
case
|
|
9957
|
+
case 361 /* CommaListExpression */:
|
|
9958
|
+
case 360 /* PartiallyEmittedExpression */:
|
|
9961
9959
|
case 238 /* SatisfiesExpression */:
|
|
9962
9960
|
return true;
|
|
9963
9961
|
default:
|
|
@@ -9985,7 +9983,7 @@ function isDeclarationStatementKind(kind) {
|
|
|
9985
9983
|
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 */;
|
|
9986
9984
|
}
|
|
9987
9985
|
function isStatementKindButNotDeclarationKind(kind) {
|
|
9988
|
-
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 ===
|
|
9986
|
+
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 === 359 /* NotEmittedStatement */;
|
|
9989
9987
|
}
|
|
9990
9988
|
function isDeclaration(node) {
|
|
9991
9989
|
if (node.kind === 168 /* TypeParameter */) {
|
|
@@ -10036,7 +10034,7 @@ function isCaseOrDefaultClause(node) {
|
|
|
10036
10034
|
return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */;
|
|
10037
10035
|
}
|
|
10038
10036
|
function isJSDocNode(node) {
|
|
10039
|
-
return node.kind >= 316 /* FirstJSDocNode */ && node.kind <=
|
|
10037
|
+
return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */;
|
|
10040
10038
|
}
|
|
10041
10039
|
function hasJSDocNodes(node) {
|
|
10042
10040
|
if (!canHaveJSDoc(node))
|
|
@@ -10730,7 +10728,7 @@ function getOperator(expression) {
|
|
|
10730
10728
|
}
|
|
10731
10729
|
function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|
10732
10730
|
switch (nodeKind) {
|
|
10733
|
-
case
|
|
10731
|
+
case 361 /* CommaListExpression */:
|
|
10734
10732
|
return 0 /* Comma */;
|
|
10735
10733
|
case 230 /* SpreadElement */:
|
|
10736
10734
|
return 1 /* Spread */;
|
|
@@ -11119,7 +11117,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
|
|
|
11119
11117
|
case 212 /* ElementAccessExpression */:
|
|
11120
11118
|
case 211 /* PropertyAccessExpression */:
|
|
11121
11119
|
case 235 /* NonNullExpression */:
|
|
11122
|
-
case
|
|
11120
|
+
case 360 /* PartiallyEmittedExpression */:
|
|
11123
11121
|
case 238 /* SatisfiesExpression */:
|
|
11124
11122
|
node = node.expression;
|
|
11125
11123
|
continue;
|
|
@@ -12917,8 +12915,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
12917
12915
|
updateJSDocImplementsTag,
|
|
12918
12916
|
createJSDocSeeTag,
|
|
12919
12917
|
updateJSDocSeeTag,
|
|
12920
|
-
createJSDocImportTypeTag,
|
|
12921
|
-
updateJSDocImportTypeTag,
|
|
12922
12918
|
createJSDocNameReference,
|
|
12923
12919
|
updateJSDocNameReference,
|
|
12924
12920
|
createJSDocMemberName,
|
|
@@ -15697,16 +15693,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15697
15693
|
function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {
|
|
15698
15694
|
return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
|
|
15699
15695
|
}
|
|
15700
|
-
function createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comment) {
|
|
15701
|
-
const node = createBaseJSDocTag(358 /* JSDocImportTypeTag */, tagName ?? createIdentifier("importType"), comment);
|
|
15702
|
-
node.importClause = importClause;
|
|
15703
|
-
node.moduleSpecifier = moduleSpecifier;
|
|
15704
|
-
node.comment = comment;
|
|
15705
|
-
return node;
|
|
15706
|
-
}
|
|
15707
|
-
function updateJSDocImportTypeTag(node, tagName, importClause, moduleSpecifier, comment) {
|
|
15708
|
-
return node.tagName !== tagName || node.comment !== comment || node.importClause !== importClause || node.moduleSpecifier !== moduleSpecifier ? update(createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comment), node) : node;
|
|
15709
|
-
}
|
|
15710
15696
|
function createJSDocText(text) {
|
|
15711
15697
|
const node = createBaseNode(328 /* JSDocText */);
|
|
15712
15698
|
node.text = text;
|
|
@@ -16145,18 +16131,18 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16145
16131
|
return node;
|
|
16146
16132
|
}
|
|
16147
16133
|
function createSyntaxList(children) {
|
|
16148
|
-
const node = createBaseNode(
|
|
16134
|
+
const node = createBaseNode(358 /* SyntaxList */);
|
|
16149
16135
|
node._children = children;
|
|
16150
16136
|
return node;
|
|
16151
16137
|
}
|
|
16152
16138
|
function createNotEmittedStatement(original) {
|
|
16153
|
-
const node = createBaseNode(
|
|
16139
|
+
const node = createBaseNode(359 /* NotEmittedStatement */);
|
|
16154
16140
|
node.original = original;
|
|
16155
16141
|
setTextRange(node, original);
|
|
16156
16142
|
return node;
|
|
16157
16143
|
}
|
|
16158
16144
|
function createPartiallyEmittedExpression(expression, original) {
|
|
16159
|
-
const node = createBaseNode(
|
|
16145
|
+
const node = createBaseNode(360 /* PartiallyEmittedExpression */);
|
|
16160
16146
|
node.expression = expression;
|
|
16161
16147
|
node.original = original;
|
|
16162
16148
|
node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
|
|
@@ -16178,7 +16164,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16178
16164
|
return node;
|
|
16179
16165
|
}
|
|
16180
16166
|
function createCommaListExpression(elements) {
|
|
16181
|
-
const node = createBaseNode(
|
|
16167
|
+
const node = createBaseNode(361 /* CommaListExpression */);
|
|
16182
16168
|
node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
|
|
16183
16169
|
node.transformFlags |= propagateChildrenFlags(node.elements);
|
|
16184
16170
|
return node;
|
|
@@ -16187,7 +16173,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16187
16173
|
return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
|
|
16188
16174
|
}
|
|
16189
16175
|
function createSyntheticReferenceExpression(expression, thisArg) {
|
|
16190
|
-
const node = createBaseNode(
|
|
16176
|
+
const node = createBaseNode(362 /* SyntheticReferenceExpression */);
|
|
16191
16177
|
node.expression = expression;
|
|
16192
16178
|
node.thisArg = thisArg;
|
|
16193
16179
|
node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
|
|
@@ -16433,7 +16419,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16433
16419
|
return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
|
|
16434
16420
|
case 235 /* NonNullExpression */:
|
|
16435
16421
|
return updateNonNullExpression(outerExpression, expression);
|
|
16436
|
-
case
|
|
16422
|
+
case 360 /* PartiallyEmittedExpression */:
|
|
16437
16423
|
return updatePartiallyEmittedExpression(outerExpression, expression);
|
|
16438
16424
|
}
|
|
16439
16425
|
}
|
|
@@ -16843,8 +16829,6 @@ function getDefaultTagNameForKind(kind) {
|
|
|
16843
16829
|
return "augments";
|
|
16844
16830
|
case 336 /* JSDocImplementsTag */:
|
|
16845
16831
|
return "implements";
|
|
16846
|
-
case 358 /* JSDocImportTypeTag */:
|
|
16847
|
-
return "importType";
|
|
16848
16832
|
default:
|
|
16849
16833
|
return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
|
|
16850
16834
|
}
|
|
@@ -16985,7 +16969,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
|
|
|
16985
16969
|
case 216 /* TypeAssertionExpression */:
|
|
16986
16970
|
case 238 /* SatisfiesExpression */:
|
|
16987
16971
|
case 234 /* AsExpression */:
|
|
16988
|
-
case
|
|
16972
|
+
case 360 /* PartiallyEmittedExpression */:
|
|
16989
16973
|
case 217 /* ParenthesizedExpression */:
|
|
16990
16974
|
case 108 /* SuperKeyword */:
|
|
16991
16975
|
return -2147483648 /* OuterExpressionExcludes */;
|
|
@@ -17429,7 +17413,7 @@ function isMetaProperty(node) {
|
|
|
17429
17413
|
return node.kind === 236 /* MetaProperty */;
|
|
17430
17414
|
}
|
|
17431
17415
|
function isCommaListExpression(node) {
|
|
17432
|
-
return node.kind ===
|
|
17416
|
+
return node.kind === 361 /* CommaListExpression */;
|
|
17433
17417
|
}
|
|
17434
17418
|
function isTemplateSpan(node) {
|
|
17435
17419
|
return node.kind === 239 /* TemplateSpan */;
|
|
@@ -17504,7 +17488,7 @@ function isExportSpecifier(node) {
|
|
|
17504
17488
|
return node.kind === 281 /* ExportSpecifier */;
|
|
17505
17489
|
}
|
|
17506
17490
|
function isNotEmittedStatement(node) {
|
|
17507
|
-
return node.kind ===
|
|
17491
|
+
return node.kind === 359 /* NotEmittedStatement */;
|
|
17508
17492
|
}
|
|
17509
17493
|
function isExternalModuleReference(node) {
|
|
17510
17494
|
return node.kind === 283 /* ExternalModuleReference */;
|
|
@@ -17636,7 +17620,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
|
|
|
17636
17620
|
return (kinds & 2 /* TypeAssertions */) !== 0;
|
|
17637
17621
|
case 235 /* NonNullExpression */:
|
|
17638
17622
|
return (kinds & 4 /* NonNullAssertions */) !== 0;
|
|
17639
|
-
case
|
|
17623
|
+
case 360 /* PartiallyEmittedExpression */:
|
|
17640
17624
|
return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
|
|
17641
17625
|
}
|
|
17642
17626
|
return false;
|
|
@@ -18301,7 +18285,7 @@ var forEachChildTable = {
|
|
|
18301
18285
|
[282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
|
|
18302
18286
|
return visitNodes(cbNode, cbNodes, node.modifiers);
|
|
18303
18287
|
},
|
|
18304
|
-
[
|
|
18288
|
+
[361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
|
|
18305
18289
|
return visitNodes(cbNode, cbNodes, node.elements);
|
|
18306
18290
|
},
|
|
18307
18291
|
[284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
|
|
@@ -18396,8 +18380,7 @@ var forEachChildTable = {
|
|
|
18396
18380
|
[343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
|
|
18397
18381
|
[338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
|
|
18398
18382
|
[344 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
|
|
18399
|
-
[
|
|
18400
|
-
[361 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
|
|
18383
|
+
[360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
|
|
18401
18384
|
};
|
|
18402
18385
|
function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
|
|
18403
18386
|
return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
|
|
@@ -18448,9 +18431,6 @@ function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
|
|
|
18448
18431
|
function forEachChildInJSDocTag(node, cbNode, cbNodes) {
|
|
18449
18432
|
return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18450
18433
|
}
|
|
18451
|
-
function forEachChildInJSDocImportTypeTag(node, cbNode, cbNodes) {
|
|
18452
|
-
return visitNode2(cbNode, node.tagName) || visitNode2(cbNode, node.importClause) || visitNode2(cbNode, node.moduleSpecifier) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
|
|
18453
|
-
}
|
|
18454
18434
|
function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
|
|
18455
18435
|
return visitNode2(cbNode, node.expression);
|
|
18456
18436
|
}
|
|
@@ -24630,9 +24610,6 @@ var Parser;
|
|
|
24630
24610
|
case "throws":
|
|
24631
24611
|
tag = parseThrowsTag(start2, tagName, margin, indentText);
|
|
24632
24612
|
break;
|
|
24633
|
-
case "importType":
|
|
24634
|
-
tag = parseImportTypeTag(start2, tagName, margin, indentText);
|
|
24635
|
-
break;
|
|
24636
24613
|
default:
|
|
24637
24614
|
tag = parseUnknownTag(start2, tagName, margin, indentText);
|
|
24638
24615
|
break;
|
|
@@ -24952,27 +24929,6 @@ var Parser;
|
|
|
24952
24929
|
const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
|
|
24953
24930
|
return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
|
|
24954
24931
|
}
|
|
24955
|
-
function parseImportTypeTag(start2, tagName, margin, indentText) {
|
|
24956
|
-
const afterImportTypeTagPos = scanner.getTokenFullStart();
|
|
24957
|
-
let identifier;
|
|
24958
|
-
if (isIdentifier2()) {
|
|
24959
|
-
identifier = parseIdentifier();
|
|
24960
|
-
}
|
|
24961
|
-
let importClause;
|
|
24962
|
-
if (identifier || token() === 42 /* AsteriskToken */ || token() === 19 /* OpenBraceToken */) {
|
|
24963
|
-
importClause = parseImportClause(
|
|
24964
|
-
identifier,
|
|
24965
|
-
afterImportTypeTagPos,
|
|
24966
|
-
/*isTypeOnly*/
|
|
24967
|
-
true
|
|
24968
|
-
);
|
|
24969
|
-
parseExpected(161 /* FromKeyword */);
|
|
24970
|
-
}
|
|
24971
|
-
Debug.assert(importClause);
|
|
24972
|
-
const moduleSpecifier = parseModuleSpecifier();
|
|
24973
|
-
const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
|
|
24974
|
-
return finishNode(factory2.createJSDocImportTypeTag(tagName, importClause, moduleSpecifier, comments2), start2);
|
|
24975
|
-
}
|
|
24976
24932
|
function parseExpressionWithTypeArgumentsForAugments() {
|
|
24977
24933
|
const usedBrace = parseOptional(19 /* OpenBraceToken */);
|
|
24978
24934
|
const pos = getNodePos();
|
|
@@ -28610,15 +28566,9 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
|
|
|
28610
28566
|
}
|
|
28611
28567
|
}
|
|
28612
28568
|
const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
|
|
28613
|
-
const fromFile =
|
|
28569
|
+
const fromFile = loadFileNameFromPackageJsonField(extensions2, candidate2, onlyRecordFailures2, state2);
|
|
28614
28570
|
if (fromFile) {
|
|
28615
|
-
|
|
28616
|
-
if (resolved) {
|
|
28617
|
-
return noPackageId(resolved);
|
|
28618
|
-
}
|
|
28619
|
-
if (state2.traceEnabled) {
|
|
28620
|
-
trace(state2.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);
|
|
28621
|
-
}
|
|
28571
|
+
return noPackageId(fromFile);
|
|
28622
28572
|
}
|
|
28623
28573
|
const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
|
|
28624
28574
|
const features = state2.features;
|
|
@@ -28674,10 +28624,6 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
|
|
|
28674
28624
|
return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state);
|
|
28675
28625
|
}
|
|
28676
28626
|
}
|
|
28677
|
-
function resolvedIfExtensionMatches(extensions, path2, resolvedUsingTsExtension) {
|
|
28678
|
-
const ext = tryGetExtensionFromPath2(path2);
|
|
28679
|
-
return ext !== void 0 && extensionIsOk(extensions, ext) ? { path: path2, ext, resolvedUsingTsExtension } : void 0;
|
|
28680
|
-
}
|
|
28681
28627
|
function extensionIsOk(extensions, extension) {
|
|
28682
28628
|
return extensions & 2 /* JavaScript */ && (extension === ".js" /* Js */ || extension === ".jsx" /* Jsx */ || extension === ".mjs" /* Mjs */ || extension === ".cjs" /* Cjs */) || extensions & 1 /* TypeScript */ && (extension === ".ts" /* Ts */ || extension === ".tsx" /* Tsx */ || extension === ".mts" /* Mts */ || extension === ".cts" /* Cts */) || extensions & 4 /* Declaration */ && (extension === ".d.ts" /* Dts */ || extension === ".d.mts" /* Dmts */ || extension === ".d.cts" /* Dcts */) || extensions & 8 /* Json */ && extension === ".json" /* Json */ || false;
|
|
28683
28629
|
}
|
|
@@ -30859,13 +30805,13 @@ var visitEachChildTable = {
|
|
|
30859
30805
|
);
|
|
30860
30806
|
},
|
|
30861
30807
|
// Transformation nodes
|
|
30862
|
-
[
|
|
30808
|
+
[360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
|
|
30863
30809
|
return context.factory.updatePartiallyEmittedExpression(
|
|
30864
30810
|
node,
|
|
30865
30811
|
Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
|
|
30866
30812
|
);
|
|
30867
30813
|
},
|
|
30868
|
-
[
|
|
30814
|
+
[361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
|
|
30869
30815
|
return context.factory.updateCommaListExpression(
|
|
30870
30816
|
node,
|
|
30871
30817
|
nodesVisitor(node.elements, visitor, isExpression)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-56594-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "4a2f44461bd82f7d57ec11230a145ccdd5373350"
|
|
118
118
|
}
|