@typescript-deploys/pr-build 5.4.0-pr-57230-11 → 5.4.0-pr-57207-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.
@@ -2817,12 +2817,13 @@ 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["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";
2820
+ SyntaxKind4[SyntaxKind4["JSDocImportTypeTag"] = 358] = "JSDocImportTypeTag";
2821
+ SyntaxKind4[SyntaxKind4["SyntaxList"] = 359] = "SyntaxList";
2822
+ SyntaxKind4[SyntaxKind4["NotEmittedStatement"] = 360] = "NotEmittedStatement";
2823
+ SyntaxKind4[SyntaxKind4["PartiallyEmittedExpression"] = 361] = "PartiallyEmittedExpression";
2824
+ SyntaxKind4[SyntaxKind4["CommaListExpression"] = 362] = "CommaListExpression";
2825
+ SyntaxKind4[SyntaxKind4["SyntheticReferenceExpression"] = 363] = "SyntheticReferenceExpression";
2826
+ SyntaxKind4[SyntaxKind4["Count"] = 364] = "Count";
2826
2827
  SyntaxKind4[SyntaxKind4["FirstAssignment"] = 64 /* EqualsToken */] = "FirstAssignment";
2827
2828
  SyntaxKind4[SyntaxKind4["LastAssignment"] = 79 /* CaretEqualsToken */] = "LastAssignment";
2828
2829
  SyntaxKind4[SyntaxKind4["FirstCompoundAssignment"] = 65 /* PlusEqualsToken */] = "FirstCompoundAssignment";
@@ -2851,9 +2852,9 @@ var SyntaxKind = /* @__PURE__ */ ((SyntaxKind4) => {
2851
2852
  SyntaxKind4[SyntaxKind4["LastStatement"] = 259 /* DebuggerStatement */] = "LastStatement";
2852
2853
  SyntaxKind4[SyntaxKind4["FirstNode"] = 166 /* QualifiedName */] = "FirstNode";
2853
2854
  SyntaxKind4[SyntaxKind4["FirstJSDocNode"] = 316 /* JSDocTypeExpression */] = "FirstJSDocNode";
2854
- SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocNode";
2855
+ SyntaxKind4[SyntaxKind4["LastJSDocNode"] = 358 /* JSDocImportTypeTag */] = "LastJSDocNode";
2855
2856
  SyntaxKind4[SyntaxKind4["FirstJSDocTagNode"] = 334 /* JSDocTag */] = "FirstJSDocTagNode";
2856
- SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 357 /* JSDocSatisfiesTag */] = "LastJSDocTagNode";
2857
+ SyntaxKind4[SyntaxKind4["LastJSDocTagNode"] = 358 /* JSDocImportTypeTag */] = "LastJSDocTagNode";
2857
2858
  SyntaxKind4[SyntaxKind4["FirstContextualKeyword"] = 128 /* AbstractKeyword */] = "FirstContextualKeyword";
2858
2859
  SyntaxKind4[SyntaxKind4["LastContextualKeyword"] = 165 /* OfKeyword */] = "LastContextualKeyword";
2859
2860
  return SyntaxKind4;
@@ -9955,8 +9956,8 @@ function isExpressionKind(kind) {
9955
9956
  case 230 /* SpreadElement */:
9956
9957
  case 234 /* AsExpression */:
9957
9958
  case 232 /* OmittedExpression */:
9958
- case 361 /* CommaListExpression */:
9959
- case 360 /* PartiallyEmittedExpression */:
9959
+ case 362 /* CommaListExpression */:
9960
+ case 361 /* PartiallyEmittedExpression */:
9960
9961
  case 238 /* SatisfiesExpression */:
9961
9962
  return true;
9962
9963
  default:
@@ -9984,7 +9985,7 @@ function isDeclarationStatementKind(kind) {
9984
9985
  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 */;
9985
9986
  }
9986
9987
  function isStatementKindButNotDeclarationKind(kind) {
9987
- 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 */;
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 === 360 /* NotEmittedStatement */;
9988
9989
  }
9989
9990
  function isDeclaration(node) {
9990
9991
  if (node.kind === 168 /* TypeParameter */) {
@@ -10035,7 +10036,7 @@ function isCaseOrDefaultClause(node) {
10035
10036
  return kind === 296 /* CaseClause */ || kind === 297 /* DefaultClause */;
10036
10037
  }
10037
10038
  function isJSDocNode(node) {
10038
- return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 357 /* LastJSDocNode */;
10039
+ return node.kind >= 316 /* FirstJSDocNode */ && node.kind <= 358 /* LastJSDocNode */;
10039
10040
  }
10040
10041
  function hasJSDocNodes(node) {
10041
10042
  if (!canHaveJSDoc(node))
@@ -10729,7 +10730,7 @@ function getOperator(expression) {
10729
10730
  }
10730
10731
  function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
10731
10732
  switch (nodeKind) {
10732
- case 361 /* CommaListExpression */:
10733
+ case 362 /* CommaListExpression */:
10733
10734
  return 0 /* Comma */;
10734
10735
  case 230 /* SpreadElement */:
10735
10736
  return 1 /* Spread */;
@@ -11118,7 +11119,7 @@ function getLeftmostExpression(node, stopAtCallExpressions) {
11118
11119
  case 212 /* ElementAccessExpression */:
11119
11120
  case 211 /* PropertyAccessExpression */:
11120
11121
  case 235 /* NonNullExpression */:
11121
- case 360 /* PartiallyEmittedExpression */:
11122
+ case 361 /* PartiallyEmittedExpression */:
11122
11123
  case 238 /* SatisfiesExpression */:
11123
11124
  node = node.expression;
11124
11125
  continue;
@@ -12916,6 +12917,8 @@ function createNodeFactory(flags, baseFactory2) {
12916
12917
  updateJSDocImplementsTag,
12917
12918
  createJSDocSeeTag,
12918
12919
  updateJSDocSeeTag,
12920
+ createJSDocImportTypeTag,
12921
+ updateJSDocImportTypeTag,
12919
12922
  createJSDocNameReference,
12920
12923
  updateJSDocNameReference,
12921
12924
  createJSDocMemberName,
@@ -15694,6 +15697,16 @@ function createNodeFactory(flags, baseFactory2) {
15694
15697
  function updateJSDocEnumTag(node, tagName = getDefaultTagName(node), typeExpression, comment) {
15695
15698
  return node.tagName !== tagName || node.typeExpression !== typeExpression || node.comment !== comment ? update(createJSDocEnumTag(tagName, typeExpression, comment), node) : node;
15696
15699
  }
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
+ }
15697
15710
  function createJSDocText(text) {
15698
15711
  const node = createBaseNode(328 /* JSDocText */);
15699
15712
  node.text = text;
@@ -16132,18 +16145,18 @@ function createNodeFactory(flags, baseFactory2) {
16132
16145
  return node;
16133
16146
  }
16134
16147
  function createSyntaxList(children) {
16135
- const node = createBaseNode(358 /* SyntaxList */);
16148
+ const node = createBaseNode(359 /* SyntaxList */);
16136
16149
  node._children = children;
16137
16150
  return node;
16138
16151
  }
16139
16152
  function createNotEmittedStatement(original) {
16140
- const node = createBaseNode(359 /* NotEmittedStatement */);
16153
+ const node = createBaseNode(360 /* NotEmittedStatement */);
16141
16154
  node.original = original;
16142
16155
  setTextRange(node, original);
16143
16156
  return node;
16144
16157
  }
16145
16158
  function createPartiallyEmittedExpression(expression, original) {
16146
- const node = createBaseNode(360 /* PartiallyEmittedExpression */);
16159
+ const node = createBaseNode(361 /* PartiallyEmittedExpression */);
16147
16160
  node.expression = expression;
16148
16161
  node.original = original;
16149
16162
  node.transformFlags |= propagateChildFlags(node.expression) | 1 /* ContainsTypeScript */;
@@ -16165,7 +16178,7 @@ function createNodeFactory(flags, baseFactory2) {
16165
16178
  return node;
16166
16179
  }
16167
16180
  function createCommaListExpression(elements) {
16168
- const node = createBaseNode(361 /* CommaListExpression */);
16181
+ const node = createBaseNode(362 /* CommaListExpression */);
16169
16182
  node.elements = createNodeArray(sameFlatMap(elements, flattenCommaElements));
16170
16183
  node.transformFlags |= propagateChildrenFlags(node.elements);
16171
16184
  return node;
@@ -16174,7 +16187,7 @@ function createNodeFactory(flags, baseFactory2) {
16174
16187
  return node.elements !== elements ? update(createCommaListExpression(elements), node) : node;
16175
16188
  }
16176
16189
  function createSyntheticReferenceExpression(expression, thisArg) {
16177
- const node = createBaseNode(362 /* SyntheticReferenceExpression */);
16190
+ const node = createBaseNode(363 /* SyntheticReferenceExpression */);
16178
16191
  node.expression = expression;
16179
16192
  node.thisArg = thisArg;
16180
16193
  node.transformFlags |= propagateChildFlags(node.expression) | propagateChildFlags(node.thisArg);
@@ -16420,7 +16433,7 @@ function createNodeFactory(flags, baseFactory2) {
16420
16433
  return updateSatisfiesExpression(outerExpression, expression, outerExpression.type);
16421
16434
  case 235 /* NonNullExpression */:
16422
16435
  return updateNonNullExpression(outerExpression, expression);
16423
- case 360 /* PartiallyEmittedExpression */:
16436
+ case 361 /* PartiallyEmittedExpression */:
16424
16437
  return updatePartiallyEmittedExpression(outerExpression, expression);
16425
16438
  }
16426
16439
  }
@@ -16830,6 +16843,8 @@ function getDefaultTagNameForKind(kind) {
16830
16843
  return "augments";
16831
16844
  case 336 /* JSDocImplementsTag */:
16832
16845
  return "implements";
16846
+ case 358 /* JSDocImportTypeTag */:
16847
+ return "importType";
16833
16848
  default:
16834
16849
  return Debug.fail(`Unsupported kind: ${Debug.formatSyntaxKind(kind)}`);
16835
16850
  }
@@ -16970,7 +16985,7 @@ function getTransformFlagsSubtreeExclusions(kind) {
16970
16985
  case 216 /* TypeAssertionExpression */:
16971
16986
  case 238 /* SatisfiesExpression */:
16972
16987
  case 234 /* AsExpression */:
16973
- case 360 /* PartiallyEmittedExpression */:
16988
+ case 361 /* PartiallyEmittedExpression */:
16974
16989
  case 217 /* ParenthesizedExpression */:
16975
16990
  case 108 /* SuperKeyword */:
16976
16991
  return -2147483648 /* OuterExpressionExcludes */;
@@ -17414,7 +17429,7 @@ function isMetaProperty(node) {
17414
17429
  return node.kind === 236 /* MetaProperty */;
17415
17430
  }
17416
17431
  function isCommaListExpression(node) {
17417
- return node.kind === 361 /* CommaListExpression */;
17432
+ return node.kind === 362 /* CommaListExpression */;
17418
17433
  }
17419
17434
  function isTemplateSpan(node) {
17420
17435
  return node.kind === 239 /* TemplateSpan */;
@@ -17489,7 +17504,7 @@ function isExportSpecifier(node) {
17489
17504
  return node.kind === 281 /* ExportSpecifier */;
17490
17505
  }
17491
17506
  function isNotEmittedStatement(node) {
17492
- return node.kind === 359 /* NotEmittedStatement */;
17507
+ return node.kind === 360 /* NotEmittedStatement */;
17493
17508
  }
17494
17509
  function isExternalModuleReference(node) {
17495
17510
  return node.kind === 283 /* ExternalModuleReference */;
@@ -17621,7 +17636,7 @@ function isOuterExpression(node, kinds = 15 /* All */) {
17621
17636
  return (kinds & 2 /* TypeAssertions */) !== 0;
17622
17637
  case 235 /* NonNullExpression */:
17623
17638
  return (kinds & 4 /* NonNullAssertions */) !== 0;
17624
- case 360 /* PartiallyEmittedExpression */:
17639
+ case 361 /* PartiallyEmittedExpression */:
17625
17640
  return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;
17626
17641
  }
17627
17642
  return false;
@@ -18286,7 +18301,7 @@ var forEachChildTable = {
18286
18301
  [282 /* MissingDeclaration */]: function forEachChildInMissingDeclaration(node, cbNode, cbNodes) {
18287
18302
  return visitNodes(cbNode, cbNodes, node.modifiers);
18288
18303
  },
18289
- [361 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
18304
+ [362 /* CommaListExpression */]: function forEachChildInCommaListExpression(node, cbNode, cbNodes) {
18290
18305
  return visitNodes(cbNode, cbNodes, node.elements);
18291
18306
  },
18292
18307
  [284 /* JsxElement */]: function forEachChildInJsxElement(node, cbNode, cbNodes) {
@@ -18381,7 +18396,8 @@ var forEachChildTable = {
18381
18396
  [343 /* JSDocReadonlyTag */]: forEachChildInJSDocTag,
18382
18397
  [338 /* JSDocDeprecatedTag */]: forEachChildInJSDocTag,
18383
18398
  [344 /* JSDocOverrideTag */]: forEachChildInJSDocTag,
18384
- [360 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
18399
+ [358 /* JSDocImportTypeTag */]: forEachChildInJSDocImportTypeTag,
18400
+ [361 /* PartiallyEmittedExpression */]: forEachChildInPartiallyEmittedExpression
18385
18401
  };
18386
18402
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
18387
18403
  return visitNodes(cbNode, cbNodes, node.typeParameters) || visitNodes(cbNode, cbNodes, node.parameters) || visitNode2(cbNode, node.type);
@@ -18432,6 +18448,9 @@ function forEachChildInJSDocLinkCodeOrPlain(node, cbNode, _cbNodes) {
18432
18448
  function forEachChildInJSDocTag(node, cbNode, cbNodes) {
18433
18449
  return visitNode2(cbNode, node.tagName) || (typeof node.comment === "string" ? void 0 : visitNodes(cbNode, cbNodes, node.comment));
18434
18450
  }
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
+ }
18435
18454
  function forEachChildInPartiallyEmittedExpression(node, cbNode, _cbNodes) {
18436
18455
  return visitNode2(cbNode, node.expression);
18437
18456
  }
@@ -24611,6 +24630,9 @@ var Parser;
24611
24630
  case "throws":
24612
24631
  tag = parseThrowsTag(start2, tagName, margin, indentText);
24613
24632
  break;
24633
+ case "importType":
24634
+ tag = parseImportTypeTag(start2, tagName, margin, indentText);
24635
+ break;
24614
24636
  default:
24615
24637
  tag = parseUnknownTag(start2, tagName, margin, indentText);
24616
24638
  break;
@@ -24930,6 +24952,27 @@ var Parser;
24930
24952
  const comments2 = margin !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), margin, indentText) : void 0;
24931
24953
  return finishNode(factory2.createJSDocSatisfiesTag(tagName, typeExpression, comments2), start2);
24932
24954
  }
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
+ }
24933
24976
  function parseExpressionWithTypeArgumentsForAugments() {
24934
24977
  const usedBrace = parseOptional(19 /* OpenBraceToken */);
24935
24978
  const pos = getNodePos();
@@ -30816,13 +30859,13 @@ var visitEachChildTable = {
30816
30859
  );
30817
30860
  },
30818
30861
  // Transformation nodes
30819
- [360 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30862
+ [361 /* PartiallyEmittedExpression */]: function visitEachChildOfPartiallyEmittedExpression(node, visitor, context, _nodesVisitor, nodeVisitor, _tokenVisitor) {
30820
30863
  return context.factory.updatePartiallyEmittedExpression(
30821
30864
  node,
30822
30865
  Debug.checkDefined(nodeVisitor(node.expression, visitor, isExpression))
30823
30866
  );
30824
30867
  },
30825
- [361 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30868
+ [362 /* CommaListExpression */]: function visitEachChildOfCommaListExpression(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
30826
30869
  return context.factory.updateCommaListExpression(
30827
30870
  node,
30828
30871
  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-57230-11",
5
+ "version": "5.4.0-pr-57207-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": "660c05350a6d1c3f33ee6553377a0725cd93105e"
117
+ "gitHead": "b95f59ea1065afe5703a217f3a447ee047d24601"
118
118
  }