typescript 5.4.0-dev.20240112 → 5.4.0-dev.20240113

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/tsserver.js CHANGED
@@ -2341,7 +2341,7 @@ module.exports = __toCommonJS(server_exports);
2341
2341
 
2342
2342
  // src/compiler/corePublic.ts
2343
2343
  var versionMajorMinor = "5.4";
2344
- var version = `${versionMajorMinor}.0-dev.20240112`;
2344
+ var version = `${versionMajorMinor}.0-dev.20240113`;
2345
2345
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2346
2346
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2347
2347
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -48302,7 +48302,8 @@ var intrinsicTypeKinds = new Map(Object.entries({
48302
48302
  Uppercase: 0 /* Uppercase */,
48303
48303
  Lowercase: 1 /* Lowercase */,
48304
48304
  Capitalize: 2 /* Capitalize */,
48305
- Uncapitalize: 3 /* Uncapitalize */
48305
+ Uncapitalize: 3 /* Uncapitalize */,
48306
+ NoInfer: 4 /* NoInfer */
48306
48307
  }));
48307
48308
  var SymbolLinks = class {
48308
48309
  };
@@ -52668,16 +52669,12 @@ function createTypeChecker(host) {
52668
52669
  }
52669
52670
  function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) {
52670
52671
  let aliasesToMakeVisible;
52671
- let bindingElementToMakeVisible;
52672
52672
  if (!every(filter(symbol.declarations, (d) => d.kind !== 80 /* Identifier */), getIsDeclarationVisible)) {
52673
52673
  return void 0;
52674
52674
  }
52675
- return { accessibility: 0 /* Accessible */, aliasesToMakeVisible, bindingElementToMakeVisible };
52675
+ return { accessibility: 0 /* Accessible */, aliasesToMakeVisible };
52676
52676
  function getIsDeclarationVisible(declaration) {
52677
52677
  var _a, _b;
52678
- if (isBindingElement(declaration) && findAncestor(declaration, isParameter)) {
52679
- bindingElementToMakeVisible = declaration;
52680
- }
52681
52678
  if (!isDeclarationVisible(declaration)) {
52682
52679
  const anyImportSyntax = getAnyImportSyntax(declaration);
52683
52680
  if (anyImportSyntax && !hasSyntacticModifier(anyImportSyntax, 32 /* Export */) && // import clause without export
@@ -53188,7 +53185,13 @@ function createTypeChecker(host) {
53188
53185
  return visitAndTransformType(type, (type2) => conditionalTypeToTypeNode(type2));
53189
53186
  }
53190
53187
  if (type.flags & 33554432 /* Substitution */) {
53191
- return typeToTypeNodeHelper(type.baseType, context);
53188
+ const typeNode = typeToTypeNodeHelper(type.baseType, context);
53189
+ const noInferSymbol = isNoInferType(type) && getGlobalTypeSymbol(
53190
+ "NoInfer",
53191
+ /*reportErrors*/
53192
+ false
53193
+ );
53194
+ return noInferSymbol ? symbolToTypeNode(noInferSymbol, context, 788968 /* Type */, [typeNode]) : typeNode;
53192
53195
  }
53193
53196
  return Debug.fail("Should be unreachable.");
53194
53197
  function conditionalTypeToTypeNode(type2) {
@@ -61158,8 +61161,11 @@ function createTypeChecker(host) {
61158
61161
  }
61159
61162
  function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) {
61160
61163
  const type = getDeclaredTypeOfSymbol(symbol);
61161
- if (type === intrinsicMarkerType && intrinsicTypeKinds.has(symbol.escapedName) && typeArguments && typeArguments.length === 1) {
61162
- return getStringMappingType(symbol, typeArguments[0]);
61164
+ if (type === intrinsicMarkerType) {
61165
+ const typeKind = intrinsicTypeKinds.get(symbol.escapedName);
61166
+ if (typeKind !== void 0 && typeArguments && typeArguments.length === 1) {
61167
+ return typeKind === 4 /* NoInfer */ ? getNoInferType(typeArguments[0]) : getStringMappingType(symbol, typeArguments[0]);
61168
+ }
61163
61169
  }
61164
61170
  const links = getSymbolLinks(symbol);
61165
61171
  const typeParameters = links.typeParameters;
@@ -61313,10 +61319,19 @@ function createTypeChecker(host) {
61313
61319
  }
61314
61320
  return links.resolvedJSDocType;
61315
61321
  }
61322
+ function getNoInferType(type) {
61323
+ return isNoInferTargetType(type) ? getOrCreateSubstitutionType(type, unknownType) : type;
61324
+ }
61325
+ function isNoInferTargetType(type) {
61326
+ return !!(type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, isNoInferTargetType) || type.flags & 33554432 /* Substitution */ && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 /* Instantiable */ & ~33554432 /* Substitution */) && !isPatternLiteralType(type));
61327
+ }
61328
+ function isNoInferType(type) {
61329
+ return !!(type.flags & 33554432 /* Substitution */ && type.constraint.flags & 2 /* Unknown */);
61330
+ }
61316
61331
  function getSubstitutionType(baseType, constraint) {
61317
- if (constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */) {
61318
- return baseType;
61319
- }
61332
+ return constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */ ? baseType : getOrCreateSubstitutionType(baseType, constraint);
61333
+ }
61334
+ function getOrCreateSubstitutionType(baseType, constraint) {
61320
61335
  const id = `${getTypeId(baseType)}>${getTypeId(constraint)}`;
61321
61336
  const cached = substitutionTypes.get(id);
61322
61337
  if (cached) {
@@ -61329,7 +61344,7 @@ function createTypeChecker(host) {
61329
61344
  return result;
61330
61345
  }
61331
61346
  function getSubstitutionIntersection(substitutionType) {
61332
- return getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
61347
+ return isNoInferType(substitutionType) ? substitutionType.baseType : getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
61333
61348
  }
61334
61349
  function isUnaryTupleTypeNode(node) {
61335
61350
  return node.kind === 189 /* TupleType */ && node.elements.length === 1;
@@ -62858,7 +62873,7 @@ function createTypeChecker(host) {
62858
62873
  }
62859
62874
  function getIndexType(type, indexFlags = defaultIndexFlags) {
62860
62875
  type = getReducedType(type);
62861
- return shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === defaultIndexFlags);
62876
+ return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === defaultIndexFlags);
62862
62877
  }
62863
62878
  function getExtractStringType(type) {
62864
62879
  if (keyofStringsOnly) {
@@ -64601,6 +64616,9 @@ function createTypeChecker(host) {
64601
64616
  }
64602
64617
  if (flags & 33554432 /* Substitution */) {
64603
64618
  const newBaseType = instantiateType(type.baseType, mapper);
64619
+ if (isNoInferType(type)) {
64620
+ return getNoInferType(newBaseType);
64621
+ }
64604
64622
  const newConstraint = instantiateType(type.constraint, mapper);
64605
64623
  if (newBaseType.flags & 8650752 /* TypeVariable */ && isGenericType(newConstraint)) {
64606
64624
  return getSubstitutionType(newBaseType, newConstraint);
@@ -69393,7 +69411,7 @@ function createTypeChecker(host) {
69393
69411
  let expandingFlags = 0 /* None */;
69394
69412
  inferFromTypes(originalSource, originalTarget);
69395
69413
  function inferFromTypes(source, target) {
69396
- if (!couldContainTypeVariables(target)) {
69414
+ if (!couldContainTypeVariables(target) || isNoInferType(target)) {
69397
69415
  return;
69398
69416
  }
69399
69417
  if (source === wildcardType || source === blockedStringType) {
@@ -69442,6 +69460,9 @@ function createTypeChecker(host) {
69442
69460
  }
69443
69461
  }
69444
69462
  if (target.flags & (8388608 /* IndexedAccess */ | 33554432 /* Substitution */)) {
69463
+ if (isNoInferType(target)) {
69464
+ return;
69465
+ }
69445
69466
  target = getActualTypeVariable(target);
69446
69467
  }
69447
69468
  if (target.flags & 8650752 /* TypeVariable */) {
@@ -113406,7 +113427,6 @@ function transformDeclarations(context) {
113406
113427
  let lateStatementReplacementMap;
113407
113428
  let suppressNewDiagnosticContexts;
113408
113429
  let exportedModulesFromDeclarationEmit;
113409
- const usedBindingElementAliases = /* @__PURE__ */ new Map();
113410
113430
  const { factory: factory2 } = context;
113411
113431
  const host = context.getEmitHost();
113412
113432
  const symbolTracker = {
@@ -113472,17 +113492,6 @@ function transformDeclarations(context) {
113472
113492
  }
113473
113493
  }
113474
113494
  }
113475
- if (symbolAccessibilityResult.bindingElementToMakeVisible) {
113476
- const bindingElement = symbolAccessibilityResult.bindingElementToMakeVisible;
113477
- const parameter = findAncestor(bindingElement, isParameter);
113478
- Debug.assert(parameter !== void 0);
113479
- const parent2 = getOriginalNode(parameter.parent);
113480
- let aliases = usedBindingElementAliases.get(parent2);
113481
- if (!aliases) {
113482
- usedBindingElementAliases.set(parent2, aliases = /* @__PURE__ */ new Map());
113483
- }
113484
- aliases.set(getOriginalNode(bindingElement), bindingElement.name);
113485
- }
113486
113495
  } else {
113487
113496
  const errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult);
113488
113497
  if (errorInfo) {
@@ -113815,7 +113824,7 @@ function transformDeclarations(context) {
113815
113824
  });
113816
113825
  return ret;
113817
113826
  }
113818
- function filterBindingPatternInitializersAndRenamings(name) {
113827
+ function filterBindingPatternInitializers(name) {
113819
113828
  if (name.kind === 80 /* Identifier */) {
113820
113829
  return name;
113821
113830
  } else {
@@ -113832,180 +113841,15 @@ function transformDeclarations(context) {
113832
113841
  if (elem.propertyName && isComputedPropertyName(elem.propertyName) && isEntityNameExpression(elem.propertyName.expression)) {
113833
113842
  checkEntityNameVisibility(elem.propertyName.expression, enclosingDeclaration);
113834
113843
  }
113835
- if (elem.propertyName && isIdentifier(elem.propertyName) && isIdentifier(elem.name) && !isIdentifierANonContextualKeyword(elem.propertyName)) {
113836
- return factory2.updateBindingElement(
113837
- elem,
113838
- elem.dotDotDotToken,
113839
- /*propertyName*/
113840
- void 0,
113841
- elem.propertyName,
113842
- shouldPrintWithInitializer(elem) ? elem.initializer : void 0
113843
- );
113844
- }
113845
113844
  return factory2.updateBindingElement(
113846
113845
  elem,
113847
113846
  elem.dotDotDotToken,
113848
113847
  elem.propertyName,
113849
- filterBindingPatternInitializersAndRenamings(elem.name),
113848
+ filterBindingPatternInitializers(elem.name),
113850
113849
  shouldPrintWithInitializer(elem) ? elem.initializer : void 0
113851
113850
  );
113852
113851
  }
113853
113852
  }
113854
- function ensureBindingAliasesInParameterList(input, updatedNode) {
113855
- const original = getOriginalNode(input);
113856
- const params = updatedNode.parameters;
113857
- const aliases = usedBindingElementAliases.get(original);
113858
- if (!aliases) {
113859
- return updatedNode;
113860
- }
113861
- usedBindingElementAliases.delete(original);
113862
- const newParams = map(params, addUsedBindingPatternsToParameter);
113863
- const newParamsNodeArray = factory2.createNodeArray(newParams, params.hasTrailingComma);
113864
- switch (updatedNode.kind) {
113865
- case 174 /* MethodDeclaration */:
113866
- return factory2.updateMethodDeclaration(
113867
- updatedNode,
113868
- updatedNode.modifiers,
113869
- updatedNode.asteriskToken,
113870
- updatedNode.name,
113871
- updatedNode.questionToken,
113872
- updatedNode.typeParameters,
113873
- newParamsNodeArray,
113874
- updatedNode.type,
113875
- updatedNode.body
113876
- );
113877
- case 176 /* Constructor */:
113878
- return factory2.updateConstructorDeclaration(
113879
- updatedNode,
113880
- updatedNode.modifiers,
113881
- newParamsNodeArray,
113882
- updatedNode.body
113883
- );
113884
- case 177 /* GetAccessor */:
113885
- return factory2.updateGetAccessorDeclaration(
113886
- updatedNode,
113887
- updatedNode.modifiers,
113888
- updatedNode.name,
113889
- newParamsNodeArray,
113890
- updatedNode.type,
113891
- updatedNode.body
113892
- );
113893
- case 178 /* SetAccessor */:
113894
- return factory2.updateSetAccessorDeclaration(
113895
- updatedNode,
113896
- updatedNode.modifiers,
113897
- updatedNode.name,
113898
- newParamsNodeArray,
113899
- updatedNode.body
113900
- );
113901
- case 219 /* ArrowFunction */:
113902
- return factory2.updateArrowFunction(
113903
- updatedNode,
113904
- updatedNode.modifiers,
113905
- updatedNode.typeParameters,
113906
- newParamsNodeArray,
113907
- updatedNode.type,
113908
- updatedNode.equalsGreaterThanToken,
113909
- updatedNode.body
113910
- );
113911
- case 262 /* FunctionDeclaration */:
113912
- return factory2.updateFunctionDeclaration(
113913
- updatedNode,
113914
- updatedNode.modifiers,
113915
- updatedNode.asteriskToken,
113916
- updatedNode.name,
113917
- updatedNode.typeParameters,
113918
- newParamsNodeArray,
113919
- updatedNode.type,
113920
- updatedNode.body
113921
- );
113922
- case 179 /* CallSignature */:
113923
- return factory2.updateCallSignature(
113924
- updatedNode,
113925
- updatedNode.typeParameters,
113926
- newParamsNodeArray,
113927
- updatedNode.type
113928
- );
113929
- case 173 /* MethodSignature */:
113930
- return factory2.updateMethodSignature(
113931
- updatedNode,
113932
- updatedNode.modifiers,
113933
- updatedNode.name,
113934
- updatedNode.questionToken,
113935
- updatedNode.typeParameters,
113936
- newParamsNodeArray,
113937
- updatedNode.type
113938
- );
113939
- case 180 /* ConstructSignature */:
113940
- return factory2.updateConstructSignature(
113941
- updatedNode,
113942
- updatedNode.typeParameters,
113943
- newParamsNodeArray,
113944
- updatedNode.type
113945
- );
113946
- case 184 /* FunctionType */:
113947
- return factory2.updateFunctionTypeNode(
113948
- updatedNode,
113949
- updatedNode.typeParameters,
113950
- newParamsNodeArray,
113951
- updatedNode.type
113952
- );
113953
- case 185 /* ConstructorType */:
113954
- return factory2.updateConstructorTypeNode(
113955
- updatedNode,
113956
- updatedNode.modifiers,
113957
- updatedNode.typeParameters,
113958
- newParamsNodeArray,
113959
- updatedNode.type
113960
- );
113961
- default:
113962
- Debug.assertNever(updatedNode);
113963
- }
113964
- function addUsedBindingPatternsToParameter(p) {
113965
- return factory2.updateParameterDeclaration(
113966
- p,
113967
- p.modifiers,
113968
- p.dotDotDotToken,
113969
- addUsedBindingPatternAliases(p.name),
113970
- p.questionToken,
113971
- p.type,
113972
- p.initializer
113973
- );
113974
- }
113975
- function addUsedBindingPatternAliases(name) {
113976
- if (name.kind === 80 /* Identifier */) {
113977
- return name;
113978
- } else {
113979
- if (name.kind === 207 /* ArrayBindingPattern */) {
113980
- return factory2.updateArrayBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isArrayBindingElement));
113981
- } else {
113982
- return factory2.updateObjectBindingPattern(name, visitNodes2(name.elements, visitBindingElement, isBindingElement));
113983
- }
113984
- }
113985
- function visitBindingElement(elem) {
113986
- if (elem.kind === 232 /* OmittedExpression */) {
113987
- return elem;
113988
- }
113989
- const usedAlias = aliases.get(getOriginalNode(elem));
113990
- if (usedAlias && !elem.propertyName) {
113991
- return factory2.updateBindingElement(
113992
- elem,
113993
- elem.dotDotDotToken,
113994
- elem.name,
113995
- usedAlias,
113996
- elem.initializer
113997
- );
113998
- }
113999
- return factory2.updateBindingElement(
114000
- elem,
114001
- elem.dotDotDotToken,
114002
- elem.propertyName,
114003
- addUsedBindingPatternAliases(elem.name),
114004
- elem.initializer
114005
- );
114006
- }
114007
- }
114008
- }
114009
113853
  function ensureParameter(p, modifierMask, type) {
114010
113854
  let oldDiag;
114011
113855
  if (!suppressNewDiagnosticContexts) {
@@ -114016,7 +113860,7 @@ function transformDeclarations(context) {
114016
113860
  p,
114017
113861
  maskModifiers(factory2, p, modifierMask),
114018
113862
  p.dotDotDotToken,
114019
- filterBindingPatternInitializersAndRenamings(p.name),
113863
+ filterBindingPatternInitializers(p.name),
114020
113864
  resolver.isOptionalParameter(p) ? p.questionToken || factory2.createToken(58 /* QuestionToken */) : void 0,
114021
113865
  ensureType(
114022
113866
  p,
@@ -114392,25 +114236,19 @@ function transformDeclarations(context) {
114392
114236
  return cleanup(factory2.updateTypeReferenceNode(node, node.typeName, node.typeArguments));
114393
114237
  }
114394
114238
  case 180 /* ConstructSignature */:
114395
- return cleanup(ensureBindingAliasesInParameterList(
114239
+ return cleanup(factory2.updateConstructSignature(
114396
114240
  input,
114397
- factory2.updateConstructSignature(
114398
- input,
114399
- ensureTypeParams(input, input.typeParameters),
114400
- updateParamsList(input, input.parameters),
114401
- ensureType(input, input.type)
114402
- )
114241
+ ensureTypeParams(input, input.typeParameters),
114242
+ updateParamsList(input, input.parameters),
114243
+ ensureType(input, input.type)
114403
114244
  ));
114404
114245
  case 176 /* Constructor */: {
114405
- const ctor = ensureBindingAliasesInParameterList(
114406
- input,
114407
- factory2.createConstructorDeclaration(
114408
- /*modifiers*/
114409
- ensureModifiers(input),
114410
- updateParamsList(input, input.parameters, 0 /* None */),
114411
- /*body*/
114412
- void 0
114413
- )
114246
+ const ctor = factory2.createConstructorDeclaration(
114247
+ /*modifiers*/
114248
+ ensureModifiers(input),
114249
+ updateParamsList(input, input.parameters, 0 /* None */),
114250
+ /*body*/
114251
+ void 0
114414
114252
  );
114415
114253
  return cleanup(ctor);
114416
114254
  }
@@ -114421,20 +114259,17 @@ function transformDeclarations(context) {
114421
114259
  void 0
114422
114260
  );
114423
114261
  }
114424
- const sig = ensureBindingAliasesInParameterList(
114425
- input,
114426
- factory2.createMethodDeclaration(
114427
- ensureModifiers(input),
114428
- /*asteriskToken*/
114429
- void 0,
114430
- input.name,
114431
- input.questionToken,
114432
- ensureTypeParams(input, input.typeParameters),
114433
- updateParamsList(input, input.parameters),
114434
- ensureType(input, input.type),
114435
- /*body*/
114436
- void 0
114437
- )
114262
+ const sig = factory2.createMethodDeclaration(
114263
+ ensureModifiers(input),
114264
+ /*asteriskToken*/
114265
+ void 0,
114266
+ input.name,
114267
+ input.questionToken,
114268
+ ensureTypeParams(input, input.typeParameters),
114269
+ updateParamsList(input, input.parameters),
114270
+ ensureType(input, input.type),
114271
+ /*body*/
114272
+ void 0
114438
114273
  );
114439
114274
  return cleanup(sig);
114440
114275
  }
@@ -114446,17 +114281,14 @@ function transformDeclarations(context) {
114446
114281
  );
114447
114282
  }
114448
114283
  const accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, resolver.getAllAccessorDeclarations(input));
114449
- return cleanup(ensureBindingAliasesInParameterList(
114284
+ return cleanup(factory2.updateGetAccessorDeclaration(
114450
114285
  input,
114451
- factory2.updateGetAccessorDeclaration(
114452
- input,
114453
- ensureModifiers(input),
114454
- input.name,
114455
- updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)),
114456
- ensureType(input, accessorType),
114457
- /*body*/
114458
- void 0
114459
- )
114286
+ ensureModifiers(input),
114287
+ input.name,
114288
+ updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)),
114289
+ ensureType(input, accessorType),
114290
+ /*body*/
114291
+ void 0
114460
114292
  ));
114461
114293
  }
114462
114294
  case 178 /* SetAccessor */: {
@@ -114466,16 +114298,13 @@ function transformDeclarations(context) {
114466
114298
  void 0
114467
114299
  );
114468
114300
  }
114469
- return cleanup(ensureBindingAliasesInParameterList(
114301
+ return cleanup(factory2.updateSetAccessorDeclaration(
114470
114302
  input,
114471
- factory2.updateSetAccessorDeclaration(
114472
- input,
114473
- ensureModifiers(input),
114474
- input.name,
114475
- updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)),
114476
- /*body*/
114477
- void 0
114478
- )
114303
+ ensureModifiers(input),
114304
+ input.name,
114305
+ updateAccessorParamsList(input, hasEffectiveModifier(input, 2 /* Private */)),
114306
+ /*body*/
114307
+ void 0
114479
114308
  ));
114480
114309
  }
114481
114310
  case 172 /* PropertyDeclaration */:
@@ -114514,29 +114343,25 @@ function transformDeclarations(context) {
114514
114343
  void 0
114515
114344
  );
114516
114345
  }
114517
- return cleanup(ensureBindingAliasesInParameterList(
114346
+ return cleanup(factory2.updateMethodSignature(
114518
114347
  input,
114519
- factory2.updateMethodSignature(
114520
- input,
114521
- ensureModifiers(input),
114522
- input.name,
114523
- input.questionToken,
114524
- ensureTypeParams(input, input.typeParameters),
114525
- updateParamsList(input, input.parameters),
114526
- ensureType(input, input.type)
114527
- )
114348
+ ensureModifiers(input),
114349
+ input.name,
114350
+ input.questionToken,
114351
+ ensureTypeParams(input, input.typeParameters),
114352
+ updateParamsList(input, input.parameters),
114353
+ ensureType(input, input.type)
114528
114354
  ));
114529
114355
  }
114530
114356
  case 179 /* CallSignature */: {
114531
- return cleanup(ensureBindingAliasesInParameterList(
114532
- input,
114357
+ return cleanup(
114533
114358
  factory2.updateCallSignature(
114534
114359
  input,
114535
114360
  ensureTypeParams(input, input.typeParameters),
114536
114361
  updateParamsList(input, input.parameters),
114537
114362
  ensureType(input, input.type)
114538
114363
  )
114539
- ));
114364
+ );
114540
114365
  }
114541
114366
  case 181 /* IndexSignature */: {
114542
114367
  return cleanup(factory2.updateIndexSignature(
@@ -114590,26 +114415,20 @@ function transformDeclarations(context) {
114590
114415
  return cleanup(factory2.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType));
114591
114416
  }
114592
114417
  case 184 /* FunctionType */: {
114593
- return cleanup(ensureBindingAliasesInParameterList(
114418
+ return cleanup(factory2.updateFunctionTypeNode(
114594
114419
  input,
114595
- factory2.updateFunctionTypeNode(
114596
- input,
114597
- visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration),
114598
- updateParamsList(input, input.parameters),
114599
- Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))
114600
- )
114420
+ visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration),
114421
+ updateParamsList(input, input.parameters),
114422
+ Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))
114601
114423
  ));
114602
114424
  }
114603
114425
  case 185 /* ConstructorType */: {
114604
- return cleanup(ensureBindingAliasesInParameterList(
114426
+ return cleanup(factory2.updateConstructorTypeNode(
114605
114427
  input,
114606
- factory2.updateConstructorTypeNode(
114607
- input,
114608
- ensureModifiers(input),
114609
- visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration),
114610
- updateParamsList(input, input.parameters),
114611
- Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))
114612
- )
114428
+ ensureModifiers(input),
114429
+ visitNodes2(input.typeParameters, visitDeclarationSubtree, isTypeParameterDeclaration),
114430
+ updateParamsList(input, input.parameters),
114431
+ Debug.checkDefined(visitNode(input.type, visitDeclarationSubtree, isTypeNode))
114613
114432
  ));
114614
114433
  }
114615
114434
  case 205 /* ImportType */: {
@@ -114795,20 +114614,17 @@ function transformDeclarations(context) {
114795
114614
  ));
114796
114615
  }
114797
114616
  case 262 /* FunctionDeclaration */: {
114798
- const clean2 = cleanup(ensureBindingAliasesInParameterList(
114617
+ const clean2 = cleanup(factory2.updateFunctionDeclaration(
114799
114618
  input,
114800
- factory2.updateFunctionDeclaration(
114801
- input,
114802
- ensureModifiers(input),
114803
- /*asteriskToken*/
114804
- void 0,
114805
- input.name,
114806
- ensureTypeParams(input, input.typeParameters),
114807
- updateParamsList(input, input.parameters),
114808
- ensureType(input, input.type),
114809
- /*body*/
114810
- void 0
114811
- )
114619
+ ensureModifiers(input),
114620
+ /*asteriskToken*/
114621
+ void 0,
114622
+ input.name,
114623
+ ensureTypeParams(input, input.typeParameters),
114624
+ updateParamsList(input, input.parameters),
114625
+ ensureType(input, input.type),
114626
+ /*body*/
114627
+ void 0
114812
114628
  ));
114813
114629
  if (clean2 && resolver.isExpandoFunctionDeclaration(input) && shouldEmitFunctionProperties(input)) {
114814
114630
  const props = resolver.getPropertiesOfContainerFunction(input);