@typescript-deploys/pr-build 4.8.0-pr-49881-8 → 4.8.0-pr-50021-12

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.dom.d.ts CHANGED
@@ -13848,11 +13848,11 @@ declare var SubmitEvent: {
13848
13848
  * Available only in secure contexts.
13849
13849
  */
13850
13850
  interface SubtleCrypto {
13851
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
13851
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
13852
13852
  deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
13853
13853
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
13854
13854
  digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
13855
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
13855
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
13856
13856
  exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
13857
13857
  exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
13858
13858
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
@@ -3008,11 +3008,11 @@ declare var StorageManager: {
3008
3008
  * Available only in secure contexts.
3009
3009
  */
3010
3010
  interface SubtleCrypto {
3011
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
3011
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
3012
3012
  deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
3013
3013
  deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
3014
3014
  digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
3015
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
3015
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
3016
3016
  exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
3017
3017
  exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
3018
3018
  generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.8";
72
- ts.version = ts.versionMajorMinor + ".0-insiders.20220715";
72
+ ts.version = ts.versionMajorMinor + ".0-insiders.20220723";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -4317,8 +4317,10 @@ var ts;
4317
4317
  watchPresentFileSystemEntry();
4318
4318
  return {
4319
4319
  close: function () {
4320
- watcher.close();
4321
- watcher = undefined;
4320
+ if (watcher) {
4321
+ watcher.close();
4322
+ watcher = undefined;
4323
+ }
4322
4324
  }
4323
4325
  };
4324
4326
  function updateWatcher(createWatcher) {
@@ -28486,6 +28488,9 @@ var ts;
28486
28488
  var typeArguments = tryParse(parseTypeArgumentsInExpression);
28487
28489
  if (typeArguments !== undefined) {
28488
28490
  parseErrorAt(startPos, getNodePos(), ts.Diagnostics.super_may_not_use_type_arguments);
28491
+ if (!isTemplateStartOfTaggedTemplate()) {
28492
+ expression = factory.createExpressionWithTypeArguments(expression, typeArguments);
28493
+ }
28489
28494
  }
28490
28495
  }
28491
28496
  if (token() === 20 || token() === 24 || token() === 22) {
@@ -41382,7 +41387,7 @@ var ts;
41382
41387
  }
41383
41388
  }
41384
41389
  function checkAndReportErrorForInvalidInitializer() {
41385
- if (propertyWithInvalidInitializer && !(ts.getEmitScriptTarget(compilerOptions) === 99 && useDefineForClassFields)) {
41390
+ if (propertyWithInvalidInitializer && !(useDefineForClassFields && ts.getEmitScriptTarget(compilerOptions) >= 9)) {
41386
41391
  error(errorLocation, errorLocation && propertyWithInvalidInitializer.type && ts.textRangeContainsPositionInclusive(propertyWithInvalidInitializer.type, errorLocation.pos)
41387
41392
  ? ts.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor
41388
41393
  : ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyWithInvalidInitializer.name), diagnosticName(nameArg));
@@ -49034,6 +49039,9 @@ var ts;
49034
49039
  else if (type.objectFlags & 32) {
49035
49040
  resolveMappedTypeMembers(type);
49036
49041
  }
49042
+ else {
49043
+ ts.Debug.fail("Unhandled object type " + ts.Debug.formatObjectFlags(type.objectFlags));
49044
+ }
49037
49045
  }
49038
49046
  else if (type.flags & 1048576) {
49039
49047
  resolveUnionTypeMembers(type);
@@ -49041,6 +49049,9 @@ var ts;
49041
49049
  else if (type.flags & 2097152) {
49042
49050
  resolveIntersectionTypeMembers(type);
49043
49051
  }
49052
+ else {
49053
+ ts.Debug.fail("Unhandled type " + ts.Debug.formatTypeFlags(type.flags));
49054
+ }
49044
49055
  }
49045
49056
  return type;
49046
49057
  }
@@ -49710,12 +49721,15 @@ var ts;
49710
49721
  return getApplicableIndexInfo(type, isLateBoundName(name) ? esSymbolType : getStringLiteralType(ts.unescapeLeadingUnderscores(name)));
49711
49722
  }
49712
49723
  function getTypeParametersFromDeclaration(declaration) {
49724
+ var _a;
49713
49725
  var result;
49714
- for (var _i = 0, _a = ts.getEffectiveTypeParameterDeclarations(declaration); _i < _a.length; _i++) {
49715
- var node = _a[_i];
49726
+ for (var _i = 0, _b = ts.getEffectiveTypeParameterDeclarations(declaration); _i < _b.length; _i++) {
49727
+ var node = _b[_i];
49716
49728
  result = ts.appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol));
49717
49729
  }
49718
- return result;
49730
+ return (result === null || result === void 0 ? void 0 : result.length) ? result
49731
+ : ts.isFunctionDeclaration(declaration) ? (_a = getSignatureOfTypeTag(declaration)) === null || _a === void 0 ? void 0 : _a.typeParameters
49732
+ : undefined;
49719
49733
  }
49720
49734
  function symbolsToArray(symbols) {
49721
49735
  var result = [];
@@ -56665,34 +56679,28 @@ var ts;
56665
56679
  var commonBaseType;
56666
56680
  for (var _i = 0, types_13 = types; _i < types_13.length; _i++) {
56667
56681
  var t = types_13[_i];
56668
- var baseType = getBaseTypeOfLiteralType(t);
56669
- if (!commonBaseType) {
56670
- commonBaseType = baseType;
56671
- }
56672
- if (baseType === t || baseType !== commonBaseType) {
56673
- return false;
56682
+ if (!(t.flags & 131072)) {
56683
+ var baseType = getBaseTypeOfLiteralType(t);
56684
+ commonBaseType !== null && commonBaseType !== void 0 ? commonBaseType : (commonBaseType = baseType);
56685
+ if (baseType === t || baseType !== commonBaseType) {
56686
+ return false;
56687
+ }
56674
56688
  }
56675
56689
  }
56676
56690
  return true;
56677
56691
  }
56678
- function getSupertypeOrUnion(types) {
56679
- if (types.length === 1) {
56680
- return types[0];
56681
- }
56682
- return literalTypesWithSameBaseType(types) ?
56683
- getUnionType(types) :
56684
- ts.reduceLeft(types, function (s, t) { return isTypeSubtypeOf(s, t) ? t : s; });
56692
+ function getCombinedTypeFlags(types) {
56693
+ return ts.reduceLeft(types, function (flags, t) { return flags | (t.flags & 1048576 ? getCombinedTypeFlags(t.types) : t.flags); }, 0);
56685
56694
  }
56686
56695
  function getCommonSupertype(types) {
56687
- if (!strictNullChecks) {
56688
- return getSupertypeOrUnion(types);
56689
- }
56690
- var primaryTypes = ts.filter(types, function (t) { return !(t.flags & 98304); });
56691
- if (primaryTypes.length) {
56692
- var supertypeOrUnion = getSupertypeOrUnion(primaryTypes);
56693
- return primaryTypes === types ? supertypeOrUnion : getUnionType(__spreadArray([supertypeOrUnion], ts.filter(types, function (t) { return !!(t.flags & 98304); }), true));
56696
+ if (types.length === 1) {
56697
+ return types[0];
56694
56698
  }
56695
- return getUnionType(types, 2);
56699
+ var primaryTypes = strictNullChecks ? ts.sameMap(types, function (t) { return filterType(t, function (u) { return !(u.flags & 98304); }); }) : types;
56700
+ var superTypeOrUnion = literalTypesWithSameBaseType(primaryTypes) ?
56701
+ getUnionType(primaryTypes) :
56702
+ ts.reduceLeft(primaryTypes, function (s, t) { return isTypeSubtypeOf(s, t) ? t : s; });
56703
+ return primaryTypes === types ? superTypeOrUnion : getNullableType(superTypeOrUnion, getCombinedTypeFlags(types) & 98304);
56696
56704
  }
56697
56705
  function getCommonSubtype(types) {
56698
56706
  return ts.reduceLeft(types, function (s, t) { return isTypeSubtypeOf(t, s) ? t : s; });
@@ -57761,15 +57769,11 @@ var ts;
57761
57769
  inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
57762
57770
  }
57763
57771
  else if (source.flags & 4194304 && target.flags & 4194304) {
57764
- contravariant = !contravariant;
57765
- inferFromTypes(source.type, target.type);
57766
- contravariant = !contravariant;
57772
+ inferFromContravariantTypes(source.type, target.type);
57767
57773
  }
57768
57774
  else if ((isLiteralType(source) || source.flags & 4) && target.flags & 4194304) {
57769
57775
  var empty = createEmptyObjectTypeFromStringLiteral(source);
57770
- contravariant = !contravariant;
57771
- inferWithPriority(empty, target.type, 256);
57772
- contravariant = !contravariant;
57776
+ inferFromContravariantTypesWithPriority(empty, target.type, 256);
57773
57777
  }
57774
57778
  else if (source.flags & 8388608 && target.flags & 8388608) {
57775
57779
  inferFromTypes(source.objectType, target.objectType);
@@ -57782,10 +57786,7 @@ var ts;
57782
57786
  }
57783
57787
  else if (source.flags & 33554432) {
57784
57788
  inferFromTypes(source.baseType, target);
57785
- var oldPriority = priority;
57786
- priority |= 4;
57787
- inferFromTypes(source.substitute, target);
57788
- priority = oldPriority;
57789
+ inferWithPriority(source.substitute, target, 4);
57789
57790
  }
57790
57791
  else if (target.flags & 16777216) {
57791
57792
  invokeOnce(source, target, inferToConditionalType);
@@ -57824,6 +57825,18 @@ var ts;
57824
57825
  inferFromTypes(source, target);
57825
57826
  priority = savePriority;
57826
57827
  }
57828
+ function inferFromContravariantTypesWithPriority(source, target, newPriority) {
57829
+ var savePriority = priority;
57830
+ priority |= newPriority;
57831
+ inferFromContravariantTypes(source, target);
57832
+ priority = savePriority;
57833
+ }
57834
+ function inferToMultipleTypesWithPriority(source, targets, targetFlags, newPriority) {
57835
+ var savePriority = priority;
57836
+ priority |= newPriority;
57837
+ inferToMultipleTypes(source, targets, targetFlags);
57838
+ priority = savePriority;
57839
+ }
57827
57840
  function invokeOnce(source, target, action) {
57828
57841
  var key = source.id + "," + target.id;
57829
57842
  var status = visited && visited.get(key);
@@ -57886,10 +57899,13 @@ var ts;
57886
57899
  }
57887
57900
  }
57888
57901
  function inferFromContravariantTypes(source, target) {
57902
+ contravariant = !contravariant;
57903
+ inferFromTypes(source, target);
57904
+ contravariant = !contravariant;
57905
+ }
57906
+ function inferFromContravariantTypesIfStrictFunctionTypes(source, target) {
57889
57907
  if (strictFunctionTypes || priority & 1024) {
57890
- contravariant = !contravariant;
57891
- inferFromTypes(source, target);
57892
- contravariant = !contravariant;
57908
+ inferFromContravariantTypes(source, target);
57893
57909
  }
57894
57910
  else {
57895
57911
  inferFromTypes(source, target);
@@ -58020,11 +58036,8 @@ var ts;
58020
58036
  inferFromTypes(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target));
58021
58037
  }
58022
58038
  else {
58023
- var savePriority = priority;
58024
- priority |= contravariant ? 64 : 0;
58025
58039
  var targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)];
58026
- inferToMultipleTypes(source, targetTypes, target.flags);
58027
- priority = savePriority;
58040
+ inferToMultipleTypesWithPriority(source, targetTypes, target.flags, contravariant ? 64 : 0);
58028
58041
  }
58029
58042
  }
58030
58043
  function inferToTemplateLiteralType(source, target) {
@@ -58183,7 +58196,7 @@ var ts;
58183
58196
  var saveBivariant = bivariant;
58184
58197
  var kind = target.declaration ? target.declaration.kind : 0;
58185
58198
  bivariant = bivariant || kind === 169 || kind === 168 || kind === 171;
58186
- applyToParameterTypes(source, target, inferFromContravariantTypes);
58199
+ applyToParameterTypes(source, target, inferFromContravariantTypesIfStrictFunctionTypes);
58187
58200
  bivariant = saveBivariant;
58188
58201
  applyToReturnTypes(source, target, inferFromTypes);
58189
58202
  }
@@ -59510,7 +59523,7 @@ var ts;
59510
59523
  return declaredType;
59511
59524
  }
59512
59525
  if (ts.isVariableDeclaration(node) && node.parent.parent.kind === 243 && isMatchingReference(reference, node.parent.parent.expression)) {
59513
- return getNonNullableTypeIfNeeded(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)));
59526
+ return getNonNullableTypeIfNeeded(finalizeEvolvingArrayType(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent))));
59514
59527
  }
59515
59528
  return undefined;
59516
59529
  }
@@ -60158,16 +60171,23 @@ var ts;
60158
60171
  if (!assumeTrue) {
60159
60172
  return filterType(type, function (t) { return !isRelated(t, candidate); });
60160
60173
  }
60161
- if (type.flags & 1048576) {
60162
- var assignableType = filterType(type, function (t) { return isRelated(t, candidate); });
60163
- if (!(assignableType.flags & 131072)) {
60164
- return assignableType;
60165
- }
60174
+ if (type.flags & 3) {
60175
+ return candidate;
60166
60176
  }
60167
- return isTypeSubtypeOf(candidate, type) ? candidate :
60168
- isTypeAssignableTo(type, candidate) ? type :
60169
- isTypeAssignableTo(candidate, type) ? candidate :
60170
- getIntersectionType([type, candidate]);
60177
+ var keyPropertyName = type.flags & 1048576 ? getKeyPropertyName(type) : undefined;
60178
+ var narrowedType = mapType(candidate, function (c) {
60179
+ var discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName);
60180
+ var matching = discriminant && getConstituentTypeForKeyType(type, discriminant);
60181
+ var directlyRelated = mapType(matching || type, function (t) { return isRelated(t, c) ? t : isRelated(c, t) ? c : neverType; });
60182
+ return directlyRelated.flags & 131072 ?
60183
+ mapType(type, function (t) { return maybeTypeOfKind(t, 465829888) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType; }) :
60184
+ directlyRelated;
60185
+ });
60186
+ return !(narrowedType.flags & 131072) ? narrowedType :
60187
+ isTypeSubtypeOf(candidate, type) ? candidate :
60188
+ isTypeAssignableTo(type, candidate) ? type :
60189
+ isTypeAssignableTo(candidate, type) ? candidate :
60190
+ getIntersectionType([type, candidate]);
60171
60191
  }
60172
60192
  function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
60173
60193
  if (hasMatchingArgument(callExpression, reference)) {
@@ -64219,7 +64239,7 @@ var ts;
64219
64239
  var isJsxOpeningOrSelfClosingElement = ts.isJsxOpeningLikeElement(node);
64220
64240
  var reportErrors = !candidatesOutArray;
64221
64241
  var typeArguments;
64222
- if (!isDecorator) {
64242
+ if (!isDecorator && !ts.isSuperCall(node)) {
64223
64243
  typeArguments = node.typeArguments;
64224
64244
  if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 106) {
64225
64245
  ts.forEach(typeArguments, checkSourceElement);
@@ -66327,7 +66347,7 @@ var ts;
66327
66347
  error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator));
66328
66348
  }
66329
66349
  if (node.operator === 39) {
66330
- if (maybeTypeOfKind(operandType, 2112)) {
66350
+ if (maybeTypeOfKindConsideringBaseConstraint(operandType, 2112)) {
66331
66351
  error(node.operand, ts.Diagnostics.Operator_0_cannot_be_applied_to_type_1, ts.tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType)));
66332
66352
  }
66333
66353
  return numberType;
@@ -66717,8 +66737,12 @@ var ts;
66717
66737
  var operator = operatorToken.kind;
66718
66738
  if (operator === 55 || operator === 56 || operator === 60) {
66719
66739
  if (operator === 55) {
66720
- var parent = ts.walkUpParenthesizedExpressions(node.parent);
66721
- checkTestingKnownTruthyCallableOrAwaitableType(node.left, leftType, ts.isIfStatement(parent) ? parent.thenStatement : undefined);
66740
+ var parent = node.parent;
66741
+ while (parent.kind === 212
66742
+ || ts.isBinaryExpression(parent) && (parent.operatorToken.kind === 55 || parent.operatorToken.kind === 56)) {
66743
+ parent = parent.parent;
66744
+ }
66745
+ checkTestingKnownTruthyCallableOrAwaitableType(node.left, ts.isIfStatement(parent) ? parent.thenStatement : undefined);
66722
66746
  }
66723
66747
  checkTruthinessOfType(leftType, node.left);
66724
66748
  }
@@ -67191,8 +67215,8 @@ var ts;
67191
67215
  }
67192
67216
  }
67193
67217
  function checkConditionalExpression(node, checkMode) {
67194
- var type = checkTruthinessExpression(node.condition);
67195
- checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue);
67218
+ checkTruthinessExpression(node.condition);
67219
+ checkTestingKnownTruthyCallableOrAwaitableType(node.condition, node.whenTrue);
67196
67220
  var type1 = checkExpression(node.whenTrue, checkMode);
67197
67221
  var type2 = checkExpression(node.whenFalse, checkMode);
67198
67222
  return getUnionType([type1, type2], 2);
@@ -70034,19 +70058,17 @@ var ts;
70034
70058
  }
70035
70059
  function checkIfStatement(node) {
70036
70060
  checkGrammarStatementInAmbientContext(node);
70037
- var type = checkTruthinessExpression(node.expression);
70038
- checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement);
70061
+ checkTruthinessExpression(node.expression);
70062
+ checkTestingKnownTruthyCallableOrAwaitableType(node.expression, node.thenStatement);
70039
70063
  checkSourceElement(node.thenStatement);
70040
70064
  if (node.thenStatement.kind === 236) {
70041
70065
  error(node.thenStatement, ts.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement);
70042
70066
  }
70043
70067
  checkSourceElement(node.elseStatement);
70044
70068
  }
70045
- function checkTestingKnownTruthyCallableOrAwaitableType(condExpr, condType, body) {
70069
+ function checkTestingKnownTruthyCallableOrAwaitableType(condExpr, body) {
70046
70070
  if (!strictNullChecks)
70047
70071
  return;
70048
- if (!(getTypeFacts(condType) & 4194304))
70049
- return;
70050
70072
  helper(condExpr, body);
70051
70073
  while (ts.isBinaryExpression(condExpr) && condExpr.operatorToken.kind === 56) {
70052
70074
  condExpr = condExpr.left;
@@ -70059,7 +70081,7 @@ var ts;
70059
70081
  : condExpr;
70060
70082
  if (ts.isModuleExportsAccessExpression(location))
70061
70083
  return;
70062
- var type = location === condExpr ? condType : checkTruthinessExpression(location);
70084
+ var type = checkTruthinessExpression(location);
70063
70085
  var isPropertyExpressionCast = ts.isPropertyAccessExpression(location) && isTypeAssertion(location.expression);
70064
70086
  if (!(getTypeFacts(type) & 4194304) || isPropertyExpressionCast)
70065
70087
  return;
@@ -76282,13 +76304,13 @@ var ts;
76282
76304
  return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));
76283
76305
  case 200:
76284
76306
  ts.Debug.type(node);
76285
- return factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isNode), nodeVisitor(node.qualifier, visitor, ts.isEntityName), visitNodes(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
76307
+ return factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.assertions, visitor, ts.isNode), nodeVisitor(node.qualifier, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);
76286
76308
  case 295:
76287
76309
  ts.Debug.type(node);
76288
76310
  return factory.updateImportTypeAssertionContainer(node, nodeVisitor(node.assertClause, visitor, ts.isNode), node.multiLine);
76289
76311
  case 197:
76290
76312
  ts.Debug.type(node);
76291
- return factory.updateNamedTupleMember(node, visitNode(node.dotDotDotToken, visitor, ts.isDotDotDotToken), visitNode(node.name, visitor, ts.isIdentifier), visitNode(node.questionToken, visitor, ts.isQuestionToken), visitNode(node.type, visitor, ts.isTypeNode));
76313
+ return factory.updateNamedTupleMember(node, nodeVisitor(node.dotDotDotToken, visitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.questionToken, visitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode));
76292
76314
  case 191:
76293
76315
  ts.Debug.type(node);
76294
76316
  return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));
@@ -76351,7 +76373,7 @@ var ts;
76351
76373
  return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));
76352
76374
  case 210:
76353
76375
  ts.Debug.type(node);
76354
- return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), visitNodes(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
76376
+ return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));
76355
76377
  case 211:
76356
76378
  ts.Debug.type(node);
76357
76379
  return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));
@@ -78622,7 +78644,8 @@ var ts;
78622
78644
  else {
78623
78645
  statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, prologueStatementCount), true), parameterPropertyAssignments, true), statements.slice(prologueStatementCount), true);
78624
78646
  }
78625
- ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, superStatementIndex + 1 + prologueStatementCount));
78647
+ var start = superStatementIndex >= 0 ? superStatementIndex + 1 : prologueStatementCount;
78648
+ ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, start));
78626
78649
  statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());
78627
78650
  var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), true);
78628
78651
  ts.setTextRange(block, body);