@typescript-deploys/pr-build 5.8.0-pr-60898-2 → 5.8.0-pr-60950-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/_tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.8";
21
- var version = `${versionMajorMinor}.0-insiders.20250118`;
21
+ var version = `${versionMajorMinor}.0-insiders.20250121`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -42866,13 +42866,16 @@ function createBinder() {
42866
42866
  function bindForStatement(node) {
42867
42867
  const preLoopLabel = setContinueTarget(node, createLoopLabel());
42868
42868
  const preBodyLabel = createBranchLabel();
42869
+ const preIncrementorLabel = createBranchLabel();
42869
42870
  const postLoopLabel = createBranchLabel();
42870
42871
  bind(node.initializer);
42871
42872
  addAntecedent(preLoopLabel, currentFlow);
42872
42873
  currentFlow = preLoopLabel;
42873
42874
  bindCondition(node.condition, preBodyLabel, postLoopLabel);
42874
42875
  currentFlow = finishFlowLabel(preBodyLabel);
42875
- bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
42876
+ bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
42877
+ addAntecedent(preIncrementorLabel, currentFlow);
42878
+ currentFlow = finishFlowLabel(preIncrementorLabel);
42876
42879
  bind(node.incrementor);
42877
42880
  addAntecedent(preLoopLabel, currentFlow);
42878
42881
  currentFlow = finishFlowLabel(postLoopLabel);
@@ -112825,11 +112828,7 @@ function createGetIsolatedDeclarationErrors(resolver) {
112825
112828
  if (isSetAccessor(node.parent)) {
112826
112829
  return createAccessorTypeError(node.parent);
112827
112830
  }
112828
- const addUndefined = resolver.requiresAddingImplicitUndefined(
112829
- node,
112830
- /*enclosingDeclaration*/
112831
- void 0
112832
- );
112831
+ const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
112833
112832
  if (!addUndefined && node.initializer) {
112834
112833
  return createExpressionError(node.initializer);
112835
112834
  }
package/lib/typescript.js CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "5.8";
2288
- var version = `${versionMajorMinor}.0-insiders.20250118`;
2288
+ var version = `${versionMajorMinor}.0-insiders.20250121`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -47376,13 +47376,16 @@ function createBinder() {
47376
47376
  function bindForStatement(node) {
47377
47377
  const preLoopLabel = setContinueTarget(node, createLoopLabel());
47378
47378
  const preBodyLabel = createBranchLabel();
47379
+ const preIncrementorLabel = createBranchLabel();
47379
47380
  const postLoopLabel = createBranchLabel();
47380
47381
  bind(node.initializer);
47381
47382
  addAntecedent(preLoopLabel, currentFlow);
47382
47383
  currentFlow = preLoopLabel;
47383
47384
  bindCondition(node.condition, preBodyLabel, postLoopLabel);
47384
47385
  currentFlow = finishFlowLabel(preBodyLabel);
47385
- bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
47386
+ bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
47387
+ addAntecedent(preIncrementorLabel, currentFlow);
47388
+ currentFlow = finishFlowLabel(preIncrementorLabel);
47386
47389
  bind(node.incrementor);
47387
47390
  addAntecedent(preLoopLabel, currentFlow);
47388
47391
  currentFlow = finishFlowLabel(postLoopLabel);
@@ -117617,11 +117620,7 @@ function createGetIsolatedDeclarationErrors(resolver) {
117617
117620
  if (isSetAccessor(node.parent)) {
117618
117621
  return createAccessorTypeError(node.parent);
117619
117622
  }
117620
- const addUndefined = resolver.requiresAddingImplicitUndefined(
117621
- node,
117622
- /*enclosingDeclaration*/
117623
- void 0
117624
- );
117623
+ const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
117625
117624
  if (!addUndefined && node.initializer) {
117626
117625
  return createExpressionError(node.initializer);
117627
117626
  }
@@ -161639,6 +161638,8 @@ registerCodeFix({
161639
161638
  break;
161640
161639
  } else if (canDeleteEntireVariableStatement(sourceFile, token)) {
161641
161640
  deleteEntireVariableStatement(changes, sourceFile, token.parent);
161641
+ } else if (isIdentifier(token) && isFunctionDeclaration(token.parent)) {
161642
+ deleteFunctionLikeDeclaration(changes, sourceFile, token.parent);
161642
161643
  } else {
161643
161644
  tryDeleteDeclaration(
161644
161645
  sourceFile,
@@ -182184,12 +182185,6 @@ var SmartIndenter;
182184
182185
  return false;
182185
182186
  }
182186
182187
  break;
182187
- case 258 /* TryStatement */:
182188
- const tryStatement = parent2;
182189
- if (tryStatement.finallyBlock && tryStatement.finallyBlock === child) {
182190
- return false;
182191
- }
182192
- break;
182193
182188
  }
182194
182189
  return indentByDefault;
182195
182190
  }
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.8.0-pr-60898-2",
5
+ "version": "5.8.0-pr-60950-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [