@typescript-deploys/pr-build 5.4.0-pr-56358-6 → 5.4.0-pr-55061-8

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.4";
21
- var version = `${versionMajorMinor}.0-insiders.20231109`;
21
+ var version = `${versionMajorMinor}.0-insiders.20231110`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -40404,14 +40404,9 @@ function createBinder() {
40404
40404
  const clauses = node.clauses;
40405
40405
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
40406
40406
  let fallthroughFlow = unreachableFlow;
40407
- let afterPreviousClauseFlow;
40408
40407
  for (let i = 0; i < clauses.length; i++) {
40409
40408
  const clauseStart = i;
40410
40409
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
40411
- if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
40412
- currentFlow = preSwitchCaseFlow;
40413
- afterPreviousClauseFlow = void 0;
40414
- }
40415
40410
  bind(clauses[i]);
40416
40411
  i++;
40417
40412
  }
@@ -40421,7 +40416,7 @@ function createBinder() {
40421
40416
  currentFlow = finishFlowLabel(preCaseLabel);
40422
40417
  const clause = clauses[i];
40423
40418
  bind(clause);
40424
- fallthroughFlow = afterPreviousClauseFlow = currentFlow;
40419
+ fallthroughFlow = currentFlow;
40425
40420
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
40426
40421
  clause.fallthroughFlowNode = currentFlow;
40427
40422
  }
package/lib/tsserver.js CHANGED
@@ -2330,7 +2330,7 @@ module.exports = __toCommonJS(server_exports);
2330
2330
 
2331
2331
  // src/compiler/corePublic.ts
2332
2332
  var versionMajorMinor = "5.4";
2333
- var version = `${versionMajorMinor}.0-insiders.20231109`;
2333
+ var version = `${versionMajorMinor}.0-insiders.20231110`;
2334
2334
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2335
2335
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2336
2336
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -45067,14 +45067,9 @@ function createBinder() {
45067
45067
  const clauses = node.clauses;
45068
45068
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
45069
45069
  let fallthroughFlow = unreachableFlow;
45070
- let afterPreviousClauseFlow;
45071
45070
  for (let i = 0; i < clauses.length; i++) {
45072
45071
  const clauseStart = i;
45073
45072
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
45074
- if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
45075
- currentFlow = preSwitchCaseFlow;
45076
- afterPreviousClauseFlow = void 0;
45077
- }
45078
45073
  bind(clauses[i]);
45079
45074
  i++;
45080
45075
  }
@@ -45084,7 +45079,7 @@ function createBinder() {
45084
45079
  currentFlow = finishFlowLabel(preCaseLabel);
45085
45080
  const clause = clauses[i];
45086
45081
  bind(clause);
45087
- fallthroughFlow = afterPreviousClauseFlow = currentFlow;
45082
+ fallthroughFlow = currentFlow;
45088
45083
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
45089
45084
  clause.fallthroughFlowNode = currentFlow;
45090
45085
  }
@@ -160049,9 +160044,13 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160049
160044
  }
160050
160045
  return scope;
160051
160046
  }
160047
+ function isInDifferentLineWithContextToken(contextToken2, position2) {
160048
+ return sourceFile.getLineEndOfPosition(contextToken2.getEnd()) < position2;
160049
+ }
160052
160050
  function isCompletionListBlocker(contextToken2) {
160053
160051
  const start3 = timestamp();
160054
- const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
160052
+ const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || // GH#54729 ignore this case when current position is in a newline
160053
+ isSolelyIdentifierDefinitionLocation(contextToken2) && !isInDifferentLineWithContextToken(contextToken2, position) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
160055
160054
  log("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start3));
160056
160055
  return result;
160057
160056
  }
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-insiders.20231109`;
38
+ version = `${versionMajorMinor}.0-insiders.20231110`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -42912,14 +42912,9 @@ ${lanes.join("\n")}
42912
42912
  const clauses = node.clauses;
42913
42913
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
42914
42914
  let fallthroughFlow = unreachableFlow;
42915
- let afterPreviousClauseFlow;
42916
42915
  for (let i = 0; i < clauses.length; i++) {
42917
42916
  const clauseStart = i;
42918
42917
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
42919
- if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
42920
- currentFlow = preSwitchCaseFlow;
42921
- afterPreviousClauseFlow = void 0;
42922
- }
42923
42918
  bind(clauses[i]);
42924
42919
  i++;
42925
42920
  }
@@ -42929,7 +42924,7 @@ ${lanes.join("\n")}
42929
42924
  currentFlow = finishFlowLabel(preCaseLabel);
42930
42925
  const clause = clauses[i];
42931
42926
  bind(clause);
42932
- fallthroughFlow = afterPreviousClauseFlow = currentFlow;
42927
+ fallthroughFlow = currentFlow;
42933
42928
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
42934
42929
  clause.fallthroughFlowNode = currentFlow;
42935
42930
  }
@@ -159263,9 +159258,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159263
159258
  }
159264
159259
  return scope;
159265
159260
  }
159261
+ function isInDifferentLineWithContextToken(contextToken2, position2) {
159262
+ return sourceFile.getLineEndOfPosition(contextToken2.getEnd()) < position2;
159263
+ }
159266
159264
  function isCompletionListBlocker(contextToken2) {
159267
159265
  const start2 = timestamp();
159268
- const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
159266
+ const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || // GH#54729 ignore this case when current position is in a newline
159267
+ isSolelyIdentifierDefinitionLocation(contextToken2) && !isInDifferentLineWithContextToken(contextToken2, position) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
159269
159268
  log("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start2));
159270
159269
  return result;
159271
159270
  }
@@ -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.20231109`;
57
+ var version = `${versionMajorMinor}.0-insiders.20231110`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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-56358-6",
5
+ "version": "5.4.0-pr-55061-8",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "2f4cd21b78f16a6222d1c9b3eb2834385c7d8986"
118
+ "gitHead": "7d6ad0a046f626292c3f7837023619b421f7b199"
119
119
  }