@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.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-insiders.20230208`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230210`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -5582,6 +5582,7 @@ var Diagnostics = {
5582
5582
  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" }`.'),
5583
5583
  _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."),
5584
5584
  _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."),
5585
+ Decorator_used_before_export_here: diag(1486, 1 /* Error */, "Decorator_used_before_export_here_1486", "Decorator used before 'export' here."),
5585
5586
  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."),
5586
5587
  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."),
5587
5588
  Call_signature_return_types_0_and_1_are_incompatible: diag(
@@ -6938,7 +6939,7 @@ var Diagnostics = {
6938
6939
  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."),
6939
6940
  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."),
6940
6941
  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."),
6941
- Decorators_must_come_after_export_or_export_default_in_JavaScript_files: diag(8038, 1 /* Error */, "Decorators_must_come_after_export_or_export_default_in_JavaScript_files_8038", "Decorators must come after 'export' or 'export default' in JavaScript files."),
6942
+ 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'."),
6942
6943
  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."),
6943
6944
  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."),
6944
6945
  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'."),
@@ -19932,8 +19933,13 @@ var Parser;
19932
19933
  return tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;
19933
19934
  case 14 /* JsxChildren */:
19934
19935
  return true;
19936
+ case 25 /* StandaloneJSDoc */:
19937
+ return true;
19938
+ case 26 /* Count */:
19939
+ return Debug.fail("ParsingContext.Count used as a context");
19940
+ default:
19941
+ Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'.");
19935
19942
  }
19936
- return Debug.fail("Non-exhaustive case in 'isListElement'.");
19937
19943
  }
19938
19944
  function isValidHeritageClauseObjectLiteral() {
19939
19945
  Debug.assert(token() === 18 /* OpenBraceToken */);
@@ -20027,7 +20033,8 @@ var Parser;
20027
20033
  return false;
20028
20034
  }
20029
20035
  function isInSomeParsingContext() {
20030
- for (let kind = 0; kind < 25 /* Count */; kind++) {
20036
+ Debug.assert(parsingContext, "Missing parsing context");
20037
+ for (let kind = 0; kind < 26 /* Count */; kind++) {
20031
20038
  if (parsingContext & 1 << kind) {
20032
20039
  if (isListElement(
20033
20040
  kind,
@@ -20106,6 +20113,7 @@ var Parser;
20106
20113
  case 8 /* VariableDeclarations */:
20107
20114
  case 17 /* JSDocParameters */:
20108
20115
  case 16 /* Parameters */:
20116
+ case 25 /* StandaloneJSDoc */:
20109
20117
  return true;
20110
20118
  }
20111
20119
  return false;
@@ -20286,7 +20294,9 @@ var Parser;
20286
20294
  return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);
20287
20295
  case 24 /* AssertEntries */:
20288
20296
  return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);
20289
- case 25 /* Count */:
20297
+ case 25 /* StandaloneJSDoc */:
20298
+ return;
20299
+ case 26 /* Count */:
20290
20300
  return Debug.fail("ParsingContext.Count used as a context");
20291
20301
  default:
20292
20302
  Debug.assertNever(context);
@@ -22068,7 +22078,7 @@ var Parser;
22068
22078
  case 114 /* VoidKeyword */:
22069
22079
  return parseVoidExpression();
22070
22080
  case 29 /* LessThanToken */:
22071
- if (languageVariant === 1 /* JSX */ && token() === 29 /* LessThanToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)) {
22081
+ if (languageVariant === 1 /* JSX */) {
22072
22082
  return parseJsxElementOrSelfClosingElementOrFragment(
22073
22083
  /*inExpressionContext*/
22074
22084
  true
@@ -22445,7 +22455,7 @@ var Parser;
22445
22455
  return finishNode(factory2.createJsxJsxClosingFragment(), pos);
22446
22456
  }
22447
22457
  function parseTypeAssertion() {
22448
- Debug.assert(scriptKind === 3 /* TS */ || scriptKind === 4 /* TSX */, "Type assertions should never be parsed outside of TS/TSX; they should either be comparisons or JSX.");
22458
+ Debug.assert(scriptKind === 3 /* TS */, "Type assertions should never be parsed outside of TS; they should either be comparisons or JSX.");
22449
22459
  const pos = getNodePos();
22450
22460
  parseExpected(29 /* LessThanToken */);
22451
22461
  const type = parseType();
@@ -23796,17 +23806,25 @@ var Parser;
23796
23806
  function parseModifiers(allowDecorators, permitConstAsModifier, stopOnStartOfClassStaticBlock) {
23797
23807
  const pos = getNodePos();
23798
23808
  let list;
23799
- let modifier, hasSeenStaticModifier = false;
23809
+ let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
23810
+ if (allowDecorators && token() === 59 /* AtToken */) {
23811
+ while (decorator = tryParseDecorator()) {
23812
+ list = append(list, decorator);
23813
+ }
23814
+ }
23800
23815
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
23801
23816
  if (modifier.kind === 124 /* StaticKeyword */)
23802
23817
  hasSeenStaticModifier = true;
23803
23818
  list = append(list, modifier);
23819
+ hasLeadingModifier = true;
23804
23820
  }
23805
- if (allowDecorators && token() === 59 /* AtToken */) {
23806
- let decorator;
23821
+ if (hasLeadingModifier && allowDecorators && token() === 59 /* AtToken */) {
23807
23822
  while (decorator = tryParseDecorator()) {
23808
23823
  list = append(list, decorator);
23824
+ hasTrailingDecorator = true;
23809
23825
  }
23826
+ }
23827
+ if (hasTrailingDecorator) {
23810
23828
  while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
23811
23829
  if (modifier.kind === 124 /* StaticKeyword */)
23812
23830
  hasSeenStaticModifier = true;
@@ -24378,7 +24396,8 @@ var Parser;
24378
24396
  ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses";
24379
24397
  ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers";
24380
24398
  ParsingContext2[ParsingContext2["AssertEntries"] = 24] = "AssertEntries";
24381
- ParsingContext2[ParsingContext2["Count"] = 25] = "Count";
24399
+ ParsingContext2[ParsingContext2["StandaloneJSDoc"] = 25] = "StandaloneJSDoc";
24400
+ ParsingContext2[ParsingContext2["Count"] = 26] = "Count";
24382
24401
  })(ParsingContext || (ParsingContext = {}));
24383
24402
  let Tristate;
24384
24403
  ((Tristate2) => {
@@ -24500,6 +24519,13 @@ var Parser;
24500
24519
  PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
24501
24520
  })(PropertyLikeParse || (PropertyLikeParse = {}));
24502
24521
  function parseJSDocCommentWorker(start = 0, length2) {
24522
+ const saveParsingContext = parsingContext;
24523
+ parsingContext |= 1 << 25 /* StandaloneJSDoc */;
24524
+ const jsdoc = parseJSDocCommentWorkerWorker(start, length2);
24525
+ parsingContext = saveParsingContext;
24526
+ return jsdoc;
24527
+ }
24528
+ function parseJSDocCommentWorkerWorker(start, length2) {
24503
24529
  const content = sourceText;
24504
24530
  const end = length2 === void 0 ? content.length : start + length2;
24505
24531
  length2 = end - start;
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.0.0-pr-52667-13",
5
+ "version": "5.0.0-pr-52710-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [