@typescript-deploys/pr-build 5.2.0-pr-54503-2 → 5.2.0-pr-54507-7
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 -1
- package/lib/tsserver.js +7 -15
- package/lib/tsserverlibrary.js +7 -15
- package/lib/typescript.js +7 -15
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -58096,7 +58096,10 @@ function createTypeChecker(host) {
|
|
|
58096
58096
|
const newMapper = createTypeMapper(typeParameters, typeArguments);
|
|
58097
58097
|
result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
|
|
58098
58098
|
if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
58099
|
-
|
|
58099
|
+
const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
|
|
58100
|
+
if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
58101
|
+
result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
|
|
58102
|
+
}
|
|
58100
58103
|
}
|
|
58101
58104
|
target.instantiations.set(id, result);
|
|
58102
58105
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -62747,7 +62747,10 @@ function createTypeChecker(host) {
|
|
|
62747
62747
|
const newMapper = createTypeMapper(typeParameters, typeArguments);
|
|
62748
62748
|
result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
|
|
62749
62749
|
if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
62750
|
-
|
|
62750
|
+
const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
|
|
62751
|
+
if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
62752
|
+
result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
|
|
62753
|
+
}
|
|
62751
62754
|
}
|
|
62752
62755
|
target.instantiations.set(id, result);
|
|
62753
62756
|
}
|
|
@@ -162741,13 +162744,13 @@ function provideInlayHints(context) {
|
|
|
162741
162744
|
if (!signature || !candidates.length) {
|
|
162742
162745
|
return;
|
|
162743
162746
|
}
|
|
162744
|
-
let
|
|
162745
|
-
|
|
162747
|
+
for (let i = 0; i < args.length; ++i) {
|
|
162748
|
+
const originalArg = args[i];
|
|
162746
162749
|
const arg = skipParentheses(originalArg);
|
|
162747
162750
|
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {
|
|
162748
162751
|
continue;
|
|
162749
162752
|
}
|
|
162750
|
-
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature,
|
|
162753
|
+
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);
|
|
162751
162754
|
if (identifierNameInfo) {
|
|
162752
162755
|
const [parameterName, isFirstVariadicArgument] = identifierNameInfo;
|
|
162753
162756
|
const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName);
|
|
@@ -162758,17 +162761,6 @@ function provideInlayHints(context) {
|
|
|
162758
162761
|
if (leadingCommentsContainsParameterName(arg, name)) {
|
|
162759
162762
|
continue;
|
|
162760
162763
|
}
|
|
162761
|
-
if (isSpreadElement(arg)) {
|
|
162762
|
-
const spreadType = checker.getTypeAtLocation(arg.expression);
|
|
162763
|
-
if (checker.isTupleType(spreadType)) {
|
|
162764
|
-
const { fixedLength, elementFlags } = spreadType.target;
|
|
162765
|
-
for (let i = pos; i < fixedLength; i++) {
|
|
162766
|
-
if (elementFlags[i] & 1 /* Required */) {
|
|
162767
|
-
pos++;
|
|
162768
|
-
}
|
|
162769
|
-
}
|
|
162770
|
-
}
|
|
162771
|
-
}
|
|
162772
162764
|
addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument);
|
|
162773
162765
|
}
|
|
162774
162766
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -60537,7 +60537,10 @@ ${lanes.join("\n")}
|
|
|
60537
60537
|
const newMapper = createTypeMapper(typeParameters, typeArguments);
|
|
60538
60538
|
result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
|
|
60539
60539
|
if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
60540
|
-
|
|
60540
|
+
const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
|
|
60541
|
+
if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
60542
|
+
result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
|
|
60543
|
+
}
|
|
60541
60544
|
}
|
|
60542
60545
|
target.instantiations.set(id, result);
|
|
60543
60546
|
}
|
|
@@ -162092,13 +162095,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162092
162095
|
if (!signature || !candidates.length) {
|
|
162093
162096
|
return;
|
|
162094
162097
|
}
|
|
162095
|
-
let
|
|
162096
|
-
|
|
162098
|
+
for (let i = 0; i < args.length; ++i) {
|
|
162099
|
+
const originalArg = args[i];
|
|
162097
162100
|
const arg = skipParentheses(originalArg);
|
|
162098
162101
|
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {
|
|
162099
162102
|
continue;
|
|
162100
162103
|
}
|
|
162101
|
-
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature,
|
|
162104
|
+
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);
|
|
162102
162105
|
if (identifierNameInfo) {
|
|
162103
162106
|
const [parameterName, isFirstVariadicArgument] = identifierNameInfo;
|
|
162104
162107
|
const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName);
|
|
@@ -162109,17 +162112,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162109
162112
|
if (leadingCommentsContainsParameterName(arg, name)) {
|
|
162110
162113
|
continue;
|
|
162111
162114
|
}
|
|
162112
|
-
if (isSpreadElement(arg)) {
|
|
162113
|
-
const spreadType = checker.getTypeAtLocation(arg.expression);
|
|
162114
|
-
if (checker.isTupleType(spreadType)) {
|
|
162115
|
-
const { fixedLength, elementFlags } = spreadType.target;
|
|
162116
|
-
for (let i = pos; i < fixedLength; i++) {
|
|
162117
|
-
if (elementFlags[i] & 1 /* Required */) {
|
|
162118
|
-
pos++;
|
|
162119
|
-
}
|
|
162120
|
-
}
|
|
162121
|
-
}
|
|
162122
|
-
}
|
|
162123
162115
|
addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument);
|
|
162124
162116
|
}
|
|
162125
162117
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -60537,7 +60537,10 @@ ${lanes.join("\n")}
|
|
|
60537
60537
|
const newMapper = createTypeMapper(typeParameters, typeArguments);
|
|
60538
60538
|
result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
|
|
60539
60539
|
if (result.flags & 138117121 /* ObjectFlagsType */ && !(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
60540
|
-
|
|
60540
|
+
const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
|
|
60541
|
+
if (!(result.objectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
|
|
60542
|
+
result.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (resultCouldContainTypeVariables ? 1048576 /* CouldContainTypeVariables */ : 0);
|
|
60543
|
+
}
|
|
60541
60544
|
}
|
|
60542
60545
|
target.instantiations.set(id, result);
|
|
60543
60546
|
}
|
|
@@ -162107,13 +162110,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162107
162110
|
if (!signature || !candidates.length) {
|
|
162108
162111
|
return;
|
|
162109
162112
|
}
|
|
162110
|
-
let
|
|
162111
|
-
|
|
162113
|
+
for (let i = 0; i < args.length; ++i) {
|
|
162114
|
+
const originalArg = args[i];
|
|
162112
162115
|
const arg = skipParentheses(originalArg);
|
|
162113
162116
|
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {
|
|
162114
162117
|
continue;
|
|
162115
162118
|
}
|
|
162116
|
-
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature,
|
|
162119
|
+
const identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);
|
|
162117
162120
|
if (identifierNameInfo) {
|
|
162118
162121
|
const [parameterName, isFirstVariadicArgument] = identifierNameInfo;
|
|
162119
162122
|
const isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName);
|
|
@@ -162124,17 +162127,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162124
162127
|
if (leadingCommentsContainsParameterName(arg, name)) {
|
|
162125
162128
|
continue;
|
|
162126
162129
|
}
|
|
162127
|
-
if (isSpreadElement(arg)) {
|
|
162128
|
-
const spreadType = checker.getTypeAtLocation(arg.expression);
|
|
162129
|
-
if (checker.isTupleType(spreadType)) {
|
|
162130
|
-
const { fixedLength, elementFlags } = spreadType.target;
|
|
162131
|
-
for (let i = pos; i < fixedLength; i++) {
|
|
162132
|
-
if (elementFlags[i] & 1 /* Required */) {
|
|
162133
|
-
pos++;
|
|
162134
|
-
}
|
|
162135
|
-
}
|
|
162136
|
-
}
|
|
162137
|
-
}
|
|
162138
162130
|
addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument);
|
|
162139
162131
|
}
|
|
162140
162132
|
}
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54507-7",
|
|
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": "a50ac33a68c1cc4059ff2702e6f2e8e0dc227ea7"
|
|
119
119
|
}
|