@typescript-deploys/pr-build 5.2.0-pr-55052-3 → 5.2.0-pr-52095-16

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.2";
57
- var version = `${versionMajorMinor}.0-insiders.20230718`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230725`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -3193,7 +3193,8 @@ var SignatureFlags = /* @__PURE__ */ ((SignatureFlags4) => {
3193
3193
  SignatureFlags4[SignatureFlags4["IsOuterCallChain"] = 16] = "IsOuterCallChain";
3194
3194
  SignatureFlags4[SignatureFlags4["IsUntypedSignatureInJSFile"] = 32] = "IsUntypedSignatureInJSFile";
3195
3195
  SignatureFlags4[SignatureFlags4["IsNonInferrable"] = 64] = "IsNonInferrable";
3196
- SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 39] = "PropagatingFlags";
3196
+ SignatureFlags4[SignatureFlags4["IsSignatureCandidateForOverloadFailure"] = 128] = "IsSignatureCandidateForOverloadFailure";
3197
+ SignatureFlags4[SignatureFlags4["PropagatingFlags"] = 167] = "PropagatingFlags";
3197
3198
  SignatureFlags4[SignatureFlags4["CallChainFlags"] = 24] = "CallChainFlags";
3198
3199
  return SignatureFlags4;
3199
3200
  })(SignatureFlags || {});
@@ -6042,9 +6043,6 @@ var Diagnostics = {
6042
6043
  await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1 /* Error */, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
6043
6044
  await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(2853, 1 /* Error */, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6044
6045
  Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1 /* Error */, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),
6045
- The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method: diag(2855, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2855", "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),
6046
- An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression: diag(2856, 1 /* Error */, "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2856", "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),
6047
- The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_an_object_type_with_a_Symbol_hasInstance_method_or_a_type_assignable_to_the_Function_interface_type: diag(2857, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_an_object_type_with_a_Sym_2857", "The right-hand side of an 'instanceof' expression must be either of type 'any', an object type with a '[Symbol.hasInstance]()' method, or a type assignable to the 'Function' interface type."),
6048
6046
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
6049
6047
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
6050
6048
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -9874,7 +9872,6 @@ function isLeftHandSideExpressionKind(kind) {
9874
9872
  case 236 /* MetaProperty */:
9875
9873
  case 102 /* ImportKeyword */:
9876
9874
  case 282 /* MissingDeclaration */:
9877
- case 237 /* SyntheticExpression */:
9878
9875
  return true;
9879
9876
  default:
9880
9877
  return false;
@@ -22621,10 +22618,14 @@ var Parser;
22621
22618
  case 124 /* ProtectedKeyword */:
22622
22619
  case 125 /* PublicKeyword */:
22623
22620
  case 148 /* ReadonlyKeyword */:
22621
+ const previousToken = token();
22624
22622
  nextToken();
22625
22623
  if (scanner.hasPrecedingLineBreak()) {
22626
22624
  return false;
22627
22625
  }
22626
+ if (previousToken === 138 /* DeclareKeyword */ && token() === 156 /* TypeKeyword */) {
22627
+ return true;
22628
+ }
22628
22629
  continue;
22629
22630
  case 162 /* GlobalKeyword */:
22630
22631
  nextToken();
@@ -22989,14 +22990,14 @@ var Parser;
22989
22990
  function parseObjectBindingPattern() {
22990
22991
  const pos = getNodePos();
22991
22992
  parseExpected(19 /* OpenBraceToken */);
22992
- const elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement);
22993
+ const elements = allowInAnd(() => parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement));
22993
22994
  parseExpected(20 /* CloseBraceToken */);
22994
22995
  return finishNode(factory2.createObjectBindingPattern(elements), pos);
22995
22996
  }
22996
22997
  function parseArrayBindingPattern() {
22997
22998
  const pos = getNodePos();
22998
22999
  parseExpected(23 /* OpenBracketToken */);
22999
- const elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement);
23000
+ const elements = allowInAnd(() => parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement));
23000
23001
  parseExpected(24 /* CloseBracketToken */);
23001
23002
  return finishNode(factory2.createArrayBindingPattern(elements), pos);
23002
23003
  }
@@ -23514,6 +23515,9 @@ var Parser;
23514
23515
  }
23515
23516
  function parseTypeAliasDeclaration(pos, hasJSDoc, modifiers) {
23516
23517
  parseExpected(156 /* TypeKeyword */);
23518
+ if (scanner.hasPrecedingLineBreak()) {
23519
+ parseErrorAtCurrentToken(Diagnostics.Line_break_not_permitted_here);
23520
+ }
23517
23521
  const name = parseIdentifier();
23518
23522
  const typeParameters = parseTypeParameters();
23519
23523
  parseExpected(64 /* EqualsToken */);
@@ -25415,7 +25419,7 @@ function getNamedArgRegEx(name) {
25415
25419
  return result;
25416
25420
  }
25417
25421
  var tripleSlashXMLCommentStartRegEx = /^\/\/\/\s*<(\S+)\s.*?\/>/im;
25418
- var singleLinePragmaRegEx = /^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;
25422
+ var singleLinePragmaRegEx = /^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;
25419
25423
  function extractPragmas(pragmas, range, text) {
25420
25424
  const tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text);
25421
25425
  if (tripleSlash) {
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.2.0-pr-55052-3",
5
+ "version": "5.2.0-pr-52095-16",
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": "4c0125c23185bb0cba8a8f4397a0748662da3d8c"
117
+ "gitHead": "50adcbc61a52891e41529278e8225593f95a63ff"
118
118
  }