typescript 6.0.0-dev.20251219 → 6.0.0-dev.20251220
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 +7 -7
- package/lib/typescript.js +7 -7
- package/package.json +2 -2
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20251220`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -86616,8 +86616,8 @@ function createTypeChecker(host) {
|
|
|
86616
86616
|
}
|
|
86617
86617
|
(reportedUnreachableNodes ?? (reportedUnreachableNodes = /* @__PURE__ */ new Set())).add(node);
|
|
86618
86618
|
const sourceFile = getSourceFileOfNode(node);
|
|
86619
|
-
let
|
|
86620
|
-
let
|
|
86619
|
+
let startNode = node;
|
|
86620
|
+
let endNode = node;
|
|
86621
86621
|
const parent = node.parent;
|
|
86622
86622
|
if (canHaveStatements(parent)) {
|
|
86623
86623
|
const statements = parent.statements;
|
|
@@ -86641,12 +86641,12 @@ function createTypeChecker(host) {
|
|
|
86641
86641
|
last2 = i;
|
|
86642
86642
|
reportedUnreachableNodes.add(nextNode);
|
|
86643
86643
|
}
|
|
86644
|
-
|
|
86645
|
-
|
|
86644
|
+
startNode = statements[first2];
|
|
86645
|
+
endNode = statements[last2];
|
|
86646
86646
|
}
|
|
86647
86647
|
}
|
|
86648
|
-
start =
|
|
86649
|
-
addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, end - start, Diagnostics.Unreachable_code_detected));
|
|
86648
|
+
const start = getTokenPosOfNode(startNode, sourceFile);
|
|
86649
|
+
addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, endNode.end - start, Diagnostics.Unreachable_code_detected));
|
|
86650
86650
|
return true;
|
|
86651
86651
|
}
|
|
86652
86652
|
function isSourceElementUnreachable(node) {
|
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 = "6.0";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20251220`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -91244,8 +91244,8 @@ function createTypeChecker(host) {
|
|
|
91244
91244
|
}
|
|
91245
91245
|
(reportedUnreachableNodes ?? (reportedUnreachableNodes = /* @__PURE__ */ new Set())).add(node);
|
|
91246
91246
|
const sourceFile = getSourceFileOfNode(node);
|
|
91247
|
-
let
|
|
91248
|
-
let
|
|
91247
|
+
let startNode2 = node;
|
|
91248
|
+
let endNode2 = node;
|
|
91249
91249
|
const parent2 = node.parent;
|
|
91250
91250
|
if (canHaveStatements(parent2)) {
|
|
91251
91251
|
const statements = parent2.statements;
|
|
@@ -91269,12 +91269,12 @@ function createTypeChecker(host) {
|
|
|
91269
91269
|
last2 = i;
|
|
91270
91270
|
reportedUnreachableNodes.add(nextNode);
|
|
91271
91271
|
}
|
|
91272
|
-
|
|
91273
|
-
|
|
91272
|
+
startNode2 = statements[first2];
|
|
91273
|
+
endNode2 = statements[last2];
|
|
91274
91274
|
}
|
|
91275
91275
|
}
|
|
91276
|
-
start =
|
|
91277
|
-
addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, end - start, Diagnostics.Unreachable_code_detected));
|
|
91276
|
+
const start = getTokenPosOfNode(startNode2, sourceFile);
|
|
91277
|
+
addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, endNode2.end - start, Diagnostics.Unreachable_code_detected));
|
|
91278
91278
|
return true;
|
|
91279
91279
|
}
|
|
91280
91280
|
function isSourceElementUnreachable(node) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "6.0.0-dev.
|
|
5
|
+
"version": "6.0.0-dev.20251220",
|
|
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": "
|
|
118
|
+
"gitHead": "2dfdbbabae955186f821925c629a37d8df76bab2"
|
|
119
119
|
}
|