@typescript-deploys/pr-build 5.0.0-pr-52737-7 → 5.0.0-pr-52728-17
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 +4 -15
- package/lib/tsserver.js +7 -16
- package/lib/tsserverlibrary.js +7 -16
- package/lib/typescript.js +7 -16
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -42585,6 +42585,7 @@ function createTypeChecker(host) {
|
|
|
42585
42585
|
let inlineLevel = 0;
|
|
42586
42586
|
let currentNode;
|
|
42587
42587
|
let varianceTypeParameter;
|
|
42588
|
+
let isInferencePartiallyBlocked = false;
|
|
42588
42589
|
const emptySymbols = createSymbolTable();
|
|
42589
42590
|
const arrayVariances = [1 /* Covariant */];
|
|
42590
42591
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -43016,7 +43017,9 @@ function createTypeChecker(host) {
|
|
|
43016
43017
|
toMarkSkip = toMarkSkip.parent;
|
|
43017
43018
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
43018
43019
|
}
|
|
43020
|
+
isInferencePartiallyBlocked = true;
|
|
43019
43021
|
const result = runWithoutResolvedSignatureCaching(node, fn);
|
|
43022
|
+
isInferencePartiallyBlocked = false;
|
|
43020
43023
|
if (containingCall) {
|
|
43021
43024
|
let toMarkSkip = node;
|
|
43022
43025
|
do {
|
|
@@ -63066,7 +63069,6 @@ function createTypeChecker(host) {
|
|
|
63066
63069
|
if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
|
|
63067
63070
|
const constraintType = getConstraintTypeFromMappedType(target);
|
|
63068
63071
|
if (inferToMappedType(source, target, constraintType)) {
|
|
63069
|
-
inferFromMappedProperties(source, target);
|
|
63070
63072
|
return;
|
|
63071
63073
|
}
|
|
63072
63074
|
}
|
|
@@ -63167,19 +63169,6 @@ function createTypeChecker(host) {
|
|
|
63167
63169
|
}
|
|
63168
63170
|
}
|
|
63169
63171
|
}
|
|
63170
|
-
function inferFromMappedProperties(source, target) {
|
|
63171
|
-
const properties = getPropertiesOfObjectType(source);
|
|
63172
|
-
for (const sourceProp of properties) {
|
|
63173
|
-
if (!some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {
|
|
63174
|
-
const sourcePropType = getTypeOfSymbol(sourceProp);
|
|
63175
|
-
if (!couldContainTypeVariables(sourcePropType)) {
|
|
63176
|
-
continue;
|
|
63177
|
-
}
|
|
63178
|
-
const targetPropType = substituteIndexedMappedType(target, getStringLiteralType(unescapeLeadingUnderscores(sourceProp.escapedName)));
|
|
63179
|
-
inferFromTypes(sourcePropType, targetPropType);
|
|
63180
|
-
}
|
|
63181
|
-
}
|
|
63182
|
-
}
|
|
63183
63172
|
function inferFromSignatures(source, target, kind) {
|
|
63184
63173
|
const sourceSignatures = getSignaturesOfType(source, kind);
|
|
63185
63174
|
const targetSignatures = getSignaturesOfType(target, kind);
|
|
@@ -69672,7 +69661,7 @@ function createTypeChecker(host) {
|
|
|
69672
69661
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
69673
69662
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
69674
69663
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
69675
|
-
const reportErrors2 = !candidatesOutArray;
|
|
69664
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
69676
69665
|
let typeArguments;
|
|
69677
69666
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
69678
69667
|
typeArguments = node.typeArguments;
|
package/lib/tsserver.js
CHANGED
|
@@ -47161,6 +47161,7 @@ function createTypeChecker(host) {
|
|
|
47161
47161
|
let inlineLevel = 0;
|
|
47162
47162
|
let currentNode;
|
|
47163
47163
|
let varianceTypeParameter;
|
|
47164
|
+
let isInferencePartiallyBlocked = false;
|
|
47164
47165
|
const emptySymbols = createSymbolTable();
|
|
47165
47166
|
const arrayVariances = [1 /* Covariant */];
|
|
47166
47167
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -47592,7 +47593,9 @@ function createTypeChecker(host) {
|
|
|
47592
47593
|
toMarkSkip = toMarkSkip.parent;
|
|
47593
47594
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
47594
47595
|
}
|
|
47596
|
+
isInferencePartiallyBlocked = true;
|
|
47595
47597
|
const result = runWithoutResolvedSignatureCaching(node, fn);
|
|
47598
|
+
isInferencePartiallyBlocked = false;
|
|
47596
47599
|
if (containingCall) {
|
|
47597
47600
|
let toMarkSkip = node;
|
|
47598
47601
|
do {
|
|
@@ -67642,7 +67645,6 @@ function createTypeChecker(host) {
|
|
|
67642
67645
|
if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
|
|
67643
67646
|
const constraintType = getConstraintTypeFromMappedType(target);
|
|
67644
67647
|
if (inferToMappedType(source, target, constraintType)) {
|
|
67645
|
-
inferFromMappedProperties(source, target);
|
|
67646
67648
|
return;
|
|
67647
67649
|
}
|
|
67648
67650
|
}
|
|
@@ -67743,19 +67745,6 @@ function createTypeChecker(host) {
|
|
|
67743
67745
|
}
|
|
67744
67746
|
}
|
|
67745
67747
|
}
|
|
67746
|
-
function inferFromMappedProperties(source, target) {
|
|
67747
|
-
const properties = getPropertiesOfObjectType(source);
|
|
67748
|
-
for (const sourceProp of properties) {
|
|
67749
|
-
if (!some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {
|
|
67750
|
-
const sourcePropType = getTypeOfSymbol(sourceProp);
|
|
67751
|
-
if (!couldContainTypeVariables(sourcePropType)) {
|
|
67752
|
-
continue;
|
|
67753
|
-
}
|
|
67754
|
-
const targetPropType = substituteIndexedMappedType(target, getStringLiteralType(unescapeLeadingUnderscores(sourceProp.escapedName)));
|
|
67755
|
-
inferFromTypes(sourcePropType, targetPropType);
|
|
67756
|
-
}
|
|
67757
|
-
}
|
|
67758
|
-
}
|
|
67759
67748
|
function inferFromSignatures(source, target, kind) {
|
|
67760
67749
|
const sourceSignatures = getSignaturesOfType(source, kind);
|
|
67761
67750
|
const targetSignatures = getSignaturesOfType(target, kind);
|
|
@@ -74248,7 +74237,7 @@ function createTypeChecker(host) {
|
|
|
74248
74237
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
74249
74238
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
74250
74239
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
74251
|
-
const reportErrors2 = !candidatesOutArray;
|
|
74240
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
74252
74241
|
let typeArguments;
|
|
74253
74242
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
74254
74243
|
typeArguments = node.typeArguments;
|
|
@@ -148817,7 +148806,9 @@ function createCompletionEntry(symbol, sortText, replacementToken, contextToken,
|
|
|
148817
148806
|
}
|
|
148818
148807
|
awaitText += `(await ${propertyAccessToConvert.expression.getText()})`;
|
|
148819
148808
|
insertText = needsConvertPropertyAccess ? `${awaitText}${insertText}` : `${awaitText}${insertQuestionDot ? "?." : "."}${insertText}`;
|
|
148820
|
-
|
|
148809
|
+
const isInAwaitExpression = tryCast(propertyAccessToConvert.parent, isAwaitExpression);
|
|
148810
|
+
const wrapNode = isInAwaitExpression ? propertyAccessToConvert.parent : propertyAccessToConvert.expression;
|
|
148811
|
+
replacementSpan = createTextSpanFromBounds(wrapNode.getStart(sourceFile), propertyAccessToConvert.end);
|
|
148821
148812
|
}
|
|
148822
148813
|
if (originIsResolvedExport(origin)) {
|
|
148823
148814
|
sourceDisplay = [textPart(origin.moduleSpecifier)];
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -44970,6 +44970,7 @@ ${lanes.join("\n")}
|
|
|
44970
44970
|
let inlineLevel = 0;
|
|
44971
44971
|
let currentNode;
|
|
44972
44972
|
let varianceTypeParameter;
|
|
44973
|
+
let isInferencePartiallyBlocked = false;
|
|
44973
44974
|
const emptySymbols = createSymbolTable();
|
|
44974
44975
|
const arrayVariances = [1 /* Covariant */];
|
|
44975
44976
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -45401,7 +45402,9 @@ ${lanes.join("\n")}
|
|
|
45401
45402
|
toMarkSkip = toMarkSkip.parent;
|
|
45402
45403
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
45403
45404
|
}
|
|
45405
|
+
isInferencePartiallyBlocked = true;
|
|
45404
45406
|
const result = runWithoutResolvedSignatureCaching(node, fn);
|
|
45407
|
+
isInferencePartiallyBlocked = false;
|
|
45405
45408
|
if (containingCall) {
|
|
45406
45409
|
let toMarkSkip = node;
|
|
45407
45410
|
do {
|
|
@@ -65451,7 +65454,6 @@ ${lanes.join("\n")}
|
|
|
65451
65454
|
if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
|
|
65452
65455
|
const constraintType = getConstraintTypeFromMappedType(target);
|
|
65453
65456
|
if (inferToMappedType(source, target, constraintType)) {
|
|
65454
|
-
inferFromMappedProperties(source, target);
|
|
65455
65457
|
return;
|
|
65456
65458
|
}
|
|
65457
65459
|
}
|
|
@@ -65552,19 +65554,6 @@ ${lanes.join("\n")}
|
|
|
65552
65554
|
}
|
|
65553
65555
|
}
|
|
65554
65556
|
}
|
|
65555
|
-
function inferFromMappedProperties(source, target) {
|
|
65556
|
-
const properties = getPropertiesOfObjectType(source);
|
|
65557
|
-
for (const sourceProp of properties) {
|
|
65558
|
-
if (!some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {
|
|
65559
|
-
const sourcePropType = getTypeOfSymbol(sourceProp);
|
|
65560
|
-
if (!couldContainTypeVariables(sourcePropType)) {
|
|
65561
|
-
continue;
|
|
65562
|
-
}
|
|
65563
|
-
const targetPropType = substituteIndexedMappedType(target, getStringLiteralType(unescapeLeadingUnderscores(sourceProp.escapedName)));
|
|
65564
|
-
inferFromTypes(sourcePropType, targetPropType);
|
|
65565
|
-
}
|
|
65566
|
-
}
|
|
65567
|
-
}
|
|
65568
65557
|
function inferFromSignatures(source, target, kind) {
|
|
65569
65558
|
const sourceSignatures = getSignaturesOfType(source, kind);
|
|
65570
65559
|
const targetSignatures = getSignaturesOfType(target, kind);
|
|
@@ -72057,7 +72046,7 @@ ${lanes.join("\n")}
|
|
|
72057
72046
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
72058
72047
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
72059
72048
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
72060
|
-
const reportErrors2 = !candidatesOutArray;
|
|
72049
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
72061
72050
|
let typeArguments;
|
|
72062
72051
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
72063
72052
|
typeArguments = node.typeArguments;
|
|
@@ -147872,7 +147861,9 @@ ${lanes.join("\n")}
|
|
|
147872
147861
|
}
|
|
147873
147862
|
awaitText += `(await ${propertyAccessToConvert.expression.getText()})`;
|
|
147874
147863
|
insertText = needsConvertPropertyAccess ? `${awaitText}${insertText}` : `${awaitText}${insertQuestionDot ? "?." : "."}${insertText}`;
|
|
147875
|
-
|
|
147864
|
+
const isInAwaitExpression = tryCast(propertyAccessToConvert.parent, isAwaitExpression);
|
|
147865
|
+
const wrapNode = isInAwaitExpression ? propertyAccessToConvert.parent : propertyAccessToConvert.expression;
|
|
147866
|
+
replacementSpan = createTextSpanFromBounds(wrapNode.getStart(sourceFile), propertyAccessToConvert.end);
|
|
147876
147867
|
}
|
|
147877
147868
|
if (originIsResolvedExport(origin)) {
|
|
147878
147869
|
sourceDisplay = [textPart(origin.moduleSpecifier)];
|
package/lib/typescript.js
CHANGED
|
@@ -44970,6 +44970,7 @@ ${lanes.join("\n")}
|
|
|
44970
44970
|
let inlineLevel = 0;
|
|
44971
44971
|
let currentNode;
|
|
44972
44972
|
let varianceTypeParameter;
|
|
44973
|
+
let isInferencePartiallyBlocked = false;
|
|
44973
44974
|
const emptySymbols = createSymbolTable();
|
|
44974
44975
|
const arrayVariances = [1 /* Covariant */];
|
|
44975
44976
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -45401,7 +45402,9 @@ ${lanes.join("\n")}
|
|
|
45401
45402
|
toMarkSkip = toMarkSkip.parent;
|
|
45402
45403
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
45403
45404
|
}
|
|
45405
|
+
isInferencePartiallyBlocked = true;
|
|
45404
45406
|
const result = runWithoutResolvedSignatureCaching(node, fn);
|
|
45407
|
+
isInferencePartiallyBlocked = false;
|
|
45405
45408
|
if (containingCall) {
|
|
45406
45409
|
let toMarkSkip = node;
|
|
45407
45410
|
do {
|
|
@@ -65451,7 +65454,6 @@ ${lanes.join("\n")}
|
|
|
65451
65454
|
if (getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {
|
|
65452
65455
|
const constraintType = getConstraintTypeFromMappedType(target);
|
|
65453
65456
|
if (inferToMappedType(source, target, constraintType)) {
|
|
65454
|
-
inferFromMappedProperties(source, target);
|
|
65455
65457
|
return;
|
|
65456
65458
|
}
|
|
65457
65459
|
}
|
|
@@ -65552,19 +65554,6 @@ ${lanes.join("\n")}
|
|
|
65552
65554
|
}
|
|
65553
65555
|
}
|
|
65554
65556
|
}
|
|
65555
|
-
function inferFromMappedProperties(source, target) {
|
|
65556
|
-
const properties = getPropertiesOfObjectType(source);
|
|
65557
|
-
for (const sourceProp of properties) {
|
|
65558
|
-
if (!some(sourceProp.declarations, hasSkipDirectInferenceFlag)) {
|
|
65559
|
-
const sourcePropType = getTypeOfSymbol(sourceProp);
|
|
65560
|
-
if (!couldContainTypeVariables(sourcePropType)) {
|
|
65561
|
-
continue;
|
|
65562
|
-
}
|
|
65563
|
-
const targetPropType = substituteIndexedMappedType(target, getStringLiteralType(unescapeLeadingUnderscores(sourceProp.escapedName)));
|
|
65564
|
-
inferFromTypes(sourcePropType, targetPropType);
|
|
65565
|
-
}
|
|
65566
|
-
}
|
|
65567
|
-
}
|
|
65568
65557
|
function inferFromSignatures(source, target, kind) {
|
|
65569
65558
|
const sourceSignatures = getSignaturesOfType(source, kind);
|
|
65570
65559
|
const targetSignatures = getSignaturesOfType(target, kind);
|
|
@@ -72057,7 +72046,7 @@ ${lanes.join("\n")}
|
|
|
72057
72046
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
72058
72047
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
72059
72048
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
72060
|
-
const reportErrors2 = !candidatesOutArray;
|
|
72049
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
72061
72050
|
let typeArguments;
|
|
72062
72051
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
72063
72052
|
typeArguments = node.typeArguments;
|
|
@@ -147886,7 +147875,9 @@ ${lanes.join("\n")}
|
|
|
147886
147875
|
}
|
|
147887
147876
|
awaitText += `(await ${propertyAccessToConvert.expression.getText()})`;
|
|
147888
147877
|
insertText = needsConvertPropertyAccess ? `${awaitText}${insertText}` : `${awaitText}${insertQuestionDot ? "?." : "."}${insertText}`;
|
|
147889
|
-
|
|
147878
|
+
const isInAwaitExpression = tryCast(propertyAccessToConvert.parent, isAwaitExpression);
|
|
147879
|
+
const wrapNode = isInAwaitExpression ? propertyAccessToConvert.parent : propertyAccessToConvert.expression;
|
|
147880
|
+
replacementSpan = createTextSpanFromBounds(wrapNode.getStart(sourceFile), propertyAccessToConvert.end);
|
|
147890
147881
|
}
|
|
147891
147882
|
if (originIsResolvedExport(origin)) {
|
|
147892
147883
|
sourceDisplay = [textPart(origin.moduleSpecifier)];
|
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.0.0-pr-
|
|
5
|
+
"version": "5.0.0-pr-52728-17",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|