typescript 5.2.0-dev.20230519 → 5.2.0-dev.20230521
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 +27 -29
- package/lib/tsserver.js +27 -29
- package/lib/tsserverlibrary.js +27 -29
- package/lib/typescript.js +27 -29
- 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.20230521`;
|
|
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) {
|
|
@@ -56216,31 +56216,28 @@ function createTypeChecker(host) {
|
|
|
56216
56216
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
56217
56217
|
}
|
|
56218
56218
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
56219
|
-
let
|
|
56219
|
+
let last2;
|
|
56220
56220
|
const types = [];
|
|
56221
56221
|
for (const sig of signatures) {
|
|
56222
56222
|
const pred = getTypePredicateOfSignature(sig);
|
|
56223
|
-
if (
|
|
56224
|
-
if (kind !==
|
|
56225
|
-
continue;
|
|
56226
|
-
} else {
|
|
56227
|
-
return;
|
|
56228
|
-
}
|
|
56229
|
-
}
|
|
56230
|
-
if (first2) {
|
|
56231
|
-
if (!typePredicateKindsMatch(first2, pred)) {
|
|
56223
|
+
if (pred) {
|
|
56224
|
+
if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) {
|
|
56232
56225
|
return void 0;
|
|
56233
56226
|
}
|
|
56227
|
+
last2 = pred;
|
|
56228
|
+
types.push(pred.type);
|
|
56234
56229
|
} else {
|
|
56235
|
-
|
|
56230
|
+
const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0;
|
|
56231
|
+
if (returnType !== falseType && returnType !== regularFalseType) {
|
|
56232
|
+
return void 0;
|
|
56233
|
+
}
|
|
56236
56234
|
}
|
|
56237
|
-
types.push(pred.type);
|
|
56238
56235
|
}
|
|
56239
|
-
if (!
|
|
56236
|
+
if (!last2) {
|
|
56240
56237
|
return void 0;
|
|
56241
56238
|
}
|
|
56242
56239
|
const compositeType = getUnionOrIntersectionType(types, kind);
|
|
56243
|
-
return createTypePredicate(
|
|
56240
|
+
return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType);
|
|
56244
56241
|
}
|
|
56245
56242
|
function typePredicateKindsMatch(a, b) {
|
|
56246
56243
|
return a.kind === b.kind && a.parameterIndex === b.parameterIndex;
|
|
@@ -58121,18 +58118,19 @@ function createTypeChecker(host) {
|
|
|
58121
58118
|
case 185 /* TypeQuery */:
|
|
58122
58119
|
const entityName = node2.exprName;
|
|
58123
58120
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
58124
|
-
|
|
58125
|
-
|
|
58126
|
-
|
|
58127
|
-
|
|
58128
|
-
|
|
58129
|
-
|
|
58130
|
-
|
|
58131
|
-
|
|
58132
|
-
|
|
58133
|
-
|
|
58134
|
-
|
|
58135
|
-
|
|
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
|
+
}
|
|
58136
58134
|
}
|
|
58137
58135
|
return true;
|
|
58138
58136
|
case 173 /* MethodDeclaration */:
|
|
@@ -81677,7 +81675,7 @@ function createTypeChecker(host) {
|
|
|
81677
81675
|
if (requestedExternalEmitHelperNames.has(name))
|
|
81678
81676
|
continue;
|
|
81679
81677
|
requestedExternalEmitHelperNames.add(name);
|
|
81680
|
-
const symbol = getSymbol(helpersModule
|
|
81678
|
+
const symbol = getSymbol(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */);
|
|
81681
81679
|
if (!symbol) {
|
|
81682
81680
|
error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);
|
|
81683
81681
|
} else if (helper & 524288 /* ClassPrivateFieldGet */) {
|
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.20230521`;
|
|
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) {
|
|
@@ -60867,31 +60867,28 @@ function createTypeChecker(host) {
|
|
|
60867
60867
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
60868
60868
|
}
|
|
60869
60869
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
60870
|
-
let
|
|
60870
|
+
let last2;
|
|
60871
60871
|
const types = [];
|
|
60872
60872
|
for (const sig of signatures) {
|
|
60873
60873
|
const pred = getTypePredicateOfSignature(sig);
|
|
60874
|
-
if (
|
|
60875
|
-
if (kind !==
|
|
60876
|
-
continue;
|
|
60877
|
-
} else {
|
|
60878
|
-
return;
|
|
60879
|
-
}
|
|
60880
|
-
}
|
|
60881
|
-
if (first2) {
|
|
60882
|
-
if (!typePredicateKindsMatch(first2, pred)) {
|
|
60874
|
+
if (pred) {
|
|
60875
|
+
if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) {
|
|
60883
60876
|
return void 0;
|
|
60884
60877
|
}
|
|
60878
|
+
last2 = pred;
|
|
60879
|
+
types.push(pred.type);
|
|
60885
60880
|
} else {
|
|
60886
|
-
|
|
60881
|
+
const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0;
|
|
60882
|
+
if (returnType !== falseType && returnType !== regularFalseType) {
|
|
60883
|
+
return void 0;
|
|
60884
|
+
}
|
|
60887
60885
|
}
|
|
60888
|
-
types.push(pred.type);
|
|
60889
60886
|
}
|
|
60890
|
-
if (!
|
|
60887
|
+
if (!last2) {
|
|
60891
60888
|
return void 0;
|
|
60892
60889
|
}
|
|
60893
60890
|
const compositeType = getUnionOrIntersectionType(types, kind);
|
|
60894
|
-
return createTypePredicate(
|
|
60891
|
+
return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType);
|
|
60895
60892
|
}
|
|
60896
60893
|
function typePredicateKindsMatch(a, b) {
|
|
60897
60894
|
return a.kind === b.kind && a.parameterIndex === b.parameterIndex;
|
|
@@ -62772,18 +62769,19 @@ function createTypeChecker(host) {
|
|
|
62772
62769
|
case 185 /* TypeQuery */:
|
|
62773
62770
|
const entityName = node2.exprName;
|
|
62774
62771
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
62775
|
-
|
|
62776
|
-
|
|
62777
|
-
|
|
62778
|
-
|
|
62779
|
-
|
|
62780
|
-
|
|
62781
|
-
|
|
62782
|
-
|
|
62783
|
-
|
|
62784
|
-
|
|
62785
|
-
|
|
62786
|
-
|
|
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
|
+
}
|
|
62787
62785
|
}
|
|
62788
62786
|
return true;
|
|
62789
62787
|
case 173 /* MethodDeclaration */:
|
|
@@ -86328,7 +86326,7 @@ function createTypeChecker(host) {
|
|
|
86328
86326
|
if (requestedExternalEmitHelperNames.has(name))
|
|
86329
86327
|
continue;
|
|
86330
86328
|
requestedExternalEmitHelperNames.add(name);
|
|
86331
|
-
const symbol = getSymbol2(helpersModule
|
|
86329
|
+
const symbol = getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */);
|
|
86332
86330
|
if (!symbol) {
|
|
86333
86331
|
error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);
|
|
86334
86332
|
} else if (helper & 524288 /* ClassPrivateFieldGet */) {
|
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.20230521`;
|
|
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) {
|
|
@@ -58658,31 +58658,28 @@ ${lanes.join("\n")}
|
|
|
58658
58658
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
58659
58659
|
}
|
|
58660
58660
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
58661
|
-
let
|
|
58661
|
+
let last2;
|
|
58662
58662
|
const types = [];
|
|
58663
58663
|
for (const sig of signatures) {
|
|
58664
58664
|
const pred = getTypePredicateOfSignature(sig);
|
|
58665
|
-
if (
|
|
58666
|
-
if (kind !==
|
|
58667
|
-
continue;
|
|
58668
|
-
} else {
|
|
58669
|
-
return;
|
|
58670
|
-
}
|
|
58671
|
-
}
|
|
58672
|
-
if (first2) {
|
|
58673
|
-
if (!typePredicateKindsMatch(first2, pred)) {
|
|
58665
|
+
if (pred) {
|
|
58666
|
+
if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) {
|
|
58674
58667
|
return void 0;
|
|
58675
58668
|
}
|
|
58669
|
+
last2 = pred;
|
|
58670
|
+
types.push(pred.type);
|
|
58676
58671
|
} else {
|
|
58677
|
-
|
|
58672
|
+
const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0;
|
|
58673
|
+
if (returnType !== falseType && returnType !== regularFalseType) {
|
|
58674
|
+
return void 0;
|
|
58675
|
+
}
|
|
58678
58676
|
}
|
|
58679
|
-
types.push(pred.type);
|
|
58680
58677
|
}
|
|
58681
|
-
if (!
|
|
58678
|
+
if (!last2) {
|
|
58682
58679
|
return void 0;
|
|
58683
58680
|
}
|
|
58684
58681
|
const compositeType = getUnionOrIntersectionType(types, kind);
|
|
58685
|
-
return createTypePredicate(
|
|
58682
|
+
return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType);
|
|
58686
58683
|
}
|
|
58687
58684
|
function typePredicateKindsMatch(a, b) {
|
|
58688
58685
|
return a.kind === b.kind && a.parameterIndex === b.parameterIndex;
|
|
@@ -60563,18 +60560,19 @@ ${lanes.join("\n")}
|
|
|
60563
60560
|
case 185 /* TypeQuery */:
|
|
60564
60561
|
const entityName = node2.exprName;
|
|
60565
60562
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
60566
|
-
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
|
|
60570
|
-
|
|
60571
|
-
|
|
60572
|
-
|
|
60573
|
-
|
|
60574
|
-
|
|
60575
|
-
|
|
60576
|
-
|
|
60577
|
-
|
|
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
|
+
}
|
|
60578
60576
|
}
|
|
60579
60577
|
return true;
|
|
60580
60578
|
case 173 /* MethodDeclaration */:
|
|
@@ -84119,7 +84117,7 @@ ${lanes.join("\n")}
|
|
|
84119
84117
|
if (requestedExternalEmitHelperNames.has(name))
|
|
84120
84118
|
continue;
|
|
84121
84119
|
requestedExternalEmitHelperNames.add(name);
|
|
84122
|
-
const symbol = getSymbol2(helpersModule
|
|
84120
|
+
const symbol = getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */);
|
|
84123
84121
|
if (!symbol) {
|
|
84124
84122
|
error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);
|
|
84125
84123
|
} else if (helper & 524288 /* ClassPrivateFieldGet */) {
|
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.20230521`;
|
|
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) {
|
|
@@ -58658,31 +58658,28 @@ ${lanes.join("\n")}
|
|
|
58658
58658
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
58659
58659
|
}
|
|
58660
58660
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
58661
|
-
let
|
|
58661
|
+
let last2;
|
|
58662
58662
|
const types = [];
|
|
58663
58663
|
for (const sig of signatures) {
|
|
58664
58664
|
const pred = getTypePredicateOfSignature(sig);
|
|
58665
|
-
if (
|
|
58666
|
-
if (kind !==
|
|
58667
|
-
continue;
|
|
58668
|
-
} else {
|
|
58669
|
-
return;
|
|
58670
|
-
}
|
|
58671
|
-
}
|
|
58672
|
-
if (first2) {
|
|
58673
|
-
if (!typePredicateKindsMatch(first2, pred)) {
|
|
58665
|
+
if (pred) {
|
|
58666
|
+
if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) {
|
|
58674
58667
|
return void 0;
|
|
58675
58668
|
}
|
|
58669
|
+
last2 = pred;
|
|
58670
|
+
types.push(pred.type);
|
|
58676
58671
|
} else {
|
|
58677
|
-
|
|
58672
|
+
const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0;
|
|
58673
|
+
if (returnType !== falseType && returnType !== regularFalseType) {
|
|
58674
|
+
return void 0;
|
|
58675
|
+
}
|
|
58678
58676
|
}
|
|
58679
|
-
types.push(pred.type);
|
|
58680
58677
|
}
|
|
58681
|
-
if (!
|
|
58678
|
+
if (!last2) {
|
|
58682
58679
|
return void 0;
|
|
58683
58680
|
}
|
|
58684
58681
|
const compositeType = getUnionOrIntersectionType(types, kind);
|
|
58685
|
-
return createTypePredicate(
|
|
58682
|
+
return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType);
|
|
58686
58683
|
}
|
|
58687
58684
|
function typePredicateKindsMatch(a, b) {
|
|
58688
58685
|
return a.kind === b.kind && a.parameterIndex === b.parameterIndex;
|
|
@@ -60563,18 +60560,19 @@ ${lanes.join("\n")}
|
|
|
60563
60560
|
case 185 /* TypeQuery */:
|
|
60564
60561
|
const entityName = node2.exprName;
|
|
60565
60562
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
60566
|
-
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
|
|
60570
|
-
|
|
60571
|
-
|
|
60572
|
-
|
|
60573
|
-
|
|
60574
|
-
|
|
60575
|
-
|
|
60576
|
-
|
|
60577
|
-
|
|
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
|
+
}
|
|
60578
60576
|
}
|
|
60579
60577
|
return true;
|
|
60580
60578
|
case 173 /* MethodDeclaration */:
|
|
@@ -84119,7 +84117,7 @@ ${lanes.join("\n")}
|
|
|
84119
84117
|
if (requestedExternalEmitHelperNames.has(name))
|
|
84120
84118
|
continue;
|
|
84121
84119
|
requestedExternalEmitHelperNames.add(name);
|
|
84122
|
-
const symbol = getSymbol2(helpersModule
|
|
84120
|
+
const symbol = getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */);
|
|
84123
84121
|
if (!symbol) {
|
|
84124
84122
|
error(location, Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, externalHelpersModuleNameText, name);
|
|
84125
84123
|
} else if (helper & 524288 /* ClassPrivateFieldGet */) {
|
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.20230521`;
|
|
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.20230521",
|
|
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": "b1ef88c882ca64c7dc6f4ba8b1c578a6a77981e5"
|
|
117
117
|
}
|