@typescript-deploys/pr-build 5.2.0-pr-54290-7 → 5.2.0-pr-54377-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/lib.es2017.d.ts +1 -0
- package/lib/lib.es2017.date.d.ts +31 -0
- package/lib/tsc.js +74 -60
- package/lib/tsserver.js +172 -91
- package/lib/tsserverlibrary.d.ts +9 -1
- package/lib/tsserverlibrary.js +172 -91
- package/lib/typescript.d.ts +3 -1
- package/lib/typescript.js +168 -90
- package/lib/typingsInstaller.js +8 -2
- package/package.json +2 -2
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-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230524`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9018,6 +9018,7 @@ ${lanes.join("\n")}
|
|
|
9018
9018
|
Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."),
|
|
9019
9019
|
Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."),
|
|
9020
9020
|
Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"),
|
|
9021
|
+
Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"),
|
|
9021
9022
|
No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
|
|
9022
9023
|
Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
|
|
9023
9024
|
JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
|
|
@@ -20592,7 +20593,8 @@ ${lanes.join("\n")}
|
|
|
20592
20593
|
ensureUseStrict,
|
|
20593
20594
|
liftToBlock,
|
|
20594
20595
|
mergeLexicalEnvironment,
|
|
20595
|
-
updateModifiers
|
|
20596
|
+
updateModifiers,
|
|
20597
|
+
updateModifierLike
|
|
20596
20598
|
};
|
|
20597
20599
|
forEach(nodeFactoryPatchers, (fn) => fn(factory2));
|
|
20598
20600
|
return factory2;
|
|
@@ -24074,6 +24076,9 @@ ${lanes.join("\n")}
|
|
|
24074
24076
|
}
|
|
24075
24077
|
return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
|
|
24076
24078
|
}
|
|
24079
|
+
function updateModifierLike(node, modifierArray) {
|
|
24080
|
+
return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node);
|
|
24081
|
+
}
|
|
24077
24082
|
function asNodeArray(array) {
|
|
24078
24083
|
return array ? createNodeArray(array) : void 0;
|
|
24079
24084
|
}
|
|
@@ -25516,10 +25521,10 @@ ${lanes.join("\n")}
|
|
|
25516
25521
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
25517
25522
|
if (_ = accept(result.get)) descriptor.get = _;
|
|
25518
25523
|
if (_ = accept(result.set)) descriptor.set = _;
|
|
25519
|
-
if (_ = accept(result.init)) initializers.
|
|
25524
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
25520
25525
|
}
|
|
25521
25526
|
else if (_ = accept(result)) {
|
|
25522
|
-
if (kind === "field") initializers.
|
|
25527
|
+
if (kind === "field") initializers.unshift(_);
|
|
25523
25528
|
else descriptor[key] = _;
|
|
25524
25529
|
}
|
|
25525
25530
|
}
|
|
@@ -37253,6 +37258,7 @@ ${lanes.join("\n")}
|
|
|
37253
37258
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
37254
37259
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
37255
37260
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
37261
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
37256
37262
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
37257
37263
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
37258
37264
|
["es2017.string", "lib.es2017.string.d.ts"],
|
|
@@ -50338,32 +50344,34 @@ ${lanes.join("\n")}
|
|
|
50338
50344
|
const methodDeclaration = signatureToSignatureDeclarationHelper(signature, 172 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken });
|
|
50339
50345
|
typeElements.push(preserveCommentsOn(methodDeclaration));
|
|
50340
50346
|
}
|
|
50347
|
+
if (signatures.length || !optionalToken) {
|
|
50348
|
+
return;
|
|
50349
|
+
}
|
|
50350
|
+
}
|
|
50351
|
+
let propertyTypeNode;
|
|
50352
|
+
if (shouldUsePlaceholderForProperty(propertySymbol, context)) {
|
|
50353
|
+
propertyTypeNode = createElidedInformationPlaceholder(context);
|
|
50341
50354
|
} else {
|
|
50342
|
-
|
|
50343
|
-
|
|
50344
|
-
|
|
50345
|
-
} else {
|
|
50346
|
-
if (propertyIsReverseMapped) {
|
|
50347
|
-
context.reverseMappedStack || (context.reverseMappedStack = []);
|
|
50348
|
-
context.reverseMappedStack.push(propertySymbol);
|
|
50349
|
-
}
|
|
50350
|
-
propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */);
|
|
50351
|
-
if (propertyIsReverseMapped) {
|
|
50352
|
-
context.reverseMappedStack.pop();
|
|
50353
|
-
}
|
|
50355
|
+
if (propertyIsReverseMapped) {
|
|
50356
|
+
context.reverseMappedStack || (context.reverseMappedStack = []);
|
|
50357
|
+
context.reverseMappedStack.push(propertySymbol);
|
|
50354
50358
|
}
|
|
50355
|
-
|
|
50356
|
-
if (
|
|
50357
|
-
context.
|
|
50359
|
+
propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : factory.createKeywordTypeNode(133 /* AnyKeyword */);
|
|
50360
|
+
if (propertyIsReverseMapped) {
|
|
50361
|
+
context.reverseMappedStack.pop();
|
|
50358
50362
|
}
|
|
50359
|
-
const propertySignature = factory.createPropertySignature(
|
|
50360
|
-
modifiers,
|
|
50361
|
-
propertyName,
|
|
50362
|
-
optionalToken,
|
|
50363
|
-
propertyTypeNode
|
|
50364
|
-
);
|
|
50365
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50366
50363
|
}
|
|
50364
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50365
|
+
if (modifiers) {
|
|
50366
|
+
context.approximateLength += 9;
|
|
50367
|
+
}
|
|
50368
|
+
const propertySignature = factory.createPropertySignature(
|
|
50369
|
+
modifiers,
|
|
50370
|
+
propertyName,
|
|
50371
|
+
optionalToken,
|
|
50372
|
+
propertyTypeNode
|
|
50373
|
+
);
|
|
50374
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50367
50375
|
function preserveCommentsOn(node) {
|
|
50368
50376
|
var _a2;
|
|
50369
50377
|
if (some(propertySymbol.declarations, (d) => d.kind === 354 /* JSDocPropertyTag */)) {
|
|
@@ -56426,7 +56434,7 @@ ${lanes.join("\n")}
|
|
|
56426
56434
|
} else if (type !== firstType) {
|
|
56427
56435
|
checkFlags |= 64 /* HasNonUniformType */;
|
|
56428
56436
|
}
|
|
56429
|
-
if (isLiteralType(type) || isPatternLiteralType(type)
|
|
56437
|
+
if (isLiteralType(type) || isPatternLiteralType(type)) {
|
|
56430
56438
|
checkFlags |= 128 /* HasLiteralType */;
|
|
56431
56439
|
}
|
|
56432
56440
|
if (type.flags & 131072 /* Never */ && type !== uniqueLiteralType) {
|
|
@@ -58653,31 +58661,28 @@ ${lanes.join("\n")}
|
|
|
58653
58661
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
58654
58662
|
}
|
|
58655
58663
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
58656
|
-
let
|
|
58664
|
+
let last2;
|
|
58657
58665
|
const types = [];
|
|
58658
58666
|
for (const sig of signatures) {
|
|
58659
58667
|
const pred = getTypePredicateOfSignature(sig);
|
|
58660
|
-
if (
|
|
58661
|
-
if (kind !==
|
|
58662
|
-
continue;
|
|
58663
|
-
} else {
|
|
58664
|
-
return;
|
|
58665
|
-
}
|
|
58666
|
-
}
|
|
58667
|
-
if (first2) {
|
|
58668
|
-
if (!typePredicateKindsMatch(first2, pred)) {
|
|
58668
|
+
if (pred) {
|
|
58669
|
+
if (pred.kind !== 0 /* This */ && pred.kind !== 1 /* Identifier */ || last2 && !typePredicateKindsMatch(last2, pred)) {
|
|
58669
58670
|
return void 0;
|
|
58670
58671
|
}
|
|
58672
|
+
last2 = pred;
|
|
58673
|
+
types.push(pred.type);
|
|
58671
58674
|
} else {
|
|
58672
|
-
|
|
58675
|
+
const returnType = kind !== 2097152 /* Intersection */ ? getReturnTypeOfSignature(sig) : void 0;
|
|
58676
|
+
if (returnType !== falseType && returnType !== regularFalseType) {
|
|
58677
|
+
return void 0;
|
|
58678
|
+
}
|
|
58673
58679
|
}
|
|
58674
|
-
types.push(pred.type);
|
|
58675
58680
|
}
|
|
58676
|
-
if (!
|
|
58681
|
+
if (!last2) {
|
|
58677
58682
|
return void 0;
|
|
58678
58683
|
}
|
|
58679
58684
|
const compositeType = getUnionOrIntersectionType(types, kind);
|
|
58680
|
-
return createTypePredicate(
|
|
58685
|
+
return createTypePredicate(last2.kind, last2.parameterName, last2.parameterIndex, compositeType);
|
|
58681
58686
|
}
|
|
58682
58687
|
function typePredicateKindsMatch(a, b) {
|
|
58683
58688
|
return a.kind === b.kind && a.parameterIndex === b.parameterIndex;
|
|
@@ -59719,9 +59724,9 @@ ${lanes.join("\n")}
|
|
|
59719
59724
|
);
|
|
59720
59725
|
if (freshMapper) {
|
|
59721
59726
|
const freshCombinedMapper = combineTypeMappers(mapper, freshMapper);
|
|
59722
|
-
for (
|
|
59723
|
-
if (root.inferTypeParameters
|
|
59724
|
-
|
|
59727
|
+
for (let i = 0; i < freshParams.length; i++) {
|
|
59728
|
+
if (freshParams[i] !== root.inferTypeParameters[i]) {
|
|
59729
|
+
freshParams[i].mapper = freshCombinedMapper;
|
|
59725
59730
|
}
|
|
59726
59731
|
}
|
|
59727
59732
|
}
|
|
@@ -60558,18 +60563,19 @@ ${lanes.join("\n")}
|
|
|
60558
60563
|
case 185 /* TypeQuery */:
|
|
60559
60564
|
const entityName = node2.exprName;
|
|
60560
60565
|
const firstIdentifier = getFirstIdentifier(entityName);
|
|
60561
|
-
|
|
60562
|
-
|
|
60563
|
-
|
|
60564
|
-
|
|
60565
|
-
|
|
60566
|
-
|
|
60567
|
-
|
|
60568
|
-
|
|
60569
|
-
|
|
60570
|
-
|
|
60571
|
-
|
|
60572
|
-
|
|
60566
|
+
if (!isThisIdentifier(firstIdentifier)) {
|
|
60567
|
+
const firstIdentifierSymbol = getResolvedSymbol(firstIdentifier);
|
|
60568
|
+
const tpDeclaration = tp.symbol.declarations[0];
|
|
60569
|
+
const tpScope = tpDeclaration.kind === 167 /* TypeParameter */ ? tpDeclaration.parent : (
|
|
60570
|
+
// Type parameter is a regular type parameter, e.g. foo<T>
|
|
60571
|
+
tp.isThisType ? tpDeclaration : (
|
|
60572
|
+
// Type parameter is the this type, and its declaration is the class declaration.
|
|
60573
|
+
void 0
|
|
60574
|
+
)
|
|
60575
|
+
);
|
|
60576
|
+
if (firstIdentifierSymbol.declarations && tpScope) {
|
|
60577
|
+
return some(firstIdentifierSymbol.declarations, (idDecl) => isNodeDescendantOf(idDecl, tpScope)) || some(node2.typeArguments, containsReference);
|
|
60578
|
+
}
|
|
60573
60579
|
}
|
|
60574
60580
|
return true;
|
|
60575
60581
|
case 173 /* MethodDeclaration */:
|
|
@@ -60623,6 +60629,9 @@ ${lanes.join("\n")}
|
|
|
60623
60629
|
const elementFlags = tupleType.target.elementFlags;
|
|
60624
60630
|
const elementTypes = map(getElementTypes(tupleType), (t, i) => {
|
|
60625
60631
|
const singleton = elementFlags[i] & 8 /* Variadic */ ? t : elementFlags[i] & 4 /* Rest */ ? createArrayType(t) : createTupleType([t], [elementFlags[i]]);
|
|
60632
|
+
if (singleton === typeVariable) {
|
|
60633
|
+
return mappedType;
|
|
60634
|
+
}
|
|
60626
60635
|
return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper));
|
|
60627
60636
|
});
|
|
60628
60637
|
const newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType));
|
|
@@ -64411,7 +64420,7 @@ ${lanes.join("\n")}
|
|
|
64411
64420
|
}
|
|
64412
64421
|
function getRecursionIdentity(type) {
|
|
64413
64422
|
if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {
|
|
64414
|
-
if (getObjectFlags(type)
|
|
64423
|
+
if (getObjectFlags(type) & 4 /* Reference */ && type.node) {
|
|
64415
64424
|
return type.node;
|
|
64416
64425
|
}
|
|
64417
64426
|
if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {
|
|
@@ -65186,6 +65195,8 @@ ${lanes.join("\n")}
|
|
|
65186
65195
|
return context && context.mapper;
|
|
65187
65196
|
}
|
|
65188
65197
|
function couldContainTypeVariables(type) {
|
|
65198
|
+
if (type.flags & 67359327 /* Intrinsic */)
|
|
65199
|
+
return false;
|
|
65189
65200
|
const objectFlags = getObjectFlags(type);
|
|
65190
65201
|
if (objectFlags & 524288 /* CouldContainTypeVariablesComputed */) {
|
|
65191
65202
|
return !!(objectFlags & 1048576 /* CouldContainTypeVariables */);
|
|
@@ -72113,7 +72124,7 @@ ${lanes.join("\n")}
|
|
|
72113
72124
|
}
|
|
72114
72125
|
const typeArgument = typeArgumentTypes[i];
|
|
72115
72126
|
if (!checkTypeAssignableTo(
|
|
72116
|
-
|
|
72127
|
+
typeArgument,
|
|
72117
72128
|
getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument),
|
|
72118
72129
|
reportErrors2 ? typeArgumentNodes[i] : void 0,
|
|
72119
72130
|
typeArgumentHeadMessage,
|
|
@@ -76679,7 +76690,7 @@ ${lanes.join("\n")}
|
|
|
76679
76690
|
if (getIsolatedModules(compilerOptions)) {
|
|
76680
76691
|
Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));
|
|
76681
76692
|
const constEnumDeclaration = type.symbol.valueDeclaration;
|
|
76682
|
-
if (constEnumDeclaration.flags & 16777216 /* Ambient */) {
|
|
76693
|
+
if (constEnumDeclaration.flags & 16777216 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node)) {
|
|
76683
76694
|
error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
|
|
76684
76695
|
}
|
|
76685
76696
|
}
|
|
@@ -77108,6 +77119,9 @@ ${lanes.join("\n")}
|
|
|
77108
77119
|
case "length":
|
|
77109
77120
|
case "caller":
|
|
77110
77121
|
case "arguments":
|
|
77122
|
+
if (compilerOptions.useDefineForClassFields) {
|
|
77123
|
+
break;
|
|
77124
|
+
}
|
|
77111
77125
|
case "prototype":
|
|
77112
77126
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
77113
77127
|
const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));
|
|
@@ -84114,7 +84128,7 @@ ${lanes.join("\n")}
|
|
|
84114
84128
|
if (requestedExternalEmitHelperNames.has(name))
|
|
84115
84129
|
continue;
|
|
84116
84130
|
requestedExternalEmitHelperNames.add(name);
|
|
84117
|
-
const symbol = getSymbol2(helpersModule
|
|
84131
|
+
const symbol = getSymbol2(getExportsOfModule(helpersModule), escapeLeadingUnderscores(name), 111551 /* Value */);
|
|
84118
84132
|
if (!symbol) {
|
|
84119
84133
|
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);
|
|
84120
84134
|
} else if (helper & 524288 /* ClassPrivateFieldGet */) {
|
|
@@ -134893,10 +134907,9 @@ ${lanes.join("\n")}
|
|
|
134893
134907
|
|
|
134894
134908
|
// src/services/refactors/moveToFile.ts
|
|
134895
134909
|
function doChange4(context, oldFile, targetFile, program, toMove, changes, host, preferences) {
|
|
134896
|
-
var _a;
|
|
134897
134910
|
const checker = program.getTypeChecker();
|
|
134898
134911
|
const usage = getUsageInfo(oldFile, toMove.all, checker);
|
|
134899
|
-
if (!host.fileExists(targetFile)
|
|
134912
|
+
if (!host.fileExists(targetFile)) {
|
|
134900
134913
|
changes.createNewFile(oldFile, targetFile, getNewStatementsAndRemoveFromOldFile2(oldFile, targetFile, usage, changes, toMove, program, host, preferences));
|
|
134901
134914
|
addNewFileToTsconfig(program, changes, oldFile.fileName, targetFile, hostGetCanonicalFileName(host));
|
|
134902
134915
|
} else {
|
|
@@ -134934,6 +134947,13 @@ ${lanes.join("\n")}
|
|
|
134934
134947
|
if (typeof targetFile !== "string") {
|
|
134935
134948
|
if (targetFile.statements.length > 0) {
|
|
134936
134949
|
changes.insertNodesAfter(targetFile, targetFile.statements[targetFile.statements.length - 1], body);
|
|
134950
|
+
} else {
|
|
134951
|
+
changes.insertNodesAtEndOfFile(
|
|
134952
|
+
targetFile,
|
|
134953
|
+
body,
|
|
134954
|
+
/*blankLineBetween*/
|
|
134955
|
+
false
|
|
134956
|
+
);
|
|
134937
134957
|
}
|
|
134938
134958
|
if (imports.length > 0) {
|
|
134939
134959
|
insertImports(
|
|
@@ -135752,8 +135772,12 @@ ${lanes.join("\n")}
|
|
|
135752
135772
|
Debug.assert(actionName2 === refactorNameForMoveToFile, "Wrong refactor invoked");
|
|
135753
135773
|
const statements = Debug.checkDefined(getStatementsToMove(context));
|
|
135754
135774
|
Debug.assert(interactiveRefactorArguments, "No interactive refactor arguments available");
|
|
135755
|
-
const
|
|
135756
|
-
|
|
135775
|
+
const targetFile = interactiveRefactorArguments.targetFile;
|
|
135776
|
+
if (hasJSFileExtension(targetFile) || hasTSFileExtension(targetFile)) {
|
|
135777
|
+
const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences));
|
|
135778
|
+
return { edits, renameFilename: void 0, renameLocation: void 0 };
|
|
135779
|
+
}
|
|
135780
|
+
return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid) };
|
|
135757
135781
|
}
|
|
135758
135782
|
});
|
|
135759
135783
|
}
|
|
@@ -152235,7 +152259,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
152235
152259
|
false
|
|
152236
152260
|
);
|
|
152237
152261
|
const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0 /* None */;
|
|
152238
|
-
let modifierFlags = effectiveModifierFlags &
|
|
152262
|
+
let modifierFlags = effectiveModifierFlags & 32 /* Static */;
|
|
152263
|
+
modifierFlags |= effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */;
|
|
152239
152264
|
if (declaration && isAutoAccessorPropertyDeclaration(declaration)) {
|
|
152240
152265
|
modifierFlags |= 128 /* Accessor */;
|
|
152241
152266
|
}
|
|
@@ -154992,6 +155017,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
154992
155017
|
}
|
|
154993
155018
|
function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {
|
|
154994
155019
|
let insertText;
|
|
155020
|
+
let filterText;
|
|
154995
155021
|
let replacementSpan = getReplacementSpanForContextToken(replacementToken);
|
|
154996
155022
|
let data;
|
|
154997
155023
|
let isSnippet;
|
|
@@ -155050,11 +155076,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155050
155076
|
}
|
|
155051
155077
|
if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) {
|
|
155052
155078
|
let importAdder;
|
|
155053
|
-
|
|
155054
|
-
|
|
155055
|
-
|
|
155056
|
-
|
|
155057
|
-
|
|
155079
|
+
const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext);
|
|
155080
|
+
if (memberCompletionEntry) {
|
|
155081
|
+
({ insertText, filterText, isSnippet, importAdder } = memberCompletionEntry);
|
|
155082
|
+
if (importAdder == null ? void 0 : importAdder.hasFixes()) {
|
|
155083
|
+
hasAction = true;
|
|
155084
|
+
source = "ClassMemberSnippet/" /* ClassMemberSnippet */;
|
|
155085
|
+
}
|
|
155086
|
+
} else {
|
|
155087
|
+
return void 0;
|
|
155058
155088
|
}
|
|
155059
155089
|
}
|
|
155060
155090
|
if (origin && originIsObjectLiteralMethod(origin)) {
|
|
@@ -155098,6 +155128,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155098
155128
|
hasAction: hasAction ? true : void 0,
|
|
155099
155129
|
isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0,
|
|
155100
155130
|
insertText,
|
|
155131
|
+
filterText,
|
|
155101
155132
|
replacementSpan,
|
|
155102
155133
|
sourceDisplay,
|
|
155103
155134
|
labelDetails,
|
|
@@ -155118,11 +155149,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155118
155149
|
function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) {
|
|
155119
155150
|
const classLikeDeclaration = findAncestor(location, isClassLike);
|
|
155120
155151
|
if (!classLikeDeclaration) {
|
|
155121
|
-
return
|
|
155152
|
+
return void 0;
|
|
155122
155153
|
}
|
|
155123
155154
|
let isSnippet;
|
|
155124
|
-
let replacementSpan;
|
|
155125
155155
|
let insertText = name;
|
|
155156
|
+
const filterText = name;
|
|
155126
155157
|
const checker = program.getTypeChecker();
|
|
155127
155158
|
const sourceFile = location.getSourceFile();
|
|
155128
155159
|
const printer = createSnippetPrinter({
|
|
@@ -155151,9 +155182,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155151
155182
|
);
|
|
155152
155183
|
}
|
|
155153
155184
|
let modifiers = 0 /* None */;
|
|
155154
|
-
const { modifiers: presentModifiers,
|
|
155155
|
-
const isAbstract =
|
|
155156
|
-
|
|
155185
|
+
const { modifiers: presentModifiers, range: eraseRange, decorators: presentDecorators } = getPresentModifiers(contextToken, sourceFile, position);
|
|
155186
|
+
const isAbstract = presentModifiers & 256 /* Abstract */ && classLikeDeclaration.modifierFlagsCache & 256 /* Abstract */;
|
|
155187
|
+
let completionNodes = [];
|
|
155157
155188
|
ts_codefix_exports.addNewNodeForMemberSymbol(
|
|
155158
155189
|
symbol,
|
|
155159
155190
|
classLikeDeclaration,
|
|
@@ -155177,18 +155208,42 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155177
155208
|
requiredModifiers |= 16384 /* Override */;
|
|
155178
155209
|
}
|
|
155179
155210
|
if (!completionNodes.length) {
|
|
155180
|
-
modifiers = node.modifierFlagsCache | requiredModifiers
|
|
155211
|
+
modifiers = node.modifierFlagsCache | requiredModifiers;
|
|
155181
155212
|
}
|
|
155182
155213
|
node = factory.updateModifiers(node, modifiers);
|
|
155183
155214
|
completionNodes.push(node);
|
|
155184
155215
|
},
|
|
155185
155216
|
body,
|
|
155186
155217
|
ts_codefix_exports.PreserveOptionalFlags.Property,
|
|
155187
|
-
isAbstract
|
|
155218
|
+
!!isAbstract
|
|
155188
155219
|
);
|
|
155189
155220
|
if (completionNodes.length) {
|
|
155221
|
+
const isMethod = symbol.flags & 8192 /* Method */;
|
|
155222
|
+
let allowedModifiers = modifiers | 16384 /* Override */ | 4 /* Public */;
|
|
155223
|
+
if (!isMethod) {
|
|
155224
|
+
allowedModifiers |= 2 /* Ambient */ | 64 /* Readonly */;
|
|
155225
|
+
} else {
|
|
155226
|
+
allowedModifiers |= 512 /* Async */;
|
|
155227
|
+
}
|
|
155228
|
+
const allowedAndPresent = presentModifiers & allowedModifiers;
|
|
155229
|
+
if (presentModifiers & ~allowedModifiers) {
|
|
155230
|
+
return void 0;
|
|
155231
|
+
}
|
|
155232
|
+
if (modifiers & 16 /* Protected */ && allowedAndPresent & 4 /* Public */) {
|
|
155233
|
+
modifiers &= ~16 /* Protected */;
|
|
155234
|
+
}
|
|
155235
|
+
if (allowedAndPresent !== 0 /* None */ && !(allowedAndPresent & 4 /* Public */)) {
|
|
155236
|
+
modifiers &= ~4 /* Public */;
|
|
155237
|
+
}
|
|
155238
|
+
modifiers |= allowedAndPresent;
|
|
155239
|
+
completionNodes = completionNodes.map((node) => factory.updateModifiers(node, modifiers));
|
|
155240
|
+
if (presentDecorators == null ? void 0 : presentDecorators.length) {
|
|
155241
|
+
const lastNode = completionNodes[completionNodes.length - 1];
|
|
155242
|
+
if (canHaveDecorators(lastNode)) {
|
|
155243
|
+
completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, presentDecorators.concat(getModifiers(lastNode) || []));
|
|
155244
|
+
}
|
|
155245
|
+
}
|
|
155190
155246
|
const format = 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */;
|
|
155191
|
-
replacementSpan = modifiersSpan;
|
|
155192
155247
|
if (formatContext) {
|
|
155193
155248
|
insertText = printer.printAndFormatSnippetList(
|
|
155194
155249
|
format,
|
|
@@ -155204,24 +155259,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155204
155259
|
);
|
|
155205
155260
|
}
|
|
155206
155261
|
}
|
|
155207
|
-
return { insertText, isSnippet, importAdder,
|
|
155262
|
+
return { insertText, filterText, isSnippet, importAdder, eraseRange };
|
|
155208
155263
|
}
|
|
155209
155264
|
function getPresentModifiers(contextToken, sourceFile, position) {
|
|
155210
155265
|
if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) {
|
|
155211
155266
|
return { modifiers: 0 /* None */ };
|
|
155212
155267
|
}
|
|
155213
155268
|
let modifiers = 0 /* None */;
|
|
155214
|
-
let
|
|
155269
|
+
let decorators;
|
|
155215
155270
|
let contextMod;
|
|
155216
|
-
|
|
155217
|
-
|
|
155218
|
-
span = createTextSpanFromNode(contextToken);
|
|
155219
|
-
}
|
|
155220
|
-
if (isPropertyDeclaration(contextToken.parent)) {
|
|
155271
|
+
const range = { pos: position, end: position };
|
|
155272
|
+
if (isPropertyDeclaration(contextToken.parent) && contextToken.parent.modifiers) {
|
|
155221
155273
|
modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975 /* Modifier */;
|
|
155222
|
-
|
|
155274
|
+
decorators = contextToken.parent.modifiers.filter(isDecorator) || [];
|
|
155275
|
+
range.pos = Math.min(range.pos, contextToken.parent.modifiers.pos);
|
|
155223
155276
|
}
|
|
155224
|
-
|
|
155277
|
+
if (contextMod = isModifierLike2(contextToken)) {
|
|
155278
|
+
const contextModifierFlag = modifierToFlag(contextMod);
|
|
155279
|
+
if (!(modifiers & contextModifierFlag)) {
|
|
155280
|
+
modifiers |= contextModifierFlag;
|
|
155281
|
+
range.pos = Math.min(range.pos, contextToken.pos);
|
|
155282
|
+
}
|
|
155283
|
+
}
|
|
155284
|
+
return { modifiers, decorators, range: range.pos !== position ? range : void 0 };
|
|
155225
155285
|
}
|
|
155226
155286
|
function isModifierLike2(node) {
|
|
155227
155287
|
if (isModifier(node)) {
|
|
@@ -155844,7 +155904,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155844
155904
|
}
|
|
155845
155905
|
}
|
|
155846
155906
|
if (source === "ClassMemberSnippet/" /* ClassMemberSnippet */) {
|
|
155847
|
-
const { importAdder } = getEntryForMemberCompletion(
|
|
155907
|
+
const { importAdder, eraseRange } = getEntryForMemberCompletion(
|
|
155848
155908
|
host,
|
|
155849
155909
|
program,
|
|
155850
155910
|
compilerOptions,
|
|
@@ -155856,10 +155916,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
155856
155916
|
contextToken,
|
|
155857
155917
|
formatContext
|
|
155858
155918
|
);
|
|
155859
|
-
if (importAdder) {
|
|
155919
|
+
if (importAdder || eraseRange) {
|
|
155860
155920
|
const changes = ts_textChanges_exports.ChangeTracker.with(
|
|
155861
155921
|
{ host, formatContext, preferences },
|
|
155862
|
-
|
|
155922
|
+
(tracker) => {
|
|
155923
|
+
if (importAdder) {
|
|
155924
|
+
importAdder.writeFixes(tracker);
|
|
155925
|
+
}
|
|
155926
|
+
if (eraseRange) {
|
|
155927
|
+
tracker.deleteRange(sourceFile, eraseRange);
|
|
155928
|
+
}
|
|
155929
|
+
}
|
|
155863
155930
|
);
|
|
155864
155931
|
return {
|
|
155865
155932
|
sourceDisplay: void 0,
|
|
@@ -165842,6 +165909,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
165842
165909
|
this.insertNodeAt(sourceFile, pos, insert, options);
|
|
165843
165910
|
}
|
|
165844
165911
|
}
|
|
165912
|
+
insertNodesAtEndOfFile(sourceFile, newNodes, blankLineBetween) {
|
|
165913
|
+
this.insertAtEndOfFile(sourceFile, newNodes, blankLineBetween);
|
|
165914
|
+
}
|
|
165915
|
+
insertAtEndOfFile(sourceFile, insert, blankLineBetween) {
|
|
165916
|
+
const pos = sourceFile.end + 1;
|
|
165917
|
+
const options = {
|
|
165918
|
+
prefix: this.newLineCharacter,
|
|
165919
|
+
suffix: this.newLineCharacter + (blankLineBetween ? this.newLineCharacter : "")
|
|
165920
|
+
};
|
|
165921
|
+
this.insertNodesAt(sourceFile, pos, insert, options);
|
|
165922
|
+
}
|
|
165845
165923
|
insertStatementsInNewFile(fileName, statements, oldFile) {
|
|
165846
165924
|
if (!this.newFileChanges) {
|
|
165847
165925
|
this.newFileChanges = createMultiMap();
|
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-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230524`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -7078,6 +7078,7 @@ var Diagnostics = {
|
|
|
7078
7078
|
Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."),
|
|
7079
7079
|
Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."),
|
|
7080
7080
|
Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"),
|
|
7081
|
+
Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"),
|
|
7081
7082
|
No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
|
|
7082
7083
|
Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
|
|
7083
7084
|
JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
|
|
@@ -12891,7 +12892,8 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
12891
12892
|
ensureUseStrict,
|
|
12892
12893
|
liftToBlock,
|
|
12893
12894
|
mergeLexicalEnvironment,
|
|
12894
|
-
updateModifiers
|
|
12895
|
+
updateModifiers,
|
|
12896
|
+
updateModifierLike
|
|
12895
12897
|
};
|
|
12896
12898
|
forEach(nodeFactoryPatchers, (fn) => fn(factory2));
|
|
12897
12899
|
return factory2;
|
|
@@ -16373,6 +16375,9 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16373
16375
|
}
|
|
16374
16376
|
return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
|
|
16375
16377
|
}
|
|
16378
|
+
function updateModifierLike(node, modifierArray) {
|
|
16379
|
+
return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node);
|
|
16380
|
+
}
|
|
16376
16381
|
function asNodeArray(array) {
|
|
16377
16382
|
return array ? createNodeArray(array) : void 0;
|
|
16378
16383
|
}
|
|
@@ -25367,6 +25372,7 @@ var libEntries = [
|
|
|
25367
25372
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
25368
25373
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
25369
25374
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
25375
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
25370
25376
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
25371
25377
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
25372
25378
|
["es2017.string", "lib.es2017.string.d.ts"],
|
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-54377-7",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "d72224104a48673dadda349d19e7974c5d979205"
|
|
118
118
|
}
|