typescript 5.2.0-dev.20230520 → 5.2.0-dev.20230522
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 +15 -14
- package/lib/tsserver.js +15 -14
- package/lib/tsserverlibrary.js +15 -14
- package/lib/typescript.js +15 -14
- package/lib/typingsInstaller.js +1 -1
- 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 = "5.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230522`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -53989,7 +53989,7 @@ function createTypeChecker(host) {
|
|
|
53989
53989
|
} else if (type !== firstType) {
|
|
53990
53990
|
checkFlags |= 64 /* HasNonUniformType */;
|
|
53991
53991
|
}
|
|
53992
|
-
if (isLiteralType(type) || isPatternLiteralType(type)
|
|
53992
|
+
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
53993
53993
|
checkFlags |= 128 /* HasLiteralType */;
|
|
53994
53994
|
}
|
|
53995
53995
|
if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) {
|
|
@@ -58118,18 +58118,19 @@ function createTypeChecker(host) {
|
|
|
58118
58118
|
case 185 /* TypeQuery */:
|
|
58119
58119
|
const entityName = node2.exprName;
|
|
58120
58120
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
58121
|
-
|
|
58122
|
-
|
|
58123
|
-
|
|
58124
|
-
|
|
58125
|
-
|
|
58126
|
-
|
|
58127
|
-
|
|
58128
|
-
|
|
58129
|
-
|
|
58130
|
-
|
|
58131
|
-
|
|
58132
|
-
|
|
58121
|
+
if (!isThisIdentifier(firstIdentifier)) {
|
|
58122
|
+
const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
58123
|
+
const tpDeclaration = tp.symbol.declarations[0];
|
|
58124
|
+
const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : (
|
|
58125
|
+
// Type parameter is a regular type parameter, e.g. foo<T>
|
|
58126
|
+
tp.isThisType ? tpDeclaration : (
|
|
58127
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
58128
|
+
void 0
|
|
58129
|
+
)
|
|
58130
|
+
);
|
|
58131
|
+
if (firstIdentifierSymbol.declarations && tpScope) {
|
|
58132
|
+
return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);
|
|
58133
|
+
}
|
|
58133
58134
|
}
|
|
58134
58135
|
return true;
|
|
58135
58136
|
case 173 /* MethodDeclaration */:
|
package/lib/tsserver.js
CHANGED
|
@@ -2304,7 +2304,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2304
2304
|
|
|
2305
2305
|
// src/compiler/corePublic.ts
|
|
2306
2306
|
var versionMajorMinor = "5.2";
|
|
2307
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2307
|
+
var version = `${versionMajorMinor}.0-dev.20230522`;
|
|
2308
2308
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2309
2309
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2310
2310
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -58640,7 +58640,7 @@ function createTypeChecker(host) {
|
|
|
58640
58640
|
} else if (type !== firstType) {
|
|
58641
58641
|
checkFlags |= 64 /* HasNonUniformType */;
|
|
58642
58642
|
}
|
|
58643
|
-
if (isLiteralType(type) || isPatternLiteralType(type)
|
|
58643
|
+
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
58644
58644
|
checkFlags |= 128 /* HasLiteralType */;
|
|
58645
58645
|
}
|
|
58646
58646
|
if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) {
|
|
@@ -62769,18 +62769,19 @@ function createTypeChecker(host) {
|
|
|
62769
62769
|
case 185 /* TypeQuery */:
|
|
62770
62770
|
const entityName = node2.exprName;
|
|
62771
62771
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
62772
|
-
|
|
62773
|
-
|
|
62774
|
-
|
|
62775
|
-
|
|
62776
|
-
|
|
62777
|
-
|
|
62778
|
-
|
|
62779
|
-
|
|
62780
|
-
|
|
62781
|
-
|
|
62782
|
-
|
|
62783
|
-
|
|
62772
|
+
if (!isThisIdentifier(firstIdentifier)) {
|
|
62773
|
+
const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
62774
|
+
const tpDeclaration = tp.symbol.declarations[0];
|
|
62775
|
+
const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : (
|
|
62776
|
+
// Type parameter is a regular type parameter, e.g. foo<T>
|
|
62777
|
+
tp.isThisType ? tpDeclaration : (
|
|
62778
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
62779
|
+
void 0
|
|
62780
|
+
)
|
|
62781
|
+
);
|
|
62782
|
+
if (firstIdentifierSymbol.declarations && tpScope) {
|
|
62783
|
+
return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);
|
|
62784
|
+
}
|
|
62784
62785
|
}
|
|
62785
62786
|
return true;
|
|
62786
62787
|
case 173 /* MethodDeclaration */:
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230522`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -56431,7 +56431,7 @@ ${lanes.join("\n")}
|
|
|
56431
56431
|
} else if (type !== firstType) {
|
|
56432
56432
|
checkFlags |= 64 /* HasNonUniformType */;
|
|
56433
56433
|
}
|
|
56434
|
-
if (isLiteralType(type) || isPatternLiteralType(type)
|
|
56434
|
+
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
56435
56435
|
checkFlags |= 128 /* HasLiteralType */;
|
|
56436
56436
|
}
|
|
56437
56437
|
if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) {
|
|
@@ -60560,18 +60560,19 @@ ${lanes.join("\n")}
|
|
|
60560
60560
|
case 185 /* TypeQuery */:
|
|
60561
60561
|
const entityName = node2.exprName;
|
|
60562
60562
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
60563
|
-
|
|
60564
|
-
|
|
60565
|
-
|
|
60566
|
-
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
|
|
60570
|
-
|
|
60571
|
-
|
|
60572
|
-
|
|
60573
|
-
|
|
60574
|
-
|
|
60563
|
+
if (!isThisIdentifier(firstIdentifier)) {
|
|
60564
|
+
const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
60565
|
+
const tpDeclaration = tp.symbol.declarations[0];
|
|
60566
|
+
const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : (
|
|
60567
|
+
// Type parameter is a regular type parameter, e.g. foo<T>
|
|
60568
|
+
tp.isThisType ? tpDeclaration : (
|
|
60569
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
60570
|
+
void 0
|
|
60571
|
+
)
|
|
60572
|
+
);
|
|
60573
|
+
if (firstIdentifierSymbol.declarations && tpScope) {
|
|
60574
|
+
return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);
|
|
60575
|
+
}
|
|
60575
60576
|
}
|
|
60576
60577
|
return true;
|
|
60577
60578
|
case 173 /* MethodDeclaration */:
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230522`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -56431,7 +56431,7 @@ ${lanes.join("\n")}
|
|
|
56431
56431
|
} else if (type !== firstType) {
|
|
56432
56432
|
checkFlags |= 64 /* HasNonUniformType */;
|
|
56433
56433
|
}
|
|
56434
|
-
if (isLiteralType(type) || isPatternLiteralType(type)
|
|
56434
|
+
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
56435
56435
|
checkFlags |= 128 /* HasLiteralType */;
|
|
56436
56436
|
}
|
|
56437
56437
|
if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) {
|
|
@@ -60560,18 +60560,19 @@ ${lanes.join("\n")}
|
|
|
60560
60560
|
case 185 /* TypeQuery */:
|
|
60561
60561
|
const entityName = node2.exprName;
|
|
60562
60562
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
60563
|
-
|
|
60564
|
-
|
|
60565
|
-
|
|
60566
|
-
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
|
|
60570
|
-
|
|
60571
|
-
|
|
60572
|
-
|
|
60573
|
-
|
|
60574
|
-
|
|
60563
|
+
if (!isThisIdentifier(firstIdentifier)) {
|
|
60564
|
+
const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
60565
|
+
const tpDeclaration = tp.symbol.declarations[0];
|
|
60566
|
+
const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : (
|
|
60567
|
+
// Type parameter is a regular type parameter, e.g. foo<T>
|
|
60568
|
+
tp.isThisType ? tpDeclaration : (
|
|
60569
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
60570
|
+
void 0
|
|
60571
|
+
)
|
|
60572
|
+
);
|
|
60573
|
+
if (firstIdentifierSymbol.declarations && tpScope) {
|
|
60574
|
+
return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);
|
|
60575
|
+
}
|
|
60575
60576
|
}
|
|
60576
60577
|
return true;
|
|
60577
60578
|
case 173 /* MethodDeclaration */:
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -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-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230522`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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": "5.2.0-dev.
|
|
5
|
+
"version": "5.2.0-dev.20230522",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "996aeb6aaf8d6a04f5b9f29085f062bca98642b2"
|
|
117
117
|
}
|