@typescript-deploys/pr-build 5.1.0-pr-53549-16 → 5.1.0-pr-53607-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/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.1";
21
- var version = `${versionMajorMinor}.0-insiders.20230328`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230331`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -4076,7 +4076,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4076
4076
  queue.pollScheduled = false;
4077
4077
  return queue;
4078
4078
  }
4079
- function pollPollingIntervalQueue(queue) {
4079
+ function pollPollingIntervalQueue(_timeoutType, queue) {
4080
4080
  queue.pollIndex = pollQueue(queue, queue.pollingInterval, queue.pollIndex, pollingChunkSize[queue.pollingInterval]);
4081
4081
  if (queue.length) {
4082
4082
  scheduleNextPoll(queue.pollingInterval);
@@ -4085,7 +4085,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4085
4085
  queue.pollScheduled = false;
4086
4086
  }
4087
4087
  }
4088
- function pollLowPollingIntervalQueue(queue) {
4088
+ function pollLowPollingIntervalQueue(_timeoutType, queue) {
4089
4089
  pollQueue(
4090
4090
  changedFilesInLastPoll,
4091
4091
  250 /* Low */,
@@ -4093,7 +4093,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4093
4093
  0,
4094
4094
  changedFilesInLastPoll.length
4095
4095
  );
4096
- pollPollingIntervalQueue(queue);
4096
+ pollPollingIntervalQueue(_timeoutType, queue);
4097
4097
  if (!queue.pollScheduled && changedFilesInLastPoll.length) {
4098
4098
  scheduleNextPoll(250 /* Low */);
4099
4099
  }
@@ -4150,7 +4150,7 @@ function createDynamicPriorityPollingWatchFile(host) {
4150
4150
  }
4151
4151
  }
4152
4152
  function scheduleNextPoll(pollingInterval) {
4153
- pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));
4153
+ pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval));
4154
4154
  }
4155
4155
  }
4156
4156
  function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
@@ -4229,7 +4229,7 @@ function createFixedChunkSizePollingWatchFile(host) {
4229
4229
  function scheduleNextPoll() {
4230
4230
  if (!watchedFiles.length || pollScheduled)
4231
4231
  return;
4232
- pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */);
4232
+ pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue");
4233
4233
  }
4234
4234
  }
4235
4235
  function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {
@@ -4397,7 +4397,7 @@ function createDirectoryWatcherSupportingRecursive({
4397
4397
  clearTimeout2(timerToUpdateChildWatches);
4398
4398
  timerToUpdateChildWatches = void 0;
4399
4399
  }
4400
- timerToUpdateChildWatches = setTimeout2(onTimerToUpdateChildWatches, 1e3);
4400
+ timerToUpdateChildWatches = setTimeout2(onTimerToUpdateChildWatches, 1e3, "timerToUpdateChildWatches");
4401
4401
  }
4402
4402
  function onTimerToUpdateChildWatches() {
4403
4403
  timerToUpdateChildWatches = void 0;
@@ -6193,7 +6193,7 @@ var Diagnostics = {
6193
6193
  Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first: diag(2352, 1 /* Error */, "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352", "Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),
6194
6194
  Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: diag(2353, 1 /* Error */, "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353", "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),
6195
6195
  This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: diag(2354, 1 /* Error */, "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354", "This syntax requires an imported helper but module '{0}' cannot be found."),
6196
- A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: diag(2355, 1 /* Error */, "A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355", "A function whose declared type is neither 'void' nor 'any' must return a value."),
6196
+ A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2355, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
6197
6197
  An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2356, 1 /* Error */, "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356", "An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),
6198
6198
  The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, 1 /* Error */, "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357", "The operand of an increment or decrement operator must be a variable or a property access."),
6199
6199
  The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, 1 /* Error */, "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358", "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),
@@ -6216,7 +6216,6 @@ var Diagnostics = {
6216
6216
  Constructors_for_derived_classes_must_contain_a_super_call: diag(2377, 1 /* Error */, "Constructors_for_derived_classes_must_contain_a_super_call_2377", "Constructors for derived classes must contain a 'super' call."),
6217
6217
  A_get_accessor_must_return_a_value: diag(2378, 1 /* Error */, "A_get_accessor_must_return_a_value_2378", "A 'get' accessor must return a value."),
6218
6218
  Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties: diag(2379, 1 /* Error */, "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379", "Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),
6219
- The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type: diag(2380, 1 /* Error */, "The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380", "The return type of a 'get' accessor must be assignable to its 'set' accessor type"),
6220
6219
  Overload_signatures_must_all_be_exported_or_non_exported: diag(2383, 1 /* Error */, "Overload_signatures_must_all_be_exported_or_non_exported_2383", "Overload signatures must all be exported or non-exported."),
6221
6220
  Overload_signatures_must_all_be_ambient_or_non_ambient: diag(2384, 1 /* Error */, "Overload_signatures_must_all_be_ambient_or_non_ambient_2384", "Overload signatures must all be ambient or non-ambient."),
6222
6221
  Overload_signatures_must_all_be_public_private_or_protected: diag(2385, 1 /* Error */, "Overload_signatures_must_all_be_public_private_or_protected_2385", "Overload signatures must all be public, private or protected."),
@@ -6634,7 +6633,6 @@ var Diagnostics = {
6634
6633
  Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2844, 1 /* Error */, "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844", "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),
6635
6634
  This_condition_will_always_return_0: diag(2845, 1 /* Error */, "This_condition_will_always_return_0_2845", "This condition will always return '{0}'."),
6636
6635
  A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead: diag(2846, 1 /* Error */, "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846", "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),
6637
- A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value: diag(2847, 1 /* Error */, "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2847", "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),
6638
6636
  The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression: diag(2848, 1 /* Error */, "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848", "The right-hand side of an 'instanceof' expression must not be an instantiation expression."),
6639
6637
  Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1: diag(2849, 1 /* Error */, "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849", "Target signature provides too few arguments. Expected {0} or more, but got {1}."),
6640
6638
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
@@ -7740,7 +7738,8 @@ var Diagnostics = {
7740
7738
  _0_is_possibly_undefined: diag(18048, 1 /* Error */, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."),
7741
7739
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7742
7740
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7743
- Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string.")
7741
+ Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
7742
+ Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'")
7744
7743
  };
7745
7744
 
7746
7745
  // src/compiler/scanner.ts
@@ -34131,7 +34130,8 @@ var commandOptionsWithoutBuild = [
34131
34130
  affectsBuildInfo: true,
34132
34131
  category: Diagnostics.Modules,
34133
34132
  description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
34134
- defaultValueDescription: false
34133
+ defaultValueDescription: false,
34134
+ transpileOptionValue: void 0
34135
34135
  },
34136
34136
  {
34137
34137
  name: "resolvePackageJsonExports",
@@ -43383,8 +43383,6 @@ function createTypeChecker(host) {
43383
43383
  var resolutionTargets = [];
43384
43384
  var resolutionResults = [];
43385
43385
  var resolutionPropertyNames = [];
43386
- var resolutionStart = 0;
43387
- var inVarianceComputation = false;
43388
43386
  var suggestionCount = 0;
43389
43387
  var maximumSuggestionCount = 10;
43390
43388
  var mergedSymbols = [];
@@ -50585,7 +50583,7 @@ function createTypeChecker(host) {
50585
50583
  return true;
50586
50584
  }
50587
50585
  function findResolutionCycleStartIndex(target, propertyName) {
50588
- for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
50586
+ for (let i = resolutionTargets.length - 1; i >= 0; i--) {
50589
50587
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
50590
50588
  return -1;
50591
50589
  }
@@ -61621,11 +61619,6 @@ function createTypeChecker(host) {
61621
61619
  const links = getSymbolLinks(symbol);
61622
61620
  if (!links.variances) {
61623
61621
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
61624
- const oldVarianceComputation = inVarianceComputation;
61625
- if (!inVarianceComputation) {
61626
- inVarianceComputation = true;
61627
- resolutionStart = resolutionTargets.length;
61628
- }
61629
61622
  links.variances = emptyArray;
61630
61623
  const variances = [];
61631
61624
  for (const tp of typeParameters) {
@@ -61654,10 +61647,6 @@ function createTypeChecker(host) {
61654
61647
  }
61655
61648
  variances.push(variance);
61656
61649
  }
61657
- if (!oldVarianceComputation) {
61658
- inVarianceComputation = false;
61659
- resolutionStart = 0;
61660
- }
61661
61650
  links.variances = variances;
61662
61651
  (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
61663
61652
  }
@@ -72023,7 +72012,16 @@ function createTypeChecker(host) {
72023
72012
  return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, neverType) : neverType;
72024
72013
  }
72025
72014
  if (types.length === 0) {
72026
- return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, voidType) : voidType;
72015
+ const contextualReturnType = getContextualReturnType(
72016
+ func,
72017
+ /*contextFlags*/
72018
+ void 0
72019
+ );
72020
+ const returnType2 = contextualReturnType && (unwrapReturnType(contextualReturnType, functionFlags) || voidType).flags & 32768 /* Undefined */ ? undefinedType : voidType;
72021
+ return functionFlags & 2 /* Async */ ? createPromiseReturnType(func, returnType2) : (
72022
+ // Async function
72023
+ returnType2
72024
+ );
72027
72025
  }
72028
72026
  returnType = getUnionType(types, 2 /* Subtype */);
72029
72027
  }
@@ -72245,7 +72243,7 @@ function createTypeChecker(host) {
72245
72243
  function checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics() {
72246
72244
  const functionFlags = getFunctionFlags(func);
72247
72245
  const type = returnType && unwrapReturnType(returnType, functionFlags);
72248
- if (type && maybeTypeOfKind(type, 32768 /* Undefined */ | 16384 /* Void */ | 1 /* Any */ | 2 /* Unknown */)) {
72246
+ if (type && (maybeTypeOfKind(type, 16384 /* Void */) || type.flags & (1 /* Any */ | 32768 /* Undefined */))) {
72249
72247
  return;
72250
72248
  }
72251
72249
  if (func.kind === 171 /* MethodSignature */ || nodeIsMissing(func.body) || func.body.kind !== 239 /* Block */ || !functionHasImplicitReturn(func)) {
@@ -72256,12 +72254,8 @@ function createTypeChecker(host) {
72256
72254
  if (type && type.flags & 131072 /* Never */) {
72257
72255
  error(errorNode, Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);
72258
72256
  } else if (type && !hasExplicitReturn) {
72259
- if (strictNullChecks) {
72260
- error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
72261
- } else {
72262
- error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);
72263
- }
72264
- } else if (type && strictNullChecks) {
72257
+ error(errorNode, Diagnostics.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);
72258
+ } else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) {
72265
72259
  error(errorNode, Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);
72266
72260
  } else if (compilerOptions.noImplicitReturns) {
72267
72261
  if (!type) {
@@ -72269,7 +72263,7 @@ function createTypeChecker(host) {
72269
72263
  return;
72270
72264
  }
72271
72265
  const inferredReturnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func));
72272
- if (isUnwrappedReturnTypeVoidOrAny(func, inferredReturnType)) {
72266
+ if (isUnwrappedReturnTypeUndefinedVoidAnyOrUnknown(func, inferredReturnType)) {
72273
72267
  return;
72274
72268
  }
72275
72269
  }
@@ -74652,11 +74646,6 @@ function createTypeChecker(host) {
74652
74646
  error(getter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);
74653
74647
  error(setter.name, Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);
74654
74648
  }
74655
- const getterType = getAnnotatedAccessorType(getter);
74656
- const setterType = getAnnotatedAccessorType(setter);
74657
- if (getterType && setterType) {
74658
- checkTypeAssignableTo(getterType, setterType, getter, Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type);
74659
- }
74660
74649
  }
74661
74650
  }
74662
74651
  const returnType = getTypeOfAccessors(getSymbolOfDeclaration(node));
@@ -77427,9 +77416,9 @@ function createTypeChecker(host) {
77427
77416
  }
77428
77417
  return isAsync ? getAwaitedTypeNoAlias(returnType) || errorType : returnType;
77429
77418
  }
77430
- function isUnwrappedReturnTypeVoidOrAny(func, returnType) {
77419
+ function isUnwrappedReturnTypeUndefinedVoidAnyOrUnknown(func, returnType) {
77431
77420
  const unwrappedReturnType = unwrapReturnType(returnType, getFunctionFlags(func));
77432
- return !!unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, 16384 /* Void */ | 3 /* AnyOrUnknown */);
77421
+ return !!unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, 32768 /* Undefined */ | 16384 /* Void */ | 3 /* AnyOrUnknown */);
77433
77422
  }
77434
77423
  function checkReturnStatement(node) {
77435
77424
  var _a2;
@@ -77471,7 +77460,7 @@ function createTypeChecker(host) {
77471
77460
  checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
77472
77461
  }
77473
77462
  }
77474
- } else if (container.kind !== 174 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeVoidOrAny(container, returnType)) {
77463
+ } else if (container.kind !== 174 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidAnyOrUnknown(container, returnType)) {
77475
77464
  error(node, Diagnostics.Not_all_code_paths_return_a_value);
77476
77465
  }
77477
77466
  }
@@ -78217,8 +78206,9 @@ function createTypeChecker(host) {
78217
78206
  return filter(symbol.declarations, (d) => d.kind === 261 /* ClassDeclaration */ || d.kind === 262 /* InterfaceDeclaration */);
78218
78207
  }
78219
78208
  function checkKindsOfPropertyMemberOverrides(type, baseType) {
78220
- var _a2, _b, _c, _d;
78209
+ var _a2, _b, _c, _d, _e, _f, _g, _h;
78221
78210
  const baseProperties = getPropertiesOfType(baseType);
78211
+ let inheritedAbstractMemberNotImplementedError;
78222
78212
  basePropertyCheck:
78223
78213
  for (const baseProperty of baseProperties) {
78224
78214
  const base = getTargetSymbol(baseProperty);
@@ -78244,20 +78234,34 @@ function createTypeChecker(host) {
78244
78234
  continue basePropertyCheck;
78245
78235
  }
78246
78236
  }
78247
- if (derivedClassDecl.kind === 229 /* ClassExpression */) {
78248
- error(
78237
+ if (!inheritedAbstractMemberNotImplementedError) {
78238
+ inheritedAbstractMemberNotImplementedError = error(
78249
78239
  derivedClassDecl,
78250
- Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
78251
- symbolToString(baseProperty),
78240
+ Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,
78241
+ typeToString(type),
78252
78242
  typeToString(baseType)
78253
78243
  );
78244
+ }
78245
+ if (derivedClassDecl.kind === 229 /* ClassExpression */) {
78246
+ addRelatedInfo(
78247
+ inheritedAbstractMemberNotImplementedError,
78248
+ createDiagnosticForNode(
78249
+ (_b = (_a2 = baseProperty.valueDeclaration) != null ? _a2 : baseProperty.declarations && first(baseProperty.declarations)) != null ? _b : derivedClassDecl,
78250
+ Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
78251
+ symbolToString(baseProperty),
78252
+ typeToString(baseType)
78253
+ )
78254
+ );
78254
78255
  } else {
78255
- error(
78256
- derivedClassDecl,
78257
- Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
78258
- typeToString(type),
78259
- symbolToString(baseProperty),
78260
- typeToString(baseType)
78256
+ addRelatedInfo(
78257
+ inheritedAbstractMemberNotImplementedError,
78258
+ createDiagnosticForNode(
78259
+ (_d = (_c = baseProperty.valueDeclaration) != null ? _c : baseProperty.declarations && first(baseProperty.declarations)) != null ? _d : derivedClassDecl,
78260
+ Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
78261
+ typeToString(type),
78262
+ symbolToString(baseProperty),
78263
+ typeToString(baseType)
78264
+ )
78261
78265
  );
78262
78266
  }
78263
78267
  }
@@ -78270,7 +78274,7 @@ function createTypeChecker(host) {
78270
78274
  const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */;
78271
78275
  const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */;
78272
78276
  if (basePropertyFlags && derivedPropertyFlags) {
78273
- if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_a2 = base.declarations) == null ? void 0 : _a2.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_b = base.declarations) == null ? void 0 : _b.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
78277
+ if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_e = base.declarations) == null ? void 0 : _e.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_f = base.declarations) == null ? void 0 : _f.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
78274
78278
  continue;
78275
78279
  }
78276
78280
  const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */;
@@ -78279,8 +78283,8 @@ function createTypeChecker(host) {
78279
78283
  const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;
78280
78284
  error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));
78281
78285
  } else if (useDefineForClassFields) {
78282
- const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 170 /* PropertyDeclaration */ && !d.initializer);
78283
- if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 16777216 /* Ambient */)))) {
78286
+ const uninitialized = (_g = derived.declarations) == null ? void 0 : _g.find((d) => d.kind === 170 /* PropertyDeclaration */ && !d.initializer);
78287
+ if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 256 /* Abstract */) && !(derivedDeclarationFlags & 256 /* Abstract */) && !((_h = derived.declarations) == null ? void 0 : _h.some((d) => !!(d.flags & 16777216 /* Ambient */)))) {
78284
78288
  const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));
78285
78289
  const propName = uninitialized.name;
78286
78290
  if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {
@@ -88391,16 +88395,17 @@ function transformClassFields(context) {
88391
88395
  if (isAssignmentExpression(node)) {
88392
88396
  if (isNamedEvaluation(node, isAnonymousClassNeedingAssignedName)) {
88393
88397
  const assignedName = getAssignedNameOfIdentifier(node.left, node.right);
88394
- const left = visitNode(node.left, visitor, isExpression);
88398
+ const left2 = visitNode(node.left, visitor, isExpression);
88395
88399
  const right = visitNode(node.right, (node2) => namedEvaluationVisitor(node2, assignedName), isExpression);
88396
- return factory2.updateBinaryExpression(node, left, node.operatorToken, right);
88400
+ return factory2.updateBinaryExpression(node, left2, node.operatorToken, right);
88397
88401
  }
88398
- if (isPrivateIdentifierPropertyAccessExpression(node.left)) {
88399
- const info = accessPrivateIdentifier2(node.left.name);
88402
+ const left = skipOuterExpressions(node.left, 8 /* PartiallyEmittedExpressions */ | 1 /* Parentheses */);
88403
+ if (isPrivateIdentifierPropertyAccessExpression(left)) {
88404
+ const info = accessPrivateIdentifier2(left.name);
88400
88405
  if (info) {
88401
88406
  return setTextRange(
88402
88407
  setOriginalNode(
88403
- createPrivateIdentifierAssignment(info, node.left.expression, node.right, node.operatorToken.kind),
88408
+ createPrivateIdentifierAssignment(info, left.expression, node.right, node.operatorToken.kind),
88404
88409
  node
88405
88410
  ),
88406
88411
  node
@@ -119918,7 +119923,7 @@ function createWatchProgram(host) {
119918
119923
  }
119919
119924
  const pending = clearInvalidateResolutionsOfFailedLookupLocations();
119920
119925
  writeLog(`Scheduling invalidateFailedLookup${pending ? ", Cancelled earlier one" : ""}`);
119921
- timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);
119926
+ timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250, "timerToInvalidateFailedLookupResolutions");
119922
119927
  }
119923
119928
  function invalidateResolutionsOfFailedLookup() {
119924
119929
  timerToInvalidateFailedLookupResolutions = void 0;
@@ -119934,7 +119939,7 @@ function createWatchProgram(host) {
119934
119939
  host.clearTimeout(timerToUpdateProgram);
119935
119940
  }
119936
119941
  writeLog("Scheduling update");
119937
- timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250);
119942
+ timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250, "timerToUpdateProgram");
119938
119943
  }
119939
119944
  function scheduleProgramReload() {
119940
119945
  Debug.assert(!!configFileName);
@@ -121812,9 +121817,9 @@ function scheduleBuildInvalidatedProject(state, time, changeDetected) {
121812
121817
  if (state.timerToBuildInvalidatedProject) {
121813
121818
  hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject);
121814
121819
  }
121815
- state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, time, state, changeDetected);
121820
+ state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, time, "timerToBuildInvalidatedProject", state, changeDetected);
121816
121821
  }
121817
- function buildNextInvalidatedProject(state, changeDetected) {
121822
+ function buildNextInvalidatedProject(_timeoutType, state, changeDetected) {
121818
121823
  mark("SolutionBuilder::beforeBuild");
121819
121824
  const buildOrder = buildNextInvalidatedProjectWorker(state, changeDetected);
121820
121825
  mark("SolutionBuilder::afterBuild");