typescript 5.0.1-rc → 5.0.2

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
@@ -23,7 +23,7 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.1-rc`;
26
+ var version = "5.0.2";
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -3854,6 +3854,7 @@ function diagnosticCategoryName(d, lowerCase = true) {
3854
3854
  }
3855
3855
  var ModuleResolutionKind = /* @__PURE__ */ ((ModuleResolutionKind2) => {
3856
3856
  ModuleResolutionKind2[ModuleResolutionKind2["Classic"] = 1] = "Classic";
3857
+ ModuleResolutionKind2[ModuleResolutionKind2["NodeJs"] = 2] = "NodeJs";
3857
3858
  ModuleResolutionKind2[ModuleResolutionKind2["Node10"] = 2] = "Node10";
3858
3859
  ModuleResolutionKind2[ModuleResolutionKind2["Node16"] = 3] = "Node16";
3859
3860
  ModuleResolutionKind2[ModuleResolutionKind2["NodeNext"] = 99] = "NodeNext";
@@ -4914,20 +4915,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
4914
4915
  (path2) => sys2.directoryExists(path2)
4915
4916
  );
4916
4917
  }
4917
- function getNodeMajorVersion() {
4918
- if (typeof process === "undefined") {
4919
- return void 0;
4920
- }
4921
- const version2 = process.version;
4922
- if (!version2) {
4923
- return void 0;
4924
- }
4925
- const dot = version2.indexOf(".");
4926
- if (dot === -1) {
4927
- return void 0;
4928
- }
4929
- return parseInt(version2.substring(1, dot));
4930
- }
4931
4918
  var sys = (() => {
4932
4919
  const byteOrderMarkIndicator = "\uFEFF";
4933
4920
  function getNodeSystem() {
@@ -4944,14 +4931,12 @@ var sys = (() => {
4944
4931
  let activeSession;
4945
4932
  let profilePath = "./profile.cpuprofile";
4946
4933
  const Buffer2 = require("buffer").Buffer;
4947
- const nodeVersion = getNodeMajorVersion();
4948
- const isNode4OrLater = nodeVersion >= 4;
4949
4934
  const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4950
4935
  const platform = _os.platform();
4951
4936
  const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4952
4937
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4953
4938
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4954
- const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
4939
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
4955
4940
  const getCurrentDirectory = memoize(() => process.cwd());
4956
4941
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
4957
4942
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -6894,12 +6879,14 @@ var Diagnostics = {
6894
6879
  Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set: diag(5096, 1 /* Error */, "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096", "Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),
6895
6880
  An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled: diag(5097, 1 /* Error */, "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097", "An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),
6896
6881
  Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler: diag(5098, 1 /* Error */, "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098", "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),
6897
- Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1 /* Error */, "Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecat_5101", `Flag '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),
6898
- Flag_0_is_deprecated_Please_remove_it_from_your_configuration: diag(5102, 1 /* Error */, "Flag_0_is_deprecated_Please_remove_it_from_your_configuration_5102", "Flag '{0}' is deprecated. Please remove it from your configuration."),
6882
+ Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error: diag(5101, 1 /* Error */, "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101", `Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),
6883
+ Option_0_has_been_removed_Please_remove_it_from_your_configuration: diag(5102, 1 /* Error */, "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102", "Option '{0}' has been removed. Please remove it from your configuration."),
6899
6884
  Invalid_value_for_ignoreDeprecations: diag(5103, 1 /* Error */, "Invalid_value_for_ignoreDeprecations_5103", "Invalid value for '--ignoreDeprecations'."),
6900
6885
  Option_0_is_redundant_and_cannot_be_specified_with_option_1: diag(5104, 1 /* Error */, "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104", "Option '{0}' is redundant and cannot be specified with option '{1}'."),
6901
6886
  Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System: diag(5105, 1 /* Error */, "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105", "Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),
6902
6887
  Use_0_instead: diag(5106, 3 /* Message */, "Use_0_instead_5106", "Use '{0}' instead."),
6888
+ Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error: diag(5107, 1 /* Error */, "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107", `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),
6889
+ Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: diag(5108, 1 /* Error */, "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108", "Option '{0}={1}' has been removed. Please remove it from your configuration."),
6903
6890
  Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6e3, 3 /* Message */, "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000", "Generates a sourcemap for each corresponding '.d.ts' file."),
6904
6891
  Concatenate_and_emit_output_to_single_file: diag(6001, 3 /* Message */, "Concatenate_and_emit_output_to_single_file_6001", "Concatenate and emit output to single file."),
6905
6892
  Generates_corresponding_d_ts_file: diag(6002, 3 /* Message */, "Generates_corresponding_d_ts_file_6002", "Generates corresponding '.d.ts' file."),
@@ -58167,6 +58154,9 @@ function createTypeChecker(host) {
58167
58154
  function isTypeSubtypeOf(source, target) {
58168
58155
  return isTypeRelatedTo(source, target, subtypeRelation);
58169
58156
  }
58157
+ function isTypeStrictSubtypeOf(source, target) {
58158
+ return isTypeRelatedTo(source, target, strictSubtypeRelation);
58159
+ }
58170
58160
  function isTypeAssignableTo(source, target) {
58171
58161
  return isTypeRelatedTo(source, target, assignableRelation);
58172
58162
  }
@@ -60075,7 +60065,7 @@ function createTypeChecker(host) {
60075
60065
  0 /* None */
60076
60066
  );
60077
60067
  }
60078
- } else if (result2 && isNonGenericObjectType(target2) && !isArrayOrTupleType(target2) && source2.flags & 2097152 /* Intersection */ && getApparentType(source2).flags & 3670016 /* StructuredType */ && !some(source2.types, (t) => !!(getObjectFlags(t) & 262144 /* NonInferrableType */))) {
60068
+ } else if (result2 && isNonGenericObjectType(target2) && !isArrayOrTupleType(target2) && source2.flags & 2097152 /* Intersection */ && getApparentType(source2).flags & 3670016 /* StructuredType */ && !some(source2.types, (t) => t === target2 || !!(getObjectFlags(t) & 262144 /* NonInferrableType */))) {
60079
60069
  result2 &= propertiesRelatedTo(
60080
60070
  source2,
60081
60071
  target2,
@@ -65262,7 +65252,7 @@ function createTypeChecker(host) {
65262
65252
  const narrowedType = mapType(candidate, (c) => {
65263
65253
  const discriminant = keyPropertyName && getTypeOfPropertyOfType(c, keyPropertyName);
65264
65254
  const matching = discriminant && getConstituentTypeForKeyType(type, discriminant);
65265
- const directlyRelated = mapType(matching || type, checkDerived ? (t) => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : (t) => isTypeSubtypeOf(c, t) && !isTypeIdenticalTo(c, t) ? c : isTypeSubtypeOf(t, c) ? t : neverType);
65255
+ const directlyRelated = mapType(matching || type, checkDerived ? (t) => isTypeDerivedFrom(t, c) ? t : isTypeDerivedFrom(c, t) ? c : neverType : (t) => isTypeStrictSubtypeOf(t, c) ? t : isTypeStrictSubtypeOf(c, t) ? c : isTypeSubtypeOf(t, c) ? t : isTypeSubtypeOf(c, t) ? c : neverType);
65266
65256
  return directlyRelated.flags & 131072 /* Never */ ? mapType(type, (t) => maybeTypeOfKind(t, 465829888 /* Instantiable */) && isRelated(c, getBaseConstraintOfType(t) || unknownType) ? getIntersectionType([t, c]) : neverType) : directlyRelated;
65267
65257
  });
65268
65258
  return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
@@ -91039,8 +91029,11 @@ function transformESDecorators(context) {
91039
91029
  false,
91040
91030
  visitor
91041
91031
  );
91032
+ const superStatementIndex = findSuperStatementIndex(node.body.statements, nonPrologueStart);
91033
+ const indexOfFirstStatementAfterSuper = superStatementIndex >= 0 ? superStatementIndex + 1 : void 0;
91034
+ addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart, indexOfFirstStatementAfterSuper ? indexOfFirstStatementAfterSuper - nonPrologueStart : void 0));
91042
91035
  addRange(statements, initializerStatements);
91043
- addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, nonPrologueStart));
91036
+ addRange(statements, visitNodes2(node.body.statements, visitor, isStatement, indexOfFirstStatementAfterSuper));
91044
91037
  body = factory2.createBlock(
91045
91038
  statements,
91046
91039
  /*multiLine*/
@@ -112911,6 +112904,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
112911
112904
  const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;
112912
112905
  const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2 } = createProgramOptions;
112913
112906
  let { oldProgram } = createProgramOptions;
112907
+ const reportInvalidIgnoreDeprecations = memoize(() => createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations));
112914
112908
  let processingDefaultLibFiles;
112915
112909
  let processingOtherFiles;
112916
112910
  let files;
@@ -115337,127 +115331,131 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
115337
115331
  }
115338
115332
  }
115339
115333
  }
115340
- function getVersionForDeprecationDiagnostics(reportInvalidIgnoreDeprecations) {
115341
- const version2 = typeScriptVersion2 || versionMajorMinor;
115334
+ function getIgnoreDeprecationsVersion() {
115342
115335
  const ignoreDeprecations = options.ignoreDeprecations;
115343
115336
  if (ignoreDeprecations) {
115344
- if (ignoreDeprecations === "5.0" /* v5_0 */ && (version2 === "5.0" /* v5_0 */ || version2 === "5.5" /* v5_5 */)) {
115345
- return;
115346
- } else if (reportInvalidIgnoreDeprecations) {
115347
- createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations);
115348
- }
115337
+ if (ignoreDeprecations === "5.0") {
115338
+ return new Version(ignoreDeprecations);
115339
+ }
115340
+ reportInvalidIgnoreDeprecations();
115341
+ }
115342
+ return Version.zero;
115343
+ }
115344
+ function checkDeprecations(deprecatedIn, removedIn, createDiagnostic, fn) {
115345
+ const deprecatedInVersion = new Version(deprecatedIn);
115346
+ const removedInVersion = new Version(removedIn);
115347
+ const typescriptVersion = new Version(typeScriptVersion2 || versionMajorMinor);
115348
+ const ignoreDeprecationsVersion = getIgnoreDeprecationsVersion();
115349
+ const mustBeRemoved = !(removedInVersion.compareTo(typescriptVersion) === 1 /* GreaterThan */);
115350
+ const canBeSilenced = !mustBeRemoved && ignoreDeprecationsVersion.compareTo(deprecatedInVersion) === -1 /* LessThan */;
115351
+ if (mustBeRemoved || canBeSilenced) {
115352
+ fn((name, value, useInstead) => {
115353
+ if (mustBeRemoved) {
115354
+ if (value === void 0) {
115355
+ createDiagnostic(name, value, useInstead, Diagnostics.Option_0_has_been_removed_Please_remove_it_from_your_configuration, name);
115356
+ } else {
115357
+ createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration, name, value);
115358
+ }
115359
+ } else {
115360
+ if (value === void 0) {
115361
+ createDiagnostic(name, value, useInstead, Diagnostics.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, name, removedIn, deprecatedIn);
115362
+ } else {
115363
+ createDiagnostic(name, value, useInstead, Diagnostics.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error, name, value, removedIn, deprecatedIn);
115364
+ }
115365
+ }
115366
+ });
115349
115367
  }
115350
- return version2;
115351
115368
  }
115352
115369
  function verifyDeprecatedCompilerOptions() {
115353
- const version2 = getVersionForDeprecationDiagnostics(
115354
- /*reportInvalidIgnoreDeprecations*/
115355
- true
115356
- );
115357
- if (!version2)
115358
- return;
115359
- if (options.target === 0 /* ES3 */) {
115360
- createDeprecatedDiagnosticForOption(version2, "target", "ES3");
115361
- }
115362
- if (options.noImplicitUseStrict) {
115363
- createDeprecatedDiagnosticForOption(version2, "noImplicitUseStrict");
115364
- }
115365
- if (options.keyofStringsOnly) {
115366
- createDeprecatedDiagnosticForOption(version2, "keyofStringsOnly");
115367
- }
115368
- if (options.suppressExcessPropertyErrors) {
115369
- createDeprecatedDiagnosticForOption(version2, "suppressExcessPropertyErrors");
115370
- }
115371
- if (options.suppressImplicitAnyIndexErrors) {
115372
- createDeprecatedDiagnosticForOption(version2, "suppressImplicitAnyIndexErrors");
115373
- }
115374
- if (options.noStrictGenericChecks) {
115375
- createDeprecatedDiagnosticForOption(version2, "noStrictGenericChecks");
115376
- }
115377
- if (options.charset) {
115378
- createDeprecatedDiagnosticForOption(version2, "charset");
115379
- }
115380
- if (options.out) {
115381
- createDeprecatedDiagnosticForOption(version2, "out");
115382
- }
115383
- if (options.importsNotUsedAsValues) {
115384
- createDeprecatedDiagnosticForOption(
115385
- version2,
115386
- "importsNotUsedAsValues",
115387
- /*value*/
115388
- void 0,
115389
- "verbatimModuleSyntax"
115390
- );
115391
- }
115392
- if (options.preserveValueImports) {
115393
- createDeprecatedDiagnosticForOption(
115394
- version2,
115395
- "preserveValueImports",
115396
- /*value*/
115397
- void 0,
115398
- "verbatimModuleSyntax"
115399
- );
115400
- }
115401
- }
115402
- function verifyDeprecatedProjectReference(ref, parentFile, index) {
115403
- if (ref.prepend) {
115404
- const version2 = getVersionForDeprecationDiagnostics(
115405
- /*reportInvalidIgnoreDeprecations*/
115406
- false
115407
- );
115408
- if (version2) {
115409
- createDeprecatedOptionForVersionDiagnostic(
115410
- version2,
115411
- (message, arg0, arg1, arg2) => createDiagnosticForReference(parentFile, index, message, arg0, arg1, arg2),
115412
- "prepend"
115370
+ function createDiagnostic(name, value, useInstead, message, arg0, arg1, arg2, arg3) {
115371
+ if (useInstead) {
115372
+ const details = chainDiagnosticMessages(
115373
+ /*details*/
115374
+ void 0,
115375
+ Diagnostics.Use_0_instead,
115376
+ useInstead
115377
+ );
115378
+ const chain = chainDiagnosticMessages(details, message, arg0, arg1, arg2, arg3);
115379
+ createDiagnosticForOption(
115380
+ /*onKey*/
115381
+ !value,
115382
+ name,
115383
+ /*option2*/
115384
+ void 0,
115385
+ chain
115386
+ );
115387
+ } else {
115388
+ createDiagnosticForOption(
115389
+ /*onKey*/
115390
+ !value,
115391
+ name,
115392
+ /*option2*/
115393
+ void 0,
115394
+ message,
115395
+ arg0,
115396
+ arg1,
115397
+ arg2,
115398
+ arg3
115413
115399
  );
115414
115400
  }
115415
115401
  }
115402
+ checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => {
115403
+ if (options.target === 0 /* ES3 */) {
115404
+ createDeprecatedDiagnostic("target", "ES3");
115405
+ }
115406
+ if (options.noImplicitUseStrict) {
115407
+ createDeprecatedDiagnostic("noImplicitUseStrict");
115408
+ }
115409
+ if (options.keyofStringsOnly) {
115410
+ createDeprecatedDiagnostic("keyofStringsOnly");
115411
+ }
115412
+ if (options.suppressExcessPropertyErrors) {
115413
+ createDeprecatedDiagnostic("suppressExcessPropertyErrors");
115414
+ }
115415
+ if (options.suppressImplicitAnyIndexErrors) {
115416
+ createDeprecatedDiagnostic("suppressImplicitAnyIndexErrors");
115417
+ }
115418
+ if (options.noStrictGenericChecks) {
115419
+ createDeprecatedDiagnostic("noStrictGenericChecks");
115420
+ }
115421
+ if (options.charset) {
115422
+ createDeprecatedDiagnostic("charset");
115423
+ }
115424
+ if (options.out) {
115425
+ createDeprecatedDiagnostic(
115426
+ "out",
115427
+ /*value*/
115428
+ void 0,
115429
+ "outFile"
115430
+ );
115431
+ }
115432
+ if (options.importsNotUsedAsValues) {
115433
+ createDeprecatedDiagnostic(
115434
+ "importsNotUsedAsValues",
115435
+ /*value*/
115436
+ void 0,
115437
+ "verbatimModuleSyntax"
115438
+ );
115439
+ }
115440
+ if (options.preserveValueImports) {
115441
+ createDeprecatedDiagnostic(
115442
+ "preserveValueImports",
115443
+ /*value*/
115444
+ void 0,
115445
+ "verbatimModuleSyntax"
115446
+ );
115447
+ }
115448
+ });
115416
115449
  }
115417
- function createDeprecatedDiagnosticForOption(version2, name, value, useInstead) {
115418
- return createDeprecatedOptionForVersionDiagnostic(
115419
- version2,
115420
- (message, arg0, arg1, arg2) => {
115421
- if (useInstead) {
115422
- const details = chainDiagnosticMessages(
115423
- /*details*/
115424
- void 0,
115425
- Diagnostics.Use_0_instead,
115426
- useInstead
115427
- );
115428
- const chain = chainDiagnosticMessages(details, message, arg0, arg1, arg2);
115429
- createDiagnosticForOption(
115430
- /*onKey*/
115431
- !value,
115432
- name,
115433
- /*option2*/
115434
- void 0,
115435
- chain
115436
- );
115437
- } else {
115438
- createDiagnosticForOption(
115439
- /*onKey*/
115440
- !value,
115441
- name,
115442
- /*option2*/
115443
- void 0,
115444
- message,
115445
- arg0,
115446
- arg1,
115447
- arg2
115448
- );
115449
- }
115450
- },
115451
- name,
115452
- value
115453
- );
115454
- }
115455
- function createDeprecatedOptionForVersionDiagnostic(version2, createDiagnostic, name, value) {
115456
- if (version2 === "6.0" /* v6_0 */) {
115457
- createDiagnostic(Diagnostics.Flag_0_is_deprecated_Please_remove_it_from_your_configuration, value || name);
115458
- } else {
115459
- createDiagnostic(Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error, value || name, "5.5" /* v5_5 */, "5.0" /* v5_0 */);
115450
+ function verifyDeprecatedProjectReference(ref, parentFile, index) {
115451
+ function createDiagnostic(_name, _value, _useInstead, message, arg0, arg1, arg2, arg3) {
115452
+ createDiagnosticForReference(parentFile, index, message, arg0, arg1, arg2, arg3);
115460
115453
  }
115454
+ checkDeprecations("5.0", "5.5", createDiagnostic, (createDeprecatedDiagnostic) => {
115455
+ if (ref.prepend) {
115456
+ createDeprecatedDiagnostic("prepend");
115457
+ }
115458
+ });
115461
115459
  }
115462
115460
  function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
115463
115461
  var _a3;
@@ -115710,25 +115708,25 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
115710
115708
  arg1
115711
115709
  );
115712
115710
  }
115713
- function createDiagnosticForReference(sourceFile, index, message, arg0, arg1, arg2) {
115711
+ function createDiagnosticForReference(sourceFile, index, message, arg0, arg1, arg2, arg3) {
115714
115712
  const referencesSyntax = firstDefined(
115715
115713
  getTsConfigPropArray(sourceFile || options.configFile, "references"),
115716
115714
  (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0
115717
115715
  );
115718
115716
  if (referencesSyntax && referencesSyntax.elements.length > index) {
115719
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1, arg2));
115717
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1, arg2, arg3));
115720
115718
  } else {
115721
- programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2));
115719
+ programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2, arg3));
115722
115720
  }
115723
115721
  }
115724
- function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2) {
115722
+ function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2, arg3) {
115725
115723
  const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
115726
- const needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax || !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, arg0, arg1, arg2);
115724
+ const needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax || !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, arg0, arg1, arg2, arg3);
115727
115725
  if (needCompilerDiagnostic) {
115728
115726
  if ("messageText" in message) {
115729
115727
  programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
115730
115728
  } else {
115731
- programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2));
115729
+ programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2, arg3));
115732
115730
  }
115733
115731
  }
115734
115732
  }
@@ -115747,13 +115745,13 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
115747
115745
  }
115748
115746
  return _compilerOptionsObjectLiteralSyntax || void 0;
115749
115747
  }
115750
- function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2) {
115748
+ function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2, arg3) {
115751
115749
  const props = getPropertyAssignment(objectLiteral, key1, key2);
115752
115750
  for (const prop of props) {
115753
115751
  if ("messageText" in message) {
115754
115752
  programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
115755
115753
  } else {
115756
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, arg0, arg1, arg2));
115754
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, arg0, arg1, arg2, arg3));
115757
115755
  }
115758
115756
  }
115759
115757
  return !!props.length;