@typescript-deploys/pr-build 5.3.0-pr-55438-2 → 5.3.0-pr-55442-5
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 +43 -8
- package/lib/tsserver.js +43 -8
- package/lib/typescript.js +43 -8
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -48232,6 +48232,28 @@ function createTypeChecker(host) {
|
|
|
48232
48232
|
const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context);
|
|
48233
48233
|
context.enclosingDeclaration = saveEnclosingDeclaration;
|
|
48234
48234
|
context.approximateLength += symbolName(propertySymbol).length + 1;
|
|
48235
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
48236
|
+
const writeType = getWriteTypeOfSymbol(propertySymbol);
|
|
48237
|
+
if (propertyType !== writeType) {
|
|
48238
|
+
const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */);
|
|
48239
|
+
const getterSignature = getSignatureFromDeclaration(getterDeclaration);
|
|
48240
|
+
typeElements.push(
|
|
48241
|
+
setCommentRange(
|
|
48242
|
+
signatureToSignatureDeclarationHelper(getterSignature, 177 /* GetAccessor */, context, { name: propertyName }),
|
|
48243
|
+
getterDeclaration
|
|
48244
|
+
)
|
|
48245
|
+
);
|
|
48246
|
+
const setterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* SetAccessor */);
|
|
48247
|
+
const setterSignature = getSignatureFromDeclaration(setterDeclaration);
|
|
48248
|
+
typeElements.push(
|
|
48249
|
+
setCommentRange(
|
|
48250
|
+
signatureToSignatureDeclarationHelper(setterSignature, 178 /* SetAccessor */, context, { name: propertyName }),
|
|
48251
|
+
setterDeclaration
|
|
48252
|
+
)
|
|
48253
|
+
);
|
|
48254
|
+
return;
|
|
48255
|
+
}
|
|
48256
|
+
}
|
|
48235
48257
|
const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0;
|
|
48236
48258
|
if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) {
|
|
48237
48259
|
const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */);
|
|
@@ -48269,9 +48291,9 @@ function createTypeChecker(host) {
|
|
|
48269
48291
|
typeElements.push(preserveCommentsOn(propertySignature));
|
|
48270
48292
|
function preserveCommentsOn(node) {
|
|
48271
48293
|
var _a2;
|
|
48272
|
-
|
|
48273
|
-
|
|
48274
|
-
const commentText = getTextOfJSDocComment(
|
|
48294
|
+
const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 355 /* JSDocPropertyTag */);
|
|
48295
|
+
if (jsdocPropertyTag) {
|
|
48296
|
+
const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment);
|
|
48275
48297
|
if (commentText) {
|
|
48276
48298
|
setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]);
|
|
48277
48299
|
}
|
|
@@ -50571,7 +50593,15 @@ function createTypeChecker(host) {
|
|
|
50571
50593
|
const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration);
|
|
50572
50594
|
return getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) && !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class
|
|
50573
50595
|
!!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) && !length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK
|
|
50574
|
-
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) =>
|
|
50596
|
+
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => {
|
|
50597
|
+
if (!isIdentifierText(symbolName(p), languageVersion)) {
|
|
50598
|
+
return false;
|
|
50599
|
+
}
|
|
50600
|
+
if (!(p.flags & 98304 /* Accessor */)) {
|
|
50601
|
+
return true;
|
|
50602
|
+
}
|
|
50603
|
+
return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p);
|
|
50604
|
+
});
|
|
50575
50605
|
}
|
|
50576
50606
|
function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
|
|
50577
50607
|
return function serializePropertySymbol(p, isStatic2, baseType) {
|
|
@@ -53028,7 +53058,7 @@ function createTypeChecker(host) {
|
|
|
53028
53058
|
if (!lateSymbol)
|
|
53029
53059
|
lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */));
|
|
53030
53060
|
const earlySymbol = earlySymbols && earlySymbols.get(memberName);
|
|
53031
|
-
if (
|
|
53061
|
+
if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {
|
|
53032
53062
|
const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;
|
|
53033
53063
|
const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName);
|
|
53034
53064
|
forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));
|
|
@@ -58443,7 +58473,12 @@ function createTypeChecker(host) {
|
|
|
58443
58473
|
function instantiateSymbol(symbol, mapper) {
|
|
58444
58474
|
const links = getSymbolLinks(symbol);
|
|
58445
58475
|
if (links.type && !couldContainTypeVariables(links.type)) {
|
|
58446
|
-
|
|
58476
|
+
if (!(symbol.flags & 65536 /* SetAccessor */)) {
|
|
58477
|
+
return symbol;
|
|
58478
|
+
}
|
|
58479
|
+
if (links.writeType && !couldContainTypeVariables(links.writeType)) {
|
|
58480
|
+
return symbol;
|
|
58481
|
+
}
|
|
58447
58482
|
}
|
|
58448
58483
|
if (getCheckFlags(symbol) & 1 /* Instantiated */) {
|
|
58449
58484
|
symbol = links.target;
|
|
@@ -75036,7 +75071,7 @@ function createTypeChecker(host) {
|
|
|
75036
75071
|
const isPrivate = isPrivateIdentifier(name);
|
|
75037
75072
|
const privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0;
|
|
75038
75073
|
const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames;
|
|
75039
|
-
const memberName = name &&
|
|
75074
|
+
const memberName = name && getPropertyNameForPropertyNameNode(name);
|
|
75040
75075
|
if (memberName) {
|
|
75041
75076
|
switch (member.kind) {
|
|
75042
75077
|
case 177 /* GetAccessor */:
|
|
@@ -75083,7 +75118,7 @@ function createTypeChecker(host) {
|
|
|
75083
75118
|
const memberNameNode = member.name;
|
|
75084
75119
|
const isStaticMember = isStatic(member);
|
|
75085
75120
|
if (isStaticMember && memberNameNode) {
|
|
75086
|
-
const memberName =
|
|
75121
|
+
const memberName = getPropertyNameForPropertyNameNode(memberNameNode);
|
|
75087
75122
|
switch (memberName) {
|
|
75088
75123
|
case "name":
|
|
75089
75124
|
case "length":
|
package/lib/tsserver.js
CHANGED
|
@@ -52934,6 +52934,28 @@ function createTypeChecker(host) {
|
|
|
52934
52934
|
const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context);
|
|
52935
52935
|
context.enclosingDeclaration = saveEnclosingDeclaration;
|
|
52936
52936
|
context.approximateLength += symbolName(propertySymbol).length + 1;
|
|
52937
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
52938
|
+
const writeType = getWriteTypeOfSymbol(propertySymbol);
|
|
52939
|
+
if (propertyType !== writeType) {
|
|
52940
|
+
const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */);
|
|
52941
|
+
const getterSignature = getSignatureFromDeclaration(getterDeclaration);
|
|
52942
|
+
typeElements.push(
|
|
52943
|
+
setCommentRange(
|
|
52944
|
+
signatureToSignatureDeclarationHelper(getterSignature, 177 /* GetAccessor */, context, { name: propertyName }),
|
|
52945
|
+
getterDeclaration
|
|
52946
|
+
)
|
|
52947
|
+
);
|
|
52948
|
+
const setterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* SetAccessor */);
|
|
52949
|
+
const setterSignature = getSignatureFromDeclaration(setterDeclaration);
|
|
52950
|
+
typeElements.push(
|
|
52951
|
+
setCommentRange(
|
|
52952
|
+
signatureToSignatureDeclarationHelper(setterSignature, 178 /* SetAccessor */, context, { name: propertyName }),
|
|
52953
|
+
setterDeclaration
|
|
52954
|
+
)
|
|
52955
|
+
);
|
|
52956
|
+
return;
|
|
52957
|
+
}
|
|
52958
|
+
}
|
|
52937
52959
|
const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0;
|
|
52938
52960
|
if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) {
|
|
52939
52961
|
const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */);
|
|
@@ -52971,9 +52993,9 @@ function createTypeChecker(host) {
|
|
|
52971
52993
|
typeElements.push(preserveCommentsOn(propertySignature));
|
|
52972
52994
|
function preserveCommentsOn(node) {
|
|
52973
52995
|
var _a2;
|
|
52974
|
-
|
|
52975
|
-
|
|
52976
|
-
const commentText = getTextOfJSDocComment(
|
|
52996
|
+
const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 355 /* JSDocPropertyTag */);
|
|
52997
|
+
if (jsdocPropertyTag) {
|
|
52998
|
+
const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment);
|
|
52977
52999
|
if (commentText) {
|
|
52978
53000
|
setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]);
|
|
52979
53001
|
}
|
|
@@ -55273,7 +55295,15 @@ function createTypeChecker(host) {
|
|
|
55273
55295
|
const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration);
|
|
55274
55296
|
return getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) && !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class
|
|
55275
55297
|
!!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) && !length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK
|
|
55276
|
-
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) =>
|
|
55298
|
+
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => {
|
|
55299
|
+
if (!isIdentifierText(symbolName(p), languageVersion)) {
|
|
55300
|
+
return false;
|
|
55301
|
+
}
|
|
55302
|
+
if (!(p.flags & 98304 /* Accessor */)) {
|
|
55303
|
+
return true;
|
|
55304
|
+
}
|
|
55305
|
+
return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p);
|
|
55306
|
+
});
|
|
55277
55307
|
}
|
|
55278
55308
|
function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
|
|
55279
55309
|
return function serializePropertySymbol(p, isStatic2, baseType) {
|
|
@@ -57730,7 +57760,7 @@ function createTypeChecker(host) {
|
|
|
57730
57760
|
if (!lateSymbol)
|
|
57731
57761
|
lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */));
|
|
57732
57762
|
const earlySymbol = earlySymbols && earlySymbols.get(memberName);
|
|
57733
|
-
if (
|
|
57763
|
+
if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {
|
|
57734
57764
|
const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;
|
|
57735
57765
|
const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName);
|
|
57736
57766
|
forEach(declarations, (declaration) => error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));
|
|
@@ -63145,7 +63175,12 @@ function createTypeChecker(host) {
|
|
|
63145
63175
|
function instantiateSymbol(symbol, mapper) {
|
|
63146
63176
|
const links = getSymbolLinks(symbol);
|
|
63147
63177
|
if (links.type && !couldContainTypeVariables(links.type)) {
|
|
63148
|
-
|
|
63178
|
+
if (!(symbol.flags & 65536 /* SetAccessor */)) {
|
|
63179
|
+
return symbol;
|
|
63180
|
+
}
|
|
63181
|
+
if (links.writeType && !couldContainTypeVariables(links.writeType)) {
|
|
63182
|
+
return symbol;
|
|
63183
|
+
}
|
|
63149
63184
|
}
|
|
63150
63185
|
if (getCheckFlags(symbol) & 1 /* Instantiated */) {
|
|
63151
63186
|
symbol = links.target;
|
|
@@ -79738,7 +79773,7 @@ function createTypeChecker(host) {
|
|
|
79738
79773
|
const isPrivate = isPrivateIdentifier(name);
|
|
79739
79774
|
const privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0;
|
|
79740
79775
|
const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames;
|
|
79741
|
-
const memberName = name &&
|
|
79776
|
+
const memberName = name && getPropertyNameForPropertyNameNode(name);
|
|
79742
79777
|
if (memberName) {
|
|
79743
79778
|
switch (member.kind) {
|
|
79744
79779
|
case 177 /* GetAccessor */:
|
|
@@ -79785,7 +79820,7 @@ function createTypeChecker(host) {
|
|
|
79785
79820
|
const memberNameNode = member.name;
|
|
79786
79821
|
const isStaticMember = isStatic(member);
|
|
79787
79822
|
if (isStaticMember && memberNameNode) {
|
|
79788
|
-
const memberName =
|
|
79823
|
+
const memberName = getPropertyNameForPropertyNameNode(memberNameNode);
|
|
79789
79824
|
switch (memberName) {
|
|
79790
79825
|
case "name":
|
|
79791
79826
|
case "length":
|
package/lib/typescript.js
CHANGED
|
@@ -50701,6 +50701,28 @@ ${lanes.join("\n")}
|
|
|
50701
50701
|
const propertyName = getPropertyNameNodeForSymbol(propertySymbol, context);
|
|
50702
50702
|
context.enclosingDeclaration = saveEnclosingDeclaration;
|
|
50703
50703
|
context.approximateLength += symbolName(propertySymbol).length + 1;
|
|
50704
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
50705
|
+
const writeType = getWriteTypeOfSymbol(propertySymbol);
|
|
50706
|
+
if (propertyType !== writeType) {
|
|
50707
|
+
const getterDeclaration = getDeclarationOfKind(propertySymbol, 177 /* GetAccessor */);
|
|
50708
|
+
const getterSignature = getSignatureFromDeclaration(getterDeclaration);
|
|
50709
|
+
typeElements.push(
|
|
50710
|
+
setCommentRange(
|
|
50711
|
+
signatureToSignatureDeclarationHelper(getterSignature, 177 /* GetAccessor */, context, { name: propertyName }),
|
|
50712
|
+
getterDeclaration
|
|
50713
|
+
)
|
|
50714
|
+
);
|
|
50715
|
+
const setterDeclaration = getDeclarationOfKind(propertySymbol, 178 /* SetAccessor */);
|
|
50716
|
+
const setterSignature = getSignatureFromDeclaration(setterDeclaration);
|
|
50717
|
+
typeElements.push(
|
|
50718
|
+
setCommentRange(
|
|
50719
|
+
signatureToSignatureDeclarationHelper(setterSignature, 178 /* SetAccessor */, context, { name: propertyName }),
|
|
50720
|
+
setterDeclaration
|
|
50721
|
+
)
|
|
50722
|
+
);
|
|
50723
|
+
return;
|
|
50724
|
+
}
|
|
50725
|
+
}
|
|
50704
50726
|
const optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0;
|
|
50705
50727
|
if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) {
|
|
50706
50728
|
const signatures = getSignaturesOfType(filterType(propertyType, (t) => !(t.flags & 32768 /* Undefined */)), 0 /* Call */);
|
|
@@ -50738,9 +50760,9 @@ ${lanes.join("\n")}
|
|
|
50738
50760
|
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50739
50761
|
function preserveCommentsOn(node) {
|
|
50740
50762
|
var _a2;
|
|
50741
|
-
|
|
50742
|
-
|
|
50743
|
-
const commentText = getTextOfJSDocComment(
|
|
50763
|
+
const jsdocPropertyTag = (_a2 = propertySymbol.declarations) == null ? void 0 : _a2.find((d) => d.kind === 355 /* JSDocPropertyTag */);
|
|
50764
|
+
if (jsdocPropertyTag) {
|
|
50765
|
+
const commentText = getTextOfJSDocComment(jsdocPropertyTag.comment);
|
|
50744
50766
|
if (commentText) {
|
|
50745
50767
|
setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: "*\n * " + commentText.replace(/\n/g, "\n * ") + "\n ", pos: -1, end: -1, hasTrailingNewLine: true }]);
|
|
50746
50768
|
}
|
|
@@ -53040,7 +53062,15 @@ ${lanes.join("\n")}
|
|
|
53040
53062
|
const ctxSrc = getSourceFileOfNode(context.enclosingDeclaration);
|
|
53041
53063
|
return getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) && !length(getIndexInfosOfType(typeToSerialize)) && !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class
|
|
53042
53064
|
!!(length(filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) && !length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK
|
|
53043
|
-
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) =>
|
|
53065
|
+
!getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) && !(typeToSerialize.symbol && some(typeToSerialize.symbol.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && !some(getPropertiesOfType(typeToSerialize), (p) => isLateBoundName(p.escapedName)) && !some(getPropertiesOfType(typeToSerialize), (p) => some(p.declarations, (d) => getSourceFileOfNode(d) !== ctxSrc)) && every(getPropertiesOfType(typeToSerialize), (p) => {
|
|
53066
|
+
if (!isIdentifierText(symbolName(p), languageVersion)) {
|
|
53067
|
+
return false;
|
|
53068
|
+
}
|
|
53069
|
+
if (!(p.flags & 98304 /* Accessor */)) {
|
|
53070
|
+
return true;
|
|
53071
|
+
}
|
|
53072
|
+
return getNonMissingTypeOfSymbol(p) === getWriteTypeOfSymbol(p);
|
|
53073
|
+
});
|
|
53044
53074
|
}
|
|
53045
53075
|
function makeSerializePropertySymbol(createProperty2, methodKind, useAccessors) {
|
|
53046
53076
|
return function serializePropertySymbol(p, isStatic2, baseType) {
|
|
@@ -55497,7 +55527,7 @@ ${lanes.join("\n")}
|
|
|
55497
55527
|
if (!lateSymbol)
|
|
55498
55528
|
lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */));
|
|
55499
55529
|
const earlySymbol = earlySymbols && earlySymbols.get(memberName);
|
|
55500
|
-
if (
|
|
55530
|
+
if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {
|
|
55501
55531
|
const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;
|
|
55502
55532
|
const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName);
|
|
55503
55533
|
forEach(declarations, (declaration) => error2(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));
|
|
@@ -60912,7 +60942,12 @@ ${lanes.join("\n")}
|
|
|
60912
60942
|
function instantiateSymbol(symbol, mapper) {
|
|
60913
60943
|
const links = getSymbolLinks(symbol);
|
|
60914
60944
|
if (links.type && !couldContainTypeVariables(links.type)) {
|
|
60915
|
-
|
|
60945
|
+
if (!(symbol.flags & 65536 /* SetAccessor */)) {
|
|
60946
|
+
return symbol;
|
|
60947
|
+
}
|
|
60948
|
+
if (links.writeType && !couldContainTypeVariables(links.writeType)) {
|
|
60949
|
+
return symbol;
|
|
60950
|
+
}
|
|
60916
60951
|
}
|
|
60917
60952
|
if (getCheckFlags(symbol) & 1 /* Instantiated */) {
|
|
60918
60953
|
symbol = links.target;
|
|
@@ -77505,7 +77540,7 @@ ${lanes.join("\n")}
|
|
|
77505
77540
|
const isPrivate = isPrivateIdentifier(name);
|
|
77506
77541
|
const privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0;
|
|
77507
77542
|
const names = isPrivate ? privateIdentifiers : isStaticMember ? staticNames : instanceNames;
|
|
77508
|
-
const memberName = name &&
|
|
77543
|
+
const memberName = name && getPropertyNameForPropertyNameNode(name);
|
|
77509
77544
|
if (memberName) {
|
|
77510
77545
|
switch (member.kind) {
|
|
77511
77546
|
case 177 /* GetAccessor */:
|
|
@@ -77552,7 +77587,7 @@ ${lanes.join("\n")}
|
|
|
77552
77587
|
const memberNameNode = member.name;
|
|
77553
77588
|
const isStaticMember = isStatic(member);
|
|
77554
77589
|
if (isStaticMember && memberNameNode) {
|
|
77555
|
-
const memberName =
|
|
77590
|
+
const memberName = getPropertyNameForPropertyNameNode(memberNameNode);
|
|
77556
77591
|
switch (memberName) {
|
|
77557
77592
|
case "name":
|
|
77558
77593
|
case "length":
|
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.3.0-pr-
|
|
5
|
+
"version": "5.3.0-pr-55442-5",
|
|
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": "e1fab87e45f6de3db89d9ba0334759fe01aee535"
|
|
117
117
|
}
|