@typescript-deploys/pr-build 5.2.0-pr-54838-4 → 5.2.0-pr-54922-6

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.2";
21
- var version = `${versionMajorMinor}.0-insiders.20230703`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230707`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -1145,8 +1145,8 @@ function unorderedRemoveFirstItemWhere(array, predicate) {
1145
1145
  }
1146
1146
  return false;
1147
1147
  }
1148
- function createGetCanonicalFileName(useCaseSensitiveFileNames) {
1149
- return useCaseSensitiveFileNames ? identity : toFileNameLowerCase;
1148
+ function createGetCanonicalFileName(useCaseSensitiveFileNames2) {
1149
+ return useCaseSensitiveFileNames2 ? identity : toFileNameLowerCase;
1150
1150
  }
1151
1151
  function patternText({ prefix, suffix }) {
1152
1152
  return `${prefix}*${suffix}`;
@@ -1277,13 +1277,6 @@ function takeWhile(array, predicate) {
1277
1277
  return array.slice(0, index);
1278
1278
  }
1279
1279
  }
1280
- function startWhitespaceCount(s) {
1281
- for (let i = 0; i < s.length; i++) {
1282
- if (!isWhiteSpaceLike(s.charCodeAt(i)))
1283
- return i;
1284
- }
1285
- return s.length;
1286
- }
1287
1280
  function skipWhile(array, predicate) {
1288
1281
  if (array) {
1289
1282
  const len = array.length;
@@ -4180,10 +4173,10 @@ function createDynamicPriorityPollingWatchFile(host) {
4180
4173
  pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === 250 /* Low */ ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingInterval === 250 /* Low */ ? "pollLowPollingIntervalQueue" : "pollPollingIntervalQueue", pollingIntervalQueue(pollingInterval));
4181
4174
  }
4182
4175
  }
4183
- function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {
4176
+ function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2) {
4184
4177
  const fileWatcherCallbacks = createMultiMap();
4185
4178
  const dirWatchers = /* @__PURE__ */ new Map();
4186
- const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames);
4179
+ const toCanonicalName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
4187
4180
  return nonPollingWatchFile;
4188
4181
  function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {
4189
4182
  const filePath = toCanonicalName(fileName);
@@ -4259,8 +4252,8 @@ function createFixedChunkSizePollingWatchFile(host) {
4259
4252
  pollScheduled = host.setTimeout(pollQueue, 2e3 /* High */, "pollQueue");
4260
4253
  }
4261
4254
  }
4262
- function createSingleWatcherPerName(cache, useCaseSensitiveFileNames, name, callback, createWatcher) {
4263
- const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
4255
+ function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, callback, createWatcher) {
4256
+ const toCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
4264
4257
  const path = toCanonicalFileName(name);
4265
4258
  const existing = cache.get(path);
4266
4259
  if (existing) {
@@ -4312,7 +4305,7 @@ function setSysLog(logger) {
4312
4305
  }
4313
4306
  function createDirectoryWatcherSupportingRecursive({
4314
4307
  watchDirectory,
4315
- useCaseSensitiveFileNames,
4308
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
4316
4309
  getCurrentDirectory,
4317
4310
  getAccessibleSortedChildDirectories,
4318
4311
  fileSystemEntryExists,
@@ -4324,8 +4317,8 @@ function createDirectoryWatcherSupportingRecursive({
4324
4317
  const callbackCache = createMultiMap();
4325
4318
  const cacheToUpdateChildWatches = /* @__PURE__ */ new Map();
4326
4319
  let timerToUpdateChildWatches;
4327
- const filePathComparer = getStringComparer(!useCaseSensitiveFileNames);
4328
- const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames);
4320
+ const filePathComparer = getStringComparer(!useCaseSensitiveFileNames2);
4321
+ const toCanonicalFilePath = createGetCanonicalFileName(useCaseSensitiveFileNames2);
4329
4322
  return (dirName, callback, recursive, options) => recursive ? createDirectoryWatcher(dirName, options, callback) : watchDirectory(dirName, callback, recursive, options);
4330
4323
  function createDirectoryWatcher(dirName, options, callback) {
4331
4324
  const dirPath = toCanonicalFilePath(dirName);
@@ -4492,12 +4485,12 @@ function createDirectoryWatcherSupportingRecursive({
4492
4485
  }
4493
4486
  }
4494
4487
  function isIgnoredPath(path, options) {
4495
- return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory);
4488
+ return some(ignoredPaths, (searchPath) => isInPath(path, searchPath)) || isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames2, getCurrentDirectory);
4496
4489
  }
4497
4490
  function isInPath(path, searchPath) {
4498
4491
  if (stringContains(path, searchPath))
4499
4492
  return true;
4500
- if (useCaseSensitiveFileNames)
4493
+ if (useCaseSensitiveFileNames2)
4501
4494
  return false;
4502
4495
  return stringContains(toCanonicalFilePath(path), searchPath);
4503
4496
  }
@@ -4515,14 +4508,14 @@ function createFsWatchCallbackForFileWatcherCallback(fileName, callback, getModi
4515
4508
  }
4516
4509
  };
4517
4510
  }
4518
- function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) {
4519
- return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory()));
4511
+ function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames2, getCurrentDirectory) {
4512
+ return ((options == null ? void 0 : options.excludeDirectories) || (options == null ? void 0 : options.excludeFiles)) && (matchesExclude(pathToCheck, options == null ? void 0 : options.excludeFiles, useCaseSensitiveFileNames2, getCurrentDirectory()) || matchesExclude(pathToCheck, options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2, getCurrentDirectory()));
4520
4513
  }
4521
- function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) {
4514
+ function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory) {
4522
4515
  return (eventName, relativeFileName) => {
4523
4516
  if (eventName === "rename") {
4524
4517
  const fileName = !relativeFileName ? directoryName : normalizePath(combinePaths(directoryName, relativeFileName));
4525
- if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) {
4518
+ if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames2, getCurrentDirectory)) {
4526
4519
  callback(fileName);
4527
4520
  }
4528
4521
  }
@@ -4535,7 +4528,7 @@ function createSystemWatchFunctions({
4535
4528
  clearTimeout: clearTimeout2,
4536
4529
  fsWatchWorker,
4537
4530
  fileSystemEntryExists,
4538
- useCaseSensitiveFileNames,
4531
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
4539
4532
  getCurrentDirectory,
4540
4533
  fsSupportsRecursiveFsWatch,
4541
4534
  getAccessibleSortedChildDirectories,
@@ -4607,7 +4600,7 @@ function createSystemWatchFunctions({
4607
4600
  );
4608
4601
  case 5 /* UseFsEventsOnParentDirectory */:
4609
4602
  if (!nonPollingWatchFile) {
4610
- nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames);
4603
+ nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames2);
4611
4604
  }
4612
4605
  return nonPollingWatchFile(fileName, callback, pollingInterval, getFallbackOptions(options));
4613
4606
  default:
@@ -4656,7 +4649,7 @@ function createSystemWatchFunctions({
4656
4649
  return fsWatch(
4657
4650
  directoryName,
4658
4651
  1 /* Directory */,
4659
- createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory),
4652
+ createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory),
4660
4653
  recursive,
4661
4654
  500 /* Medium */,
4662
4655
  getFallbackOptions(options)
@@ -4664,7 +4657,7 @@ function createSystemWatchFunctions({
4664
4657
  }
4665
4658
  if (!hostRecursiveDirectoryWatcher) {
4666
4659
  hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({
4667
- useCaseSensitiveFileNames,
4660
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
4668
4661
  getCurrentDirectory,
4669
4662
  fileSystemEntryExists,
4670
4663
  getAccessibleSortedChildDirectories,
@@ -4710,7 +4703,7 @@ function createSystemWatchFunctions({
4710
4703
  return fsWatch(
4711
4704
  directoryName,
4712
4705
  1 /* Directory */,
4713
- createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory),
4706
+ createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames2, getCurrentDirectory),
4714
4707
  recursive,
4715
4708
  500 /* Medium */,
4716
4709
  getFallbackOptions(watchDirectoryOptions)
@@ -4738,7 +4731,7 @@ function createSystemWatchFunctions({
4738
4731
  function pollingWatchFile(fileName, callback, pollingInterval, options) {
4739
4732
  return createSingleWatcherPerName(
4740
4733
  pollingWatches,
4741
- useCaseSensitiveFileNames,
4734
+ useCaseSensitiveFileNames2,
4742
4735
  fileName,
4743
4736
  callback,
4744
4737
  (cb) => pollingWatchFileWorker(fileName, cb, pollingInterval, options)
@@ -4747,7 +4740,7 @@ function createSystemWatchFunctions({
4747
4740
  function fsWatch(fileOrDirectory, entryKind, callback, recursive, fallbackPollingInterval, fallbackOptions) {
4748
4741
  return createSingleWatcherPerName(
4749
4742
  recursive ? fsWatchesRecursive : fsWatches,
4750
- useCaseSensitiveFileNames,
4743
+ useCaseSensitiveFileNames2,
4751
4744
  fileOrDirectory,
4752
4745
  callback,
4753
4746
  (cb) => fsWatchHandlingExistenceOnHost(fileOrDirectory, entryKind, cb, recursive, fallbackPollingInterval, fallbackOptions)
@@ -4875,7 +4868,7 @@ var sys = (() => {
4875
4868
  const Buffer = require("buffer").Buffer;
4876
4869
  const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
4877
4870
  const platform = _os.platform();
4878
- const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
4871
+ const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
4879
4872
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
4880
4873
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
4881
4874
  const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
@@ -4886,7 +4879,7 @@ var sys = (() => {
4886
4879
  setTimeout,
4887
4880
  clearTimeout,
4888
4881
  fsWatchWorker,
4889
- useCaseSensitiveFileNames,
4882
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
4890
4883
  getCurrentDirectory,
4891
4884
  fileSystemEntryExists,
4892
4885
  // Node 4.0 `fs.watch` function supports the "recursive" option on both OSX and Windows
@@ -4903,7 +4896,7 @@ var sys = (() => {
4903
4896
  const nodeSystem = {
4904
4897
  args: process.argv.slice(2),
4905
4898
  newLine: _os.EOL,
4906
- useCaseSensitiveFileNames,
4899
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
4907
4900
  write(s) {
4908
4901
  process.stdout.write(s);
4909
4902
  },
@@ -5032,12 +5025,12 @@ var sys = (() => {
5032
5025
  for (const node of profile.nodes) {
5033
5026
  if (node.callFrame.url) {
5034
5027
  const url = normalizeSlashes(node.callFrame.url);
5035
- if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames)) {
5028
+ if (containsPath(fileUrlRoot, url, useCaseSensitiveFileNames2)) {
5036
5029
  node.callFrame.url = getRelativePathToDirectoryOrUrl(
5037
5030
  fileUrlRoot,
5038
5031
  url,
5039
5032
  fileUrlRoot,
5040
- createGetCanonicalFileName(useCaseSensitiveFileNames),
5033
+ createGetCanonicalFileName(useCaseSensitiveFileNames2),
5041
5034
  /*isAbsolutePathAnUrl*/
5042
5035
  true
5043
5036
  );
@@ -5217,7 +5210,7 @@ var sys = (() => {
5217
5210
  }
5218
5211
  }
5219
5212
  function readDirectory(path, extensions, excludes, includes, depth) {
5220
- return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
5213
+ return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
5221
5214
  }
5222
5215
  function fileSystemEntryExists(path, entryKind) {
5223
5216
  const originalStackTraceLimit = Error.stackTraceLimit;
@@ -5724,7 +5717,7 @@ var Diagnostics = {
5724
5717
  Identifier_expected: diag(1003, 1 /* Error */, "Identifier_expected_1003", "Identifier expected."),
5725
5718
  _0_expected: diag(1005, 1 /* Error */, "_0_expected_1005", "'{0}' expected."),
5726
5719
  A_file_cannot_have_a_reference_to_itself: diag(1006, 1 /* Error */, "A_file_cannot_have_a_reference_to_itself_1006", "A file cannot have a reference to itself."),
5727
- The_parser_expected_to_find_a_1_to_match_the_0_token_here_Colon: diag(1007, 1 /* Error */, "The_parser_expected_to_find_a_1_to_match_the_0_token_here_Colon_1007", "The parser expected to find a '{1}' to match the '{0}' token here:"),
5720
+ The_parser_expected_to_find_a_1_to_match_the_0_token_here: diag(1007, 1 /* Error */, "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007", "The parser expected to find a '{1}' to match the '{0}' token here."),
5728
5721
  Trailing_comma_not_allowed: diag(1009, 1 /* Error */, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."),
5729
5722
  Asterisk_Slash_expected: diag(1010, 1 /* Error */, "Asterisk_Slash_expected_1010", "'*/' expected."),
5730
5723
  An_element_access_expression_should_take_an_argument: diag(1011, 1 /* Error */, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."),
@@ -5986,7 +5979,7 @@ var Diagnostics = {
5986
5979
  unique_symbol_types_are_not_allowed_here: diag(1335, 1 /* Error */, "unique_symbol_types_are_not_allowed_here_1335", "'unique symbol' types are not allowed here."),
5987
5980
  An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead: diag(1337, 1 /* Error */, "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337", "An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),
5988
5981
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, 1 /* Error */, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
5989
- Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_Colon: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_Colon_1339", "Module '{0}' does not refer to a value, but is used as a value here:"),
5982
+ Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1 /* Error */, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
5990
5983
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1 /* Error */, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
5991
5984
  Class_constructor_may_not_be_an_accessor: diag(1341, 1 /* Error */, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
5992
5985
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1 /* Error */, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
@@ -5994,7 +5987,7 @@ var Diagnostics = {
5994
5987
  An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1 /* Error */, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
5995
5988
  This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1 /* Error */, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
5996
5989
  use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, 1 /* Error */, "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347", "'use strict' directive cannot be used with non-simple parameter list."),
5997
- Non_simple_parameter_declared_here_Colon: diag(1348, 1 /* Error */, "Non_simple_parameter_declared_here_Colon_1348", "Non-simple parameter declared here:"),
5990
+ Non_simple_parameter_declared_here: diag(1348, 1 /* Error */, "Non_simple_parameter_declared_here_1348", "Non-simple parameter declared here."),
5998
5991
  use_strict_directive_used_here: diag(1349, 1 /* Error */, "use_strict_directive_used_here_1349", "'use strict' directive used here."),
5999
5992
  Print_the_final_configuration_instead_of_building: diag(1350, 3 /* Message */, "Print_the_final_configuration_instead_of_building_1350", "Print the final configuration instead of building."),
6000
5993
  An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, 1 /* Error */, "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351", "An identifier or keyword cannot immediately follow a numeric literal."),
@@ -6018,8 +6011,8 @@ var Diagnostics = {
6018
6011
  Did_you_mean_0: diag(1369, 3 /* Message */, "Did_you_mean_0_1369", "Did you mean '{0}'?"),
6019
6012
  This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, 1 /* Error */, "This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371", "This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),
6020
6013
  await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, 1 /* Error */, "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375", "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),
6021
- _0_was_imported_here_Colon: diag(1376, 3 /* Message */, "_0_was_imported_here_Colon_1376", "'{0}' was imported here:"),
6022
- _0_was_exported_here_Colon: diag(1377, 3 /* Message */, "_0_was_exported_here_Colon_1377", "'{0}' was exported here:"),
6014
+ _0_was_imported_here: diag(1376, 3 /* Message */, "_0_was_imported_here_1376", "'{0}' was imported here."),
6015
+ _0_was_exported_here: diag(1377, 3 /* Message */, "_0_was_exported_here_1377", "'{0}' was exported here."),
6023
6016
  Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1 /* Error */, "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378", "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),
6024
6017
  An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379", "An import alias cannot reference a declaration that was exported using 'export type'."),
6025
6018
  An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1 /* Error */, "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380", "An import alias cannot reference a declaration that was imported using 'import type'."),
@@ -6038,34 +6031,34 @@ var Diagnostics = {
6038
6031
  Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions: diag(1396, 3 /* Message */, "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396", "Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),
6039
6032
  Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: diag(1397, 3 /* Message */, "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397", "Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),
6040
6033
  Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions: diag(1398, 3 /* Message */, "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398", "Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),
6041
- File_is_included_via_import_here_Colon: diag(1399, 3 /* Message */, "File_is_included_via_import_here_Colon_1399", "File is included via import here:"),
6034
+ File_is_included_via_import_here: diag(1399, 3 /* Message */, "File_is_included_via_import_here_1399", "File is included via import here."),
6042
6035
  Referenced_via_0_from_file_1: diag(1400, 3 /* Message */, "Referenced_via_0_from_file_1_1400", "Referenced via '{0}' from file '{1}'"),
6043
- File_is_included_via_reference_here_Colon: diag(1401, 3 /* Message */, "File_is_included_via_reference_here_Colon_1401", "File is included via reference here:"),
6036
+ File_is_included_via_reference_here: diag(1401, 3 /* Message */, "File_is_included_via_reference_here_1401", "File is included via reference here."),
6044
6037
  Type_library_referenced_via_0_from_file_1: diag(1402, 3 /* Message */, "Type_library_referenced_via_0_from_file_1_1402", "Type library referenced via '{0}' from file '{1}'"),
6045
6038
  Type_library_referenced_via_0_from_file_1_with_packageId_2: diag(1403, 3 /* Message */, "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403", "Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),
6046
- File_is_included_via_type_library_reference_here_Colon: diag(1404, 3 /* Message */, "File_is_included_via_type_library_reference_here_Colon_1404", "File is included via type library reference here:"),
6039
+ File_is_included_via_type_library_reference_here: diag(1404, 3 /* Message */, "File_is_included_via_type_library_reference_here_1404", "File is included via type library reference here."),
6047
6040
  Library_referenced_via_0_from_file_1: diag(1405, 3 /* Message */, "Library_referenced_via_0_from_file_1_1405", "Library referenced via '{0}' from file '{1}'"),
6048
- File_is_included_via_library_reference_here_Colon: diag(1406, 3 /* Message */, "File_is_included_via_library_reference_here_Colon_1406", "File is included via library reference here:"),
6041
+ File_is_included_via_library_reference_here: diag(1406, 3 /* Message */, "File_is_included_via_library_reference_here_1406", "File is included via library reference here."),
6049
6042
  Matched_by_include_pattern_0_in_1: diag(1407, 3 /* Message */, "Matched_by_include_pattern_0_in_1_1407", "Matched by include pattern '{0}' in '{1}'"),
6050
- File_is_matched_by_include_pattern_specified_here_Colon: diag(1408, 3 /* Message */, "File_is_matched_by_include_pattern_specified_here_Colon_1408", "File is matched by include pattern specified here:"),
6043
+ File_is_matched_by_include_pattern_specified_here: diag(1408, 3 /* Message */, "File_is_matched_by_include_pattern_specified_here_1408", "File is matched by include pattern specified here."),
6051
6044
  Part_of_files_list_in_tsconfig_json: diag(1409, 3 /* Message */, "Part_of_files_list_in_tsconfig_json_1409", "Part of 'files' list in tsconfig.json"),
6052
- File_is_matched_by_files_list_specified_here_Colon: diag(1410, 3 /* Message */, "File_is_matched_by_files_list_specified_here_Colon_1410", "File is matched by 'files' list specified here:"),
6045
+ File_is_matched_by_files_list_specified_here: diag(1410, 3 /* Message */, "File_is_matched_by_files_list_specified_here_1410", "File is matched by 'files' list specified here."),
6053
6046
  Output_from_referenced_project_0_included_because_1_specified: diag(1411, 3 /* Message */, "Output_from_referenced_project_0_included_because_1_specified_1411", "Output from referenced project '{0}' included because '{1}' specified"),
6054
6047
  Output_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1412, 3 /* Message */, "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412", "Output from referenced project '{0}' included because '--module' is specified as 'none'"),
6055
- File_is_output_from_referenced_project_specified_here_Colon: diag(1413, 3 /* Message */, "File_is_output_from_referenced_project_specified_here_Colon_1413", "File is output from referenced project specified here:"),
6048
+ File_is_output_from_referenced_project_specified_here: diag(1413, 3 /* Message */, "File_is_output_from_referenced_project_specified_here_1413", "File is output from referenced project specified here."),
6056
6049
  Source_from_referenced_project_0_included_because_1_specified: diag(1414, 3 /* Message */, "Source_from_referenced_project_0_included_because_1_specified_1414", "Source from referenced project '{0}' included because '{1}' specified"),
6057
6050
  Source_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1415, 3 /* Message */, "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415", "Source from referenced project '{0}' included because '--module' is specified as 'none'"),
6058
- File_is_source_from_referenced_project_specified_here_Colon: diag(1416, 3 /* Message */, "File_is_source_from_referenced_project_specified_here_Colon_1416", "File is source from referenced project specified here:"),
6051
+ File_is_source_from_referenced_project_specified_here: diag(1416, 3 /* Message */, "File_is_source_from_referenced_project_specified_here_1416", "File is source from referenced project specified here."),
6059
6052
  Entry_point_of_type_library_0_specified_in_compilerOptions: diag(1417, 3 /* Message */, "Entry_point_of_type_library_0_specified_in_compilerOptions_1417", "Entry point of type library '{0}' specified in compilerOptions"),
6060
6053
  Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1: diag(1418, 3 /* Message */, "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418", "Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),
6061
- File_is_entry_point_of_type_library_specified_here_Colon: diag(1419, 3 /* Message */, "File_is_entry_point_of_type_library_specified_here_Colon_1419", "File is entry point of type library specified here:"),
6054
+ File_is_entry_point_of_type_library_specified_here: diag(1419, 3 /* Message */, "File_is_entry_point_of_type_library_specified_here_1419", "File is entry point of type library specified here."),
6062
6055
  Entry_point_for_implicit_type_library_0: diag(1420, 3 /* Message */, "Entry_point_for_implicit_type_library_0_1420", "Entry point for implicit type library '{0}'"),
6063
6056
  Entry_point_for_implicit_type_library_0_with_packageId_1: diag(1421, 3 /* Message */, "Entry_point_for_implicit_type_library_0_with_packageId_1_1421", "Entry point for implicit type library '{0}' with packageId '{1}'"),
6064
6057
  Library_0_specified_in_compilerOptions: diag(1422, 3 /* Message */, "Library_0_specified_in_compilerOptions_1422", "Library '{0}' specified in compilerOptions"),
6065
- File_is_library_specified_here_Colon: diag(1423, 3 /* Message */, "File_is_library_specified_here_Colon_1423", "File is library specified here:"),
6058
+ File_is_library_specified_here: diag(1423, 3 /* Message */, "File_is_library_specified_here_1423", "File is library specified here."),
6066
6059
  Default_library: diag(1424, 3 /* Message */, "Default_library_1424", "Default library"),
6067
6060
  Default_library_for_target_0: diag(1425, 3 /* Message */, "Default_library_for_target_0_1425", "Default library for target '{0}'"),
6068
- File_is_default_library_for_target_specified_here_Colon: diag(1426, 3 /* Message */, "File_is_default_library_for_target_specified_here_Colon_1426", "File is default library for target specified here:"),
6061
+ File_is_default_library_for_target_specified_here: diag(1426, 3 /* Message */, "File_is_default_library_for_target_specified_here_1426", "File is default library for target specified here."),
6069
6062
  Root_file_specified_for_compilation: diag(1427, 3 /* Message */, "Root_file_specified_for_compilation_1427", "Root file specified for compilation"),
6070
6063
  File_is_output_of_project_reference_source_0: diag(1428, 3 /* Message */, "File_is_output_of_project_reference_source_0_1428", "File is output of project reference source '{0}'"),
6071
6064
  File_redirects_to_file_0: diag(1429, 3 /* Message */, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
@@ -6518,7 +6511,7 @@ var Diagnostics = {
6518
6511
  Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, 1 /* Error */, "Cannot_extend_an_interface_0_Did_you_mean_implements_2689", "Cannot extend an interface '{0}'. Did you mean 'implements'?"),
6519
6512
  _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0: diag(2690, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690", "'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),
6520
6513
  _0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible: diag(2692, 1 /* Error */, "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692", "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),
6521
- _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Colon: diag(2693, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Colon_2693", "'{0}' only refers to a type, but is being used as a value here:"),
6514
+ _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693", "'{0}' only refers to a type, but is being used as a value here."),
6522
6515
  Namespace_0_has_no_exported_member_1: diag(2694, 1 /* Error */, "Namespace_0_has_no_exported_member_1_2694", "Namespace '{0}' has no exported member '{1}'."),
6523
6516
  Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag(
6524
6517
  2695,
@@ -6534,7 +6527,7 @@ var Diagnostics = {
6534
6527
  Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, 1 /* Error */, "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699", "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),
6535
6528
  Rest_types_may_only_be_created_from_object_types: diag(2700, 1 /* Error */, "Rest_types_may_only_be_created_from_object_types_2700", "Rest types may only be created from object types."),
6536
6529
  The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, 1 /* Error */, "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701", "The target of an object rest assignment must be a variable or a property access."),
6537
- _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_Colon: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_Colon_2702", "'{0}' only refers to a type, but is being used as a namespace here:"),
6530
+ _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, 1 /* Error */, "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702", "'{0}' only refers to a type, but is being used as a namespace here."),
6538
6531
  The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, 1 /* Error */, "The_operand_of_a_delete_operator_must_be_a_property_reference_2703", "The operand of a 'delete' operator must be a property reference."),
6539
6532
  The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, 1 /* Error */, "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704", "The operand of a 'delete' operator cannot be a read-only property."),
6540
6533
  An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, 1 /* Error */, "An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705", "An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),
@@ -6560,12 +6553,12 @@ var Diagnostics = {
6560
6553
  Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: diag(2725, 1 /* Error */, "Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725", "Class name cannot be 'Object' when targeting ES5 with module {0}."),
6561
6554
  Cannot_find_lib_definition_for_0: diag(2726, 1 /* Error */, "Cannot_find_lib_definition_for_0_2726", "Cannot find lib definition for '{0}'."),
6562
6555
  Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, 1 /* Error */, "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727", "Cannot find lib definition for '{0}'. Did you mean '{1}'?"),
6563
- _0_is_declared_here_Colon: diag(2728, 3 /* Message */, "_0_is_declared_here_Colon_2728", "'{0}' is declared here:"),
6556
+ _0_is_declared_here: diag(2728, 3 /* Message */, "_0_is_declared_here_2728", "'{0}' is declared here."),
6564
6557
  Property_0_is_used_before_its_initialization: diag(2729, 1 /* Error */, "Property_0_is_used_before_its_initialization_2729", "Property '{0}' is used before its initialization."),
6565
6558
  An_arrow_function_cannot_have_a_this_parameter: diag(2730, 1 /* Error */, "An_arrow_function_cannot_have_a_this_parameter_2730", "An arrow function cannot have a 'this' parameter."),
6566
6559
  Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, 1 /* Error */, "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731", "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),
6567
6560
  Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, 1 /* Error */, "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732", "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),
6568
- Property_0_was_also_declared_here_Colon: diag(2733, 1 /* Error */, "Property_0_was_also_declared_here_Colon_2733", "Property '{0}' was also declared here:"),
6561
+ Property_0_was_also_declared_here: diag(2733, 1 /* Error */, "Property_0_was_also_declared_here_2733", "Property '{0}' was also declared here."),
6569
6562
  Are_you_missing_a_semicolon: diag(2734, 1 /* Error */, "Are_you_missing_a_semicolon_2734", "Are you missing a semicolon?"),
6570
6563
  Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: diag(2735, 1 /* Error */, "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735", "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),
6571
6564
  Operator_0_cannot_be_applied_to_type_1: diag(2736, 1 /* Error */, "Operator_0_cannot_be_applied_to_type_1_2736", "Operator '{0}' cannot be applied to type '{1}'."),
@@ -6582,10 +6575,10 @@ var Diagnostics = {
6582
6575
  _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, 1 /* Error */, "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747", "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),
6583
6576
  Cannot_access_ambient_const_enums_when_0_is_enabled: diag(2748, 1 /* Error */, "Cannot_access_ambient_const_enums_when_0_is_enabled_2748", "Cannot access ambient const enums when '{0}' is enabled."),
6584
6577
  _0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0: diag(2749, 1 /* Error */, "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749", "'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),
6585
- The_implementation_signature_is_declared_here_Colon: diag(2750, 1 /* Error */, "The_implementation_signature_is_declared_here_Colon_2750", "The implementation signature is declared here:"),
6578
+ The_implementation_signature_is_declared_here: diag(2750, 1 /* Error */, "The_implementation_signature_is_declared_here_2750", "The implementation signature is declared here."),
6586
6579
  Circularity_originates_in_type_at_this_location: diag(2751, 1 /* Error */, "Circularity_originates_in_type_at_this_location_2751", "Circularity originates in type at this location."),
6587
- The_first_export_default_is_here_Colon: diag(2752, 1 /* Error */, "The_first_export_default_is_here_Colon_2752", "The first export default is here:"),
6588
- Another_export_default_is_here_Colon: diag(2753, 1 /* Error */, "Another_export_default_is_here_Colon_2753", "Another export default is here:"),
6580
+ The_first_export_default_is_here: diag(2752, 1 /* Error */, "The_first_export_default_is_here_2752", "The first export default is here."),
6581
+ Another_export_default_is_here: diag(2753, 1 /* Error */, "Another_export_default_is_here_2753", "Another export default is here."),
6589
6582
  super_may_not_use_type_arguments: diag(2754, 1 /* Error */, "super_may_not_use_type_arguments_2754", "'super' may not use type arguments."),
6590
6583
  No_constituent_of_type_0_is_callable: diag(2755, 1 /* Error */, "No_constituent_of_type_0_is_callable_2755", "No constituent of type '{0}' is callable."),
6591
6584
  Not_all_constituents_of_type_0_are_callable: diag(2756, 1 /* Error */, "Not_all_constituents_of_type_0_are_callable_2756", "Not all constituents of type '{0}' are callable."),
@@ -6603,7 +6596,7 @@ var Diagnostics = {
6603
6596
  The_0_property_of_an_async_iterator_must_be_a_method: diag(2768, 1 /* Error */, "The_0_property_of_an_async_iterator_must_be_a_method_2768", "The '{0}' property of an async iterator must be a method."),
6604
6597
  No_overload_matches_this_call: diag(2769, 1 /* Error */, "No_overload_matches_this_call_2769", "No overload matches this call."),
6605
6598
  The_last_overload_gave_the_following_error: diag(2770, 1 /* Error */, "The_last_overload_gave_the_following_error_2770", "The last overload gave the following error."),
6606
- The_last_overload_is_declared_here_Colon: diag(2771, 1 /* Error */, "The_last_overload_is_declared_here_Colon_2771", "The last overload is declared here:"),
6599
+ The_last_overload_is_declared_here: diag(2771, 1 /* Error */, "The_last_overload_is_declared_here_2771", "The last overload is declared here."),
6607
6600
  Overload_0_of_1_2_gave_the_following_error: diag(2772, 1 /* Error */, "Overload_0_of_1_2_gave_the_following_error_2772", "Overload {0} of {1}, '{2}', gave the following error."),
6608
6601
  Did_you_forget_to_use_await: diag(2773, 1 /* Error */, "Did_you_forget_to_use_await_2773", "Did you forget to use 'await'?"),
6609
6602
  This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead: diag(2774, 1 /* Error */, "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774", "This condition will always return true since this function is always defined. Did you mean to call it instead?"),
@@ -6630,7 +6623,7 @@ var Diagnostics = {
6630
6623
  The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: diag(2795, 1 /* Error */, "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795", "The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),
6631
6624
  It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked: diag(2796, 1 /* Error */, "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796", "It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),
6632
6625
  A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract: diag(2797, 1 /* Error */, "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797", "A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),
6633
- The_declaration_was_marked_as_deprecated_here_Colon: diag(2798, 1 /* Error */, "The_declaration_was_marked_as_deprecated_here_Colon_2798", "The declaration was marked as deprecated here:"),
6626
+ The_declaration_was_marked_as_deprecated_here: diag(2798, 1 /* Error */, "The_declaration_was_marked_as_deprecated_here_2798", "The declaration was marked as deprecated here."),
6634
6627
  Type_produces_a_tuple_type_that_is_too_large_to_represent: diag(2799, 1 /* Error */, "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799", "Type produces a tuple type that is too large to represent."),
6635
6628
  Expression_produces_a_tuple_type_that_is_too_large_to_represent: diag(2800, 1 /* Error */, "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800", "Expression produces a tuple type that is too large to represent."),
6636
6629
  This_condition_will_always_return_true_since_this_0_is_always_defined: diag(2801, 1 /* Error */, "This_condition_will_always_return_true_since_this_0_is_always_defined_2801", "This condition will always return true since this '{0}' is always defined."),
@@ -7067,8 +7060,8 @@ var Diagnostics = {
7067
7060
  Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, 1 /* Error */, "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200", "Definitions of the following identifiers conflict with those in another file: {0}"),
7068
7061
  Conflicts_are_in_this_file: diag(6201, 3 /* Message */, "Conflicts_are_in_this_file_6201", "Conflicts are in this file."),
7069
7062
  Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, 1 /* Error */, "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202", "Project references may not form a circular graph. Cycle detected: {0}"),
7070
- _0_was_also_declared_here_Colon: diag(6203, 3 /* Message */, "_0_was_also_declared_here_Colon_6203", "'{0}' was also declared here:"),
7071
- and_here_Colon: diag(6204, 3 /* Message */, "and_here_Colon_6204", "and here:"),
7063
+ _0_was_also_declared_here: diag(6203, 3 /* Message */, "_0_was_also_declared_here_6203", "'{0}' was also declared here."),
7064
+ and_here: diag(6204, 3 /* Message */, "and_here_6204", "and here."),
7072
7065
  All_type_parameters_are_unused: diag(6205, 1 /* Error */, "All_type_parameters_are_unused_6205", "All type parameters are unused."),
7073
7066
  package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, 3 /* Message */, "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206", "'package.json' has a 'typesVersions' field with version-specific path mappings."),
7074
7067
  package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, 3 /* Message */, "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207", "'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),
@@ -7488,7 +7481,7 @@ var Diagnostics = {
7488
7481
  You_cannot_rename_a_module_via_a_global_import: diag(8031, 1 /* Error */, "You_cannot_rename_a_module_via_a_global_import_8031", "You cannot rename a module via a global import."),
7489
7482
  Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, 1 /* Error */, "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032", "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),
7490
7483
  A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, 1 /* Error */, "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033", "A JSDoc '@typedef' comment may not contain multiple '@type' tags."),
7491
- The_tag_was_first_specified_here_Colon: diag(8034, 1 /* Error */, "The_tag_was_first_specified_here_Colon_8034", "The tag was first specified here:"),
7484
+ The_tag_was_first_specified_here: diag(8034, 1 /* Error */, "The_tag_was_first_specified_here_8034", "The tag was first specified here."),
7492
7485
  You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: diag(8035, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035", "You cannot rename elements that are defined in a 'node_modules' folder."),
7493
7486
  You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder: diag(8036, 1 /* Error */, "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036", "You cannot rename elements that are defined in another 'node_modules' folder."),
7494
7487
  Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: diag(8037, 1 /* Error */, "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037", "Type satisfaction expressions can only be used in TypeScript files."),
@@ -8580,7 +8573,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
8580
8573
  if (withMinus)
8581
8574
  start2--;
8582
8575
  error(Diagnostics.Octal_literals_are_not_allowed_Use_the_syntax_0, start2, pos - start2, literal);
8583
- return { type: 9 /* NumericLiteral */, value: tokenValue };
8576
+ return 9 /* NumericLiteral */;
8584
8577
  }
8585
8578
  } else {
8586
8579
  mainFragment = scanNumberFragment();
@@ -8620,20 +8613,18 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
8620
8613
  }
8621
8614
  if (tokenFlags & 8192 /* ContainsLeadingZero */) {
8622
8615
  error(Diagnostics.Decimals_with_leading_zeros_are_not_allowed, start2, end2 - start2);
8623
- return { type: 9 /* NumericLiteral */, value: "" + +result };
8616
+ tokenValue = "" + +result;
8617
+ return 9 /* NumericLiteral */;
8624
8618
  }
8625
8619
  if (decimalFragment !== void 0 || tokenFlags & 16 /* Scientific */) {
8626
8620
  checkForIdentifierStartAfterNumericLiteral(start2, decimalFragment === void 0 && !!(tokenFlags & 16 /* Scientific */));
8627
- return {
8628
- type: 9 /* NumericLiteral */,
8629
- value: "" + +result
8630
- // if value is not an integer, it can be safely coerced to a number
8631
- };
8621
+ tokenValue = "" + +result;
8622
+ return 9 /* NumericLiteral */;
8632
8623
  } else {
8633
8624
  tokenValue = result;
8634
8625
  const type = checkBigIntSuffix();
8635
8626
  checkForIdentifierStartAfterNumericLiteral(start2);
8636
- return { type, value: tokenValue };
8627
+ return type;
8637
8628
  }
8638
8629
  }
8639
8630
  function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) {
@@ -9242,7 +9233,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9242
9233
  return token = 41 /* MinusToken */;
9243
9234
  case 46 /* dot */:
9244
9235
  if (isDigit(text.charCodeAt(pos + 1))) {
9245
- tokenValue = scanNumber().value;
9236
+ scanNumber();
9246
9237
  return token = 9 /* NumericLiteral */;
9247
9238
  }
9248
9239
  if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) {
@@ -9360,8 +9351,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
9360
9351
  case 55 /* _7 */:
9361
9352
  case 56 /* _8 */:
9362
9353
  case 57 /* _9 */:
9363
- ({ type: token, value: tokenValue } = scanNumber());
9364
- return token;
9354
+ return token = scanNumber();
9365
9355
  case 58 /* colon */:
9366
9356
  pos++;
9367
9357
  return token = 59 /* ColonToken */;
@@ -14749,7 +14739,7 @@ function isNightly() {
14749
14739
  }
14750
14740
  function createTextWriter(newLine) {
14751
14741
  var output;
14752
- var indent;
14742
+ var indent2;
14753
14743
  var lineStart;
14754
14744
  var lineCount;
14755
14745
  var linePos;
@@ -14767,7 +14757,7 @@ function createTextWriter(newLine) {
14767
14757
  function writeText(s) {
14768
14758
  if (s && s.length) {
14769
14759
  if (lineStart) {
14770
- s = getIndentString(indent) + s;
14760
+ s = getIndentString(indent2) + s;
14771
14761
  lineStart = false;
14772
14762
  }
14773
14763
  output += s;
@@ -14786,7 +14776,7 @@ function createTextWriter(newLine) {
14786
14776
  }
14787
14777
  function reset() {
14788
14778
  output = "";
14789
- indent = 0;
14779
+ indent2 = 0;
14790
14780
  lineStart = true;
14791
14781
  lineCount = 0;
14792
14782
  linePos = 0;
@@ -14823,15 +14813,15 @@ function createTextWriter(newLine) {
14823
14813
  writeLiteral,
14824
14814
  writeLine,
14825
14815
  increaseIndent: () => {
14826
- indent++;
14816
+ indent2++;
14827
14817
  },
14828
14818
  decreaseIndent: () => {
14829
- indent--;
14819
+ indent2--;
14830
14820
  },
14831
- getIndent: () => indent,
14821
+ getIndent: () => indent2,
14832
14822
  getTextPos: () => output.length,
14833
14823
  getLine: () => lineCount,
14834
- getColumn: () => lineStart ? indent * getIndentSize() : output.length - linePos,
14824
+ getColumn: () => lineStart ? indent2 * getIndentSize() : output.length - linePos,
14835
14825
  getText: () => output,
14836
14826
  isAtStartOfLine: () => lineStart,
14837
14827
  hasTrailingComment: () => hasTrailingComment,
@@ -16599,7 +16589,7 @@ function getSubPatternFromSpec(spec, basePath, usage, { singleAsteriskRegexFragm
16599
16589
  function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {
16600
16590
  return match === "*" ? singleAsteriskRegexFragment : match === "?" ? "[^/]" : "\\" + match;
16601
16591
  }
16602
- function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) {
16592
+ function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory) {
16603
16593
  path = normalizePath(path);
16604
16594
  currentDirectory = normalizePath(currentDirectory);
16605
16595
  const absolutePath = combinePaths(currentDirectory, path);
@@ -16608,22 +16598,22 @@ function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNa
16608
16598
  includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, "files"),
16609
16599
  includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, "directories"),
16610
16600
  excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, "exclude"),
16611
- basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)
16601
+ basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames2)
16612
16602
  };
16613
16603
  }
16614
- function getRegexFromPattern(pattern, useCaseSensitiveFileNames) {
16615
- return new RegExp(pattern, useCaseSensitiveFileNames ? "" : "i");
16604
+ function getRegexFromPattern(pattern, useCaseSensitiveFileNames2) {
16605
+ return new RegExp(pattern, useCaseSensitiveFileNames2 ? "" : "i");
16616
16606
  }
16617
- function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath) {
16607
+ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath) {
16618
16608
  path = normalizePath(path);
16619
16609
  currentDirectory = normalizePath(currentDirectory);
16620
- const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);
16621
- const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames));
16622
- const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);
16623
- const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);
16610
+ const patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames2, currentDirectory);
16611
+ const includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map((pattern) => getRegexFromPattern(pattern, useCaseSensitiveFileNames2));
16612
+ const includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames2);
16613
+ const excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames2);
16624
16614
  const results = includeFileRegexes ? includeFileRegexes.map(() => []) : [[]];
16625
16615
  const visited = /* @__PURE__ */ new Map();
16626
- const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames);
16616
+ const toCanonical = createGetCanonicalFileName(useCaseSensitiveFileNames2);
16627
16617
  for (const basePath of patterns.basePaths) {
16628
16618
  visitDirectory(basePath, combinePaths(currentDirectory, basePath), depth);
16629
16619
  }
@@ -16665,7 +16655,7 @@ function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNa
16665
16655
  }
16666
16656
  }
16667
16657
  }
16668
- function getBasePaths(path, includes, useCaseSensitiveFileNames) {
16658
+ function getBasePaths(path, includes, useCaseSensitiveFileNames2) {
16669
16659
  const basePaths = [path];
16670
16660
  if (includes) {
16671
16661
  const includeBasePaths = [];
@@ -16673,9 +16663,9 @@ function getBasePaths(path, includes, useCaseSensitiveFileNames) {
16673
16663
  const absolute = isRootedDiskPath(include) ? include : normalizePath(combinePaths(path, include));
16674
16664
  includeBasePaths.push(getIncludeBasePath(absolute));
16675
16665
  }
16676
- includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames));
16666
+ includeBasePaths.sort(getStringComparer(!useCaseSensitiveFileNames2));
16677
16667
  for (const includeBasePath of includeBasePaths) {
16678
- if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames))) {
16668
+ if (every(basePaths, (basePath) => !containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames2))) {
16679
16669
  basePaths.push(includeBasePath);
16680
16670
  }
16681
16671
  }
@@ -27088,7 +27078,7 @@ var Parser;
27088
27078
  if (lastError) {
27089
27079
  addRelatedInfo(
27090
27080
  lastError,
27091
- createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here_Colon, tokenToString(openKind), tokenToString(closeKind))
27081
+ createDetachedDiagnostic(fileName, openPosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, tokenToString(openKind), tokenToString(closeKind))
27092
27082
  );
27093
27083
  }
27094
27084
  }
@@ -28676,7 +28666,7 @@ var Parser;
28676
28666
  if (lastError && lastError.code === Diagnostics._0_expected.code) {
28677
28667
  addRelatedInfo(
28678
28668
  lastError,
28679
- createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here_Colon, "{", "}")
28669
+ createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
28680
28670
  );
28681
28671
  }
28682
28672
  }
@@ -31780,7 +31770,7 @@ var Parser;
31780
31770
  if (lastError && lastError.code === Diagnostics._0_expected.code) {
31781
31771
  addRelatedInfo(
31782
31772
  lastError,
31783
- createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here_Colon, "{", "}")
31773
+ createDetachedDiagnostic(fileName, openBracePosition, 1, Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, "{", "}")
31784
31774
  );
31785
31775
  }
31786
31776
  }
@@ -32148,20 +32138,20 @@ var Parser;
32148
32138
  function doJSDocScan() {
32149
32139
  let state = 1 /* SawAsterisk */;
32150
32140
  let margin;
32151
- let indent = start - (content.lastIndexOf("\n", start) + 1) + 4;
32141
+ let indent2 = start - (content.lastIndexOf("\n", start) + 1) + 4;
32152
32142
  function pushComment(text) {
32153
32143
  if (!margin) {
32154
- margin = indent;
32144
+ margin = indent2;
32155
32145
  }
32156
32146
  comments.push(text);
32157
- indent += text.length;
32147
+ indent2 += text.length;
32158
32148
  }
32159
32149
  nextTokenJSDoc();
32160
32150
  while (parseOptionalJsdoc(5 /* WhitespaceTrivia */))
32161
32151
  ;
32162
32152
  if (parseOptionalJsdoc(4 /* NewLineTrivia */)) {
32163
32153
  state = 0 /* BeginningOfLine */;
32164
- indent = 0;
32154
+ indent2 = 0;
32165
32155
  }
32166
32156
  loop:
32167
32157
  while (true) {
@@ -32170,14 +32160,14 @@ var Parser;
32170
32160
  removeTrailingWhitespace(comments);
32171
32161
  if (!commentsPos)
32172
32162
  commentsPos = getNodePos();
32173
- addTag(parseTag(indent));
32163
+ addTag(parseTag(indent2));
32174
32164
  state = 0 /* BeginningOfLine */;
32175
32165
  margin = void 0;
32176
32166
  break;
32177
32167
  case 4 /* NewLineTrivia */:
32178
32168
  comments.push(scanner.getTokenText());
32179
32169
  state = 0 /* BeginningOfLine */;
32180
- indent = 0;
32170
+ indent2 = 0;
32181
32171
  break;
32182
32172
  case 42 /* AsteriskToken */:
32183
32173
  const asterisk = scanner.getTokenText();
@@ -32187,16 +32177,16 @@ var Parser;
32187
32177
  } else {
32188
32178
  Debug.assert(state === 0 /* BeginningOfLine */);
32189
32179
  state = 1 /* SawAsterisk */;
32190
- indent += asterisk.length;
32180
+ indent2 += asterisk.length;
32191
32181
  }
32192
32182
  break;
32193
32183
  case 5 /* WhitespaceTrivia */:
32194
32184
  Debug.assert(state !== 2 /* SavingComments */, "whitespace shouldn't come from the scanner while saving top-level comment text");
32195
32185
  const whitespace = scanner.getTokenText();
32196
- if (margin !== void 0 && indent + whitespace.length > margin) {
32197
- comments.push(whitespace.slice(margin - indent));
32186
+ if (margin !== void 0 && indent2 + whitespace.length > margin) {
32187
+ comments.push(whitespace.slice(margin - indent2));
32198
32188
  }
32199
- indent += whitespace.length;
32189
+ indent2 += whitespace.length;
32200
32190
  break;
32201
32191
  case 1 /* EndOfFileToken */:
32202
32192
  break loop;
@@ -32398,7 +32388,7 @@ var Parser;
32398
32388
  }
32399
32389
  return parseTagComments(margin, indentText.slice(margin));
32400
32390
  }
32401
- function parseTagComments(indent, initialMargin) {
32391
+ function parseTagComments(indent2, initialMargin) {
32402
32392
  const commentsPos2 = getNodePos();
32403
32393
  let comments2 = [];
32404
32394
  const parts2 = [];
@@ -32407,10 +32397,10 @@ var Parser;
32407
32397
  let margin;
32408
32398
  function pushComment(text) {
32409
32399
  if (!margin) {
32410
- margin = indent;
32400
+ margin = indent2;
32411
32401
  }
32412
32402
  comments2.push(text);
32413
- indent += text.length;
32403
+ indent2 += text.length;
32414
32404
  }
32415
32405
  if (initialMargin !== void 0) {
32416
32406
  if (initialMargin !== "") {
@@ -32425,7 +32415,7 @@ var Parser;
32425
32415
  case 4 /* NewLineTrivia */:
32426
32416
  state = 0 /* BeginningOfLine */;
32427
32417
  comments2.push(scanner.getTokenText());
32428
- indent = 0;
32418
+ indent2 = 0;
32429
32419
  break;
32430
32420
  case 60 /* AtToken */:
32431
32421
  scanner.resetTokenState(scanner.getTokenEnd() - 1);
@@ -32435,11 +32425,11 @@ var Parser;
32435
32425
  case 5 /* WhitespaceTrivia */:
32436
32426
  Debug.assert(state !== 2 /* SavingComments */ && state !== 3 /* SavingBackticks */, "whitespace shouldn't come from the scanner while saving comment text");
32437
32427
  const whitespace = scanner.getTokenText();
32438
- if (margin !== void 0 && indent + whitespace.length > margin) {
32439
- comments2.push(whitespace.slice(margin - indent));
32428
+ if (margin !== void 0 && indent2 + whitespace.length > margin) {
32429
+ comments2.push(whitespace.slice(margin - indent2));
32440
32430
  state = 2 /* SavingComments */;
32441
32431
  }
32442
- indent += whitespace.length;
32432
+ indent2 += whitespace.length;
32443
32433
  break;
32444
32434
  case 19 /* OpenBraceToken */:
32445
32435
  state = 2 /* SavingComments */;
@@ -32472,7 +32462,7 @@ var Parser;
32472
32462
  case 42 /* AsteriskToken */:
32473
32463
  if (state === 0 /* BeginningOfLine */) {
32474
32464
  state = 1 /* SawAsterisk */;
32475
- indent += 1;
32465
+ indent2 += 1;
32476
32466
  break;
32477
32467
  }
32478
32468
  default:
@@ -32537,8 +32527,8 @@ var Parser;
32537
32527
  function isJSDocLinkTag(kind) {
32538
32528
  return kind === "link" || kind === "linkcode" || kind === "linkplain";
32539
32529
  }
32540
- function parseUnknownTag(start2, tagName, indent, indentText) {
32541
- return finishNode(factory2.createJSDocUnknownTag(tagName, parseTrailingTagComments(start2, getNodePos(), indent, indentText)), start2);
32530
+ function parseUnknownTag(start2, tagName, indent2, indentText) {
32531
+ return finishNode(factory2.createJSDocUnknownTag(tagName, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);
32542
32532
  }
32543
32533
  function addTag(tag) {
32544
32534
  if (!tag) {
@@ -32585,7 +32575,7 @@ var Parser;
32585
32575
  return isTypeReferenceNode(node) && isIdentifier(node.typeName) && node.typeName.escapedText === "Object" && !node.typeArguments;
32586
32576
  }
32587
32577
  }
32588
- function parseParameterOrPropertyTag(start2, tagName, target, indent) {
32578
+ function parseParameterOrPropertyTag(start2, tagName, target, indent2) {
32589
32579
  let typeExpression = tryParseTypeExpression();
32590
32580
  let isNameFirst = !typeExpression;
32591
32581
  skipWhitespaceOrAsterisk();
@@ -32594,8 +32584,8 @@ var Parser;
32594
32584
  if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) {
32595
32585
  typeExpression = tryParseTypeExpression();
32596
32586
  }
32597
- const comment = parseTrailingTagComments(start2, getNodePos(), indent, indentText);
32598
- const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent);
32587
+ const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
32588
+ const nestedTypeLiteral = parseNestedTypeLiteral(typeExpression, name, target, indent2);
32599
32589
  if (nestedTypeLiteral) {
32600
32590
  typeExpression = nestedTypeLiteral;
32601
32591
  isNameFirst = true;
@@ -32603,12 +32593,12 @@ var Parser;
32603
32593
  const result2 = target === 1 /* Property */ ? factory2.createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) : factory2.createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment);
32604
32594
  return finishNode(result2, start2);
32605
32595
  }
32606
- function parseNestedTypeLiteral(typeExpression, name, target, indent) {
32596
+ function parseNestedTypeLiteral(typeExpression, name, target, indent2) {
32607
32597
  if (typeExpression && isObjectOrObjectArrayTypeReference(typeExpression.type)) {
32608
32598
  const pos = getNodePos();
32609
32599
  let child;
32610
32600
  let children;
32611
- while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent, name))) {
32601
+ while (child = tryParse(() => parseChildParameterOrPropertyTag(target, indent2, name))) {
32612
32602
  if (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) {
32613
32603
  children = append(children, child);
32614
32604
  } else if (child.kind === 352 /* JSDocTemplateTag */) {
@@ -32621,14 +32611,14 @@ var Parser;
32621
32611
  }
32622
32612
  }
32623
32613
  }
32624
- function parseReturnTag(start2, tagName, indent, indentText) {
32614
+ function parseReturnTag(start2, tagName, indent2, indentText) {
32625
32615
  if (some(tags, isJSDocReturnTag)) {
32626
32616
  parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText));
32627
32617
  }
32628
32618
  const typeExpression = tryParseTypeExpression();
32629
- return finishNode(factory2.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), indent, indentText)), start2);
32619
+ return finishNode(factory2.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);
32630
32620
  }
32631
- function parseTypeTag(start2, tagName, indent, indentText) {
32621
+ function parseTypeTag(start2, tagName, indent2, indentText) {
32632
32622
  if (some(tags, isJSDocTypeTag)) {
32633
32623
  parseErrorAt(tagName.pos, scanner.getTokenStart(), Diagnostics._0_tag_already_specified, unescapeLeadingUnderscores(tagName.escapedText));
32634
32624
  }
@@ -32636,25 +32626,25 @@ var Parser;
32636
32626
  /*mayOmitBraces*/
32637
32627
  true
32638
32628
  );
32639
- const comments2 = indent !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent, indentText) : void 0;
32629
+ const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0;
32640
32630
  return finishNode(factory2.createJSDocTypeTag(tagName, typeExpression, comments2), start2);
32641
32631
  }
32642
- function parseSeeTag(start2, tagName, indent, indentText) {
32632
+ function parseSeeTag(start2, tagName, indent2, indentText) {
32643
32633
  const isMarkdownOrJSDocLink = token() === 23 /* OpenBracketToken */ || lookAhead(() => nextTokenJSDoc() === 60 /* AtToken */ && tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && isJSDocLinkTag(scanner.getTokenValue()));
32644
32634
  const nameExpression = isMarkdownOrJSDocLink ? void 0 : parseJSDocNameReference();
32645
- const comments2 = indent !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent, indentText) : void 0;
32635
+ const comments2 = indent2 !== void 0 && indentText !== void 0 ? parseTrailingTagComments(start2, getNodePos(), indent2, indentText) : void 0;
32646
32636
  return finishNode(factory2.createJSDocSeeTag(tagName, nameExpression, comments2), start2);
32647
32637
  }
32648
- function parseThrowsTag(start2, tagName, indent, indentText) {
32638
+ function parseThrowsTag(start2, tagName, indent2, indentText) {
32649
32639
  const typeExpression = tryParseTypeExpression();
32650
- const comment = parseTrailingTagComments(start2, getNodePos(), indent, indentText);
32640
+ const comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
32651
32641
  return finishNode(factory2.createJSDocThrowsTag(tagName, typeExpression, comment), start2);
32652
32642
  }
32653
- function parseAuthorTag(start2, tagName, indent, indentText) {
32643
+ function parseAuthorTag(start2, tagName, indent2, indentText) {
32654
32644
  const commentStart = getNodePos();
32655
32645
  const textOnly = parseAuthorNameAndEmail();
32656
32646
  let commentEnd = scanner.getTokenFullStart();
32657
- const comments2 = parseTrailingTagComments(start2, commentEnd, indent, indentText);
32647
+ const comments2 = parseTrailingTagComments(start2, commentEnd, indent2, indentText);
32658
32648
  if (!comments2) {
32659
32649
  commentEnd = scanner.getTokenFullStart();
32660
32650
  }
@@ -32738,19 +32728,19 @@ var Parser;
32738
32728
  skipWhitespace();
32739
32729
  return finishNode(factory2.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start2, getNodePos(), margin, indentText)), start2);
32740
32730
  }
32741
- function parseTypedefTag(start2, tagName, indent, indentText) {
32731
+ function parseTypedefTag(start2, tagName, indent2, indentText) {
32742
32732
  let typeExpression = tryParseTypeExpression();
32743
32733
  skipWhitespaceOrAsterisk();
32744
32734
  const fullName = parseJSDocTypeNameWithNamespace();
32745
32735
  skipWhitespace();
32746
- let comment = parseTagComments(indent);
32736
+ let comment = parseTagComments(indent2);
32747
32737
  let end2;
32748
32738
  if (!typeExpression || isObjectOrObjectArrayTypeReference(typeExpression.type)) {
32749
32739
  let child;
32750
32740
  let childTypeTag;
32751
32741
  let jsDocPropertyTags;
32752
32742
  let hasChildren = false;
32753
- while (child = tryParse(() => parseChildPropertyTag(indent))) {
32743
+ while (child = tryParse(() => parseChildPropertyTag(indent2))) {
32754
32744
  if (child.kind === 352 /* JSDocTemplateTag */) {
32755
32745
  break;
32756
32746
  }
@@ -32759,7 +32749,7 @@ var Parser;
32759
32749
  if (childTypeTag) {
32760
32750
  const lastError = parseErrorAtCurrentToken(Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
32761
32751
  if (lastError) {
32762
- addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.The_tag_was_first_specified_here_Colon));
32752
+ addRelatedInfo(lastError, createDetachedDiagnostic(fileName, 0, 0, Diagnostics.The_tag_was_first_specified_here));
32763
32753
  }
32764
32754
  break;
32765
32755
  } else {
@@ -32778,7 +32768,7 @@ var Parser;
32778
32768
  }
32779
32769
  end2 = end2 || comment !== void 0 ? getNodePos() : (fullName ?? typeExpression ?? tagName).end;
32780
32770
  if (!comment) {
32781
- comment = parseTrailingTagComments(start2, end2, indent, indentText);
32771
+ comment = parseTrailingTagComments(start2, end2, indent2, indentText);
32782
32772
  }
32783
32773
  const typedefTag = factory2.createJSDocTypedefTag(tagName, typeExpression, fullName, comment);
32784
32774
  return finishNode(typedefTag, start2, end2);
@@ -32808,11 +32798,11 @@ var Parser;
32808
32798
  }
32809
32799
  return typeNameOrNamespaceName;
32810
32800
  }
32811
- function parseCallbackTagParameters(indent) {
32801
+ function parseCallbackTagParameters(indent2) {
32812
32802
  const pos = getNodePos();
32813
32803
  let child;
32814
32804
  let parameters;
32815
- while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent))) {
32805
+ while (child = tryParse(() => parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent2))) {
32816
32806
  if (child.kind === 352 /* JSDocTemplateTag */) {
32817
32807
  parseErrorAtRange(child.tagName, Diagnostics.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);
32818
32808
  break;
@@ -32821,11 +32811,11 @@ var Parser;
32821
32811
  }
32822
32812
  return createNodeArray(parameters || [], pos);
32823
32813
  }
32824
- function parseJSDocSignature(start2, indent) {
32825
- const parameters = parseCallbackTagParameters(indent);
32814
+ function parseJSDocSignature(start2, indent2) {
32815
+ const parameters = parseCallbackTagParameters(indent2);
32826
32816
  const returnTag = tryParse(() => {
32827
32817
  if (parseOptionalJsdoc(60 /* AtToken */)) {
32828
- const tag = parseTag(indent);
32818
+ const tag = parseTag(indent2);
32829
32819
  if (tag && tag.kind === 349 /* JSDocReturnTag */) {
32830
32820
  return tag;
32831
32821
  }
@@ -32838,23 +32828,23 @@ var Parser;
32838
32828
  returnTag
32839
32829
  ), start2);
32840
32830
  }
32841
- function parseCallbackTag(start2, tagName, indent, indentText) {
32831
+ function parseCallbackTag(start2, tagName, indent2, indentText) {
32842
32832
  const fullName = parseJSDocTypeNameWithNamespace();
32843
32833
  skipWhitespace();
32844
- let comment = parseTagComments(indent);
32845
- const typeExpression = parseJSDocSignature(start2, indent);
32834
+ let comment = parseTagComments(indent2);
32835
+ const typeExpression = parseJSDocSignature(start2, indent2);
32846
32836
  if (!comment) {
32847
- comment = parseTrailingTagComments(start2, getNodePos(), indent, indentText);
32837
+ comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
32848
32838
  }
32849
32839
  const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;
32850
32840
  return finishNode(factory2.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start2, end2);
32851
32841
  }
32852
- function parseOverloadTag(start2, tagName, indent, indentText) {
32842
+ function parseOverloadTag(start2, tagName, indent2, indentText) {
32853
32843
  skipWhitespace();
32854
- let comment = parseTagComments(indent);
32855
- const typeExpression = parseJSDocSignature(start2, indent);
32844
+ let comment = parseTagComments(indent2);
32845
+ const typeExpression = parseJSDocSignature(start2, indent2);
32856
32846
  if (!comment) {
32857
- comment = parseTrailingTagComments(start2, getNodePos(), indent, indentText);
32847
+ comment = parseTrailingTagComments(start2, getNodePos(), indent2, indentText);
32858
32848
  }
32859
32849
  const end2 = comment !== void 0 ? getNodePos() : typeExpression.end;
32860
32850
  return finishNode(factory2.createJSDocOverloadTag(tagName, typeExpression, comment), start2, end2);
@@ -32870,17 +32860,17 @@ var Parser;
32870
32860
  }
32871
32861
  return a.escapedText === b.escapedText;
32872
32862
  }
32873
- function parseChildPropertyTag(indent) {
32874
- return parseChildParameterOrPropertyTag(1 /* Property */, indent);
32863
+ function parseChildPropertyTag(indent2) {
32864
+ return parseChildParameterOrPropertyTag(1 /* Property */, indent2);
32875
32865
  }
32876
- function parseChildParameterOrPropertyTag(target, indent, name) {
32866
+ function parseChildParameterOrPropertyTag(target, indent2, name) {
32877
32867
  let canParseTag = true;
32878
32868
  let seenAsterisk = false;
32879
32869
  while (true) {
32880
32870
  switch (nextTokenJSDoc()) {
32881
32871
  case 60 /* AtToken */:
32882
32872
  if (canParseTag) {
32883
- const child = tryParseChildTag(target, indent);
32873
+ const child = tryParseChildTag(target, indent2);
32884
32874
  if (child && (child.kind === 348 /* JSDocParameterTag */ || child.kind === 355 /* JSDocPropertyTag */) && name && (isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {
32885
32875
  return false;
32886
32876
  }
@@ -32906,7 +32896,7 @@ var Parser;
32906
32896
  }
32907
32897
  }
32908
32898
  }
32909
- function tryParseChildTag(target, indent) {
32899
+ function tryParseChildTag(target, indent2) {
32910
32900
  Debug.assert(token() === 60 /* AtToken */);
32911
32901
  const start2 = scanner.getTokenFullStart();
32912
32902
  nextTokenJSDoc();
@@ -32926,14 +32916,14 @@ var Parser;
32926
32916
  t = 2 /* Parameter */ | 4 /* CallbackParameter */;
32927
32917
  break;
32928
32918
  case "template":
32929
- return parseTemplateTag(start2, tagName, indent, indentText);
32919
+ return parseTemplateTag(start2, tagName, indent2, indentText);
32930
32920
  default:
32931
32921
  return false;
32932
32922
  }
32933
32923
  if (!(target & t)) {
32934
32924
  return false;
32935
32925
  }
32936
- return parseParameterOrPropertyTag(start2, tagName, target, indent);
32926
+ return parseParameterOrPropertyTag(start2, tagName, target, indent2);
32937
32927
  }
32938
32928
  function parseTemplateTagTypeParameter() {
32939
32929
  const typeParameterPos = getNodePos();
@@ -32974,10 +32964,10 @@ var Parser;
32974
32964
  } while (parseOptionalJsdoc(28 /* CommaToken */));
32975
32965
  return createNodeArray(typeParameters, pos);
32976
32966
  }
32977
- function parseTemplateTag(start2, tagName, indent, indentText) {
32967
+ function parseTemplateTag(start2, tagName, indent2, indentText) {
32978
32968
  const constraint = token() === 19 /* OpenBraceToken */ ? parseJSDocTypeExpression() : void 0;
32979
32969
  const typeParameters = parseTemplateTagTypeParameters();
32980
- return finishNode(factory2.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start2, getNodePos(), indent, indentText)), start2);
32970
+ return finishNode(factory2.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start2, getNodePos(), indent2, indentText)), start2);
32981
32971
  }
32982
32972
  function parseOptionalJsdoc(t) {
32983
32973
  if (token() === t) {
@@ -34114,6 +34104,7 @@ var commandOptionsWithoutBuild = [
34114
34104
  {
34115
34105
  name: "checkJs",
34116
34106
  type: "boolean",
34107
+ affectsModuleResolution: true,
34117
34108
  showInSimplifiedHelpView: true,
34118
34109
  category: Diagnostics.JavaScript_Support,
34119
34110
  description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,
@@ -36524,19 +36515,19 @@ function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, e
36524
36515
  const wildcardFiles = arrayFrom(wildcardFileMap.values());
36525
36516
  return literalFiles.concat(wildcardFiles, arrayFrom(wildCardJsonFileMap.values()));
36526
36517
  }
36527
- function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) {
36518
+ function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames2, currentDirectory) {
36528
36519
  const { validatedFilesSpec, validatedIncludeSpecs, validatedExcludeSpecs } = spec;
36529
36520
  if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs))
36530
36521
  return false;
36531
36522
  basePath = normalizePath(basePath);
36532
- const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames);
36523
+ const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames2);
36533
36524
  if (validatedFilesSpec) {
36534
36525
  for (const fileName of validatedFilesSpec) {
36535
36526
  if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck)
36536
36527
  return false;
36537
36528
  }
36538
36529
  }
36539
- return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath);
36530
+ return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath);
36540
36531
  }
36541
36532
  function invalidDotDotAfterRecursiveWildcard(s) {
36542
36533
  const wildcardIndex = startsWith(s, "**/") ? 0 : s.indexOf("/**/");
@@ -36546,17 +36537,17 @@ function invalidDotDotAfterRecursiveWildcard(s) {
36546
36537
  const lastDotIndex = endsWith(s, "/..") ? s.length : s.lastIndexOf("/../");
36547
36538
  return lastDotIndex > wildcardIndex;
36548
36539
  }
36549
- function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) {
36540
+ function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory) {
36550
36541
  return matchesExcludeWorker(
36551
36542
  pathToCheck,
36552
36543
  filter(excludeSpecs, (spec) => !invalidDotDotAfterRecursiveWildcard(spec)),
36553
- useCaseSensitiveFileNames,
36544
+ useCaseSensitiveFileNames2,
36554
36545
  currentDirectory
36555
36546
  );
36556
36547
  }
36557
- function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) {
36548
+ function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames2, currentDirectory, basePath) {
36558
36549
  const excludePattern = getRegularExpressionForWildcard(excludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude");
36559
- const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames);
36550
+ const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames2);
36560
36551
  if (!excludeRegex)
36561
36552
  return false;
36562
36553
  if (excludeRegex.test(pathToCheck))
@@ -36586,9 +36577,9 @@ function specToDiagnostic(spec, disallowTrailingRecursion) {
36586
36577
  return [Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];
36587
36578
  }
36588
36579
  }
36589
- function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames) {
36580
+ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExcludeSpecs: exclude }, path, useCaseSensitiveFileNames2) {
36590
36581
  const rawExcludeRegex = getRegularExpressionForWildcard(exclude, path, "exclude");
36591
- const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? "" : "i");
36582
+ const excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames2 ? "" : "i");
36592
36583
  const wildcardDirectories = {};
36593
36584
  if (include !== void 0) {
36594
36585
  const recursiveKeys = [];
@@ -36597,7 +36588,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu
36597
36588
  if (excludeRegex && excludeRegex.test(spec)) {
36598
36589
  continue;
36599
36590
  }
36600
- const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames);
36591
+ const match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2);
36601
36592
  if (match) {
36602
36593
  const { key, flags } = match;
36603
36594
  const existingFlags = wildcardDirectories[key];
@@ -36612,7 +36603,7 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu
36612
36603
  for (const key in wildcardDirectories) {
36613
36604
  if (hasProperty(wildcardDirectories, key)) {
36614
36605
  for (const recursiveKey of recursiveKeys) {
36615
- if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) {
36606
+ if (key !== recursiveKey && containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames2)) {
36616
36607
  delete wildcardDirectories[key];
36617
36608
  }
36618
36609
  }
@@ -36621,20 +36612,20 @@ function getWildcardDirectories({ validatedIncludeSpecs: include, validatedExclu
36621
36612
  }
36622
36613
  return wildcardDirectories;
36623
36614
  }
36624
- function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) {
36615
+ function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames2) {
36625
36616
  const match = wildcardDirectoryPattern.exec(spec);
36626
36617
  if (match) {
36627
36618
  const questionWildcardIndex = spec.indexOf("?");
36628
36619
  const starWildcardIndex = spec.indexOf("*");
36629
36620
  const lastDirectorySeperatorIndex = spec.lastIndexOf(directorySeparator);
36630
36621
  return {
36631
- key: useCaseSensitiveFileNames ? match[0] : toFileNameLowerCase(match[0]),
36622
+ key: useCaseSensitiveFileNames2 ? match[0] : toFileNameLowerCase(match[0]),
36632
36623
  flags: questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex || starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex ? 1 /* Recursive */ : 0 /* None */
36633
36624
  };
36634
36625
  }
36635
36626
  if (isImplicitGlob(spec.substring(spec.lastIndexOf(directorySeparator) + 1))) {
36636
36627
  return {
36637
- key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames ? spec : toFileNameLowerCase(spec)),
36628
+ key: removeTrailingDirectorySeparator(useCaseSensitiveFileNames2 ? spec : toFileNameLowerCase(spec)),
36638
36629
  flags: 1 /* Recursive */
36639
36630
  };
36640
36631
  }
@@ -36916,8 +36907,8 @@ function getDefaultTypeRoots(currentDirectory) {
36916
36907
  }
36917
36908
  var nodeModulesAtTypes = combinePaths("node_modules", "@types");
36918
36909
  function arePathsEqual(path1, path2, host) {
36919
- const useCaseSensitiveFileNames = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames;
36920
- return comparePaths(path1, path2, !useCaseSensitiveFileNames) === 0 /* EqualTo */;
36910
+ const useCaseSensitiveFileNames2 = typeof host.useCaseSensitiveFileNames === "function" ? host.useCaseSensitiveFileNames() : host.useCaseSensitiveFileNames;
36911
+ return comparePaths(path1, path2, !useCaseSensitiveFileNames2) === 0 /* EqualTo */;
36921
36912
  }
36922
36913
  function getOriginalAndResolvedFileName(fileName, host, traceEnabled) {
36923
36914
  const resolvedFileName = realPath(fileName, host, traceEnabled);
@@ -38312,6 +38303,9 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat
38312
38303
  }
38313
38304
  const trailingParts = parts.slice(nameParts.length);
38314
38305
  const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`;
38306
+ if (getAllowJSCompilerOption(state.compilerOptions) && !pathContainsNodeModules(directory)) {
38307
+ return loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference);
38308
+ }
38315
38309
  const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
38316
38310
  const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
38317
38311
  return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference);
@@ -38659,13 +38653,10 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
38659
38653
  function combineDirectoryPath(root, dir) {
38660
38654
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
38661
38655
  }
38662
- function useCaseSensitiveFileNames() {
38663
- return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();
38664
- }
38665
38656
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
38666
38657
  var _a, _b, _c, _d;
38667
- if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames()) : true)) {
38668
- const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames });
38658
+ if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && finalPath.indexOf("/node_modules/") === -1 && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
38659
+ const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
38669
38660
  const commonSourceDirGuesses = [];
38670
38661
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
38671
38662
  const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
@@ -38694,7 +38685,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
38694
38685
  for (const commonSourceDirGuess of commonSourceDirGuesses) {
38695
38686
  const candidateDirectories = getOutputDirectoriesForBaseDirectory(commonSourceDirGuess);
38696
38687
  for (const candidateDir of candidateDirectories) {
38697
- if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames())) {
38688
+ if (containsPath(candidateDir, finalPath, !useCaseSensitiveFileNames(state))) {
38698
38689
  const pathFragment = finalPath.slice(candidateDir.length + 1);
38699
38690
  const possibleInputBase = combinePaths(commonSourceDirGuess, pathFragment);
38700
38691
  const jsAndDtsExtensions = [".mjs" /* Mjs */, ".cjs" /* Cjs */, ".js" /* Js */, ".json" /* Json */, ".d.mts" /* Dmts */, ".d.cts" /* Dcts */, ".d.ts" /* Dts */];
@@ -38704,7 +38695,7 @@ function getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirec
38704
38695
  for (const possibleExt of inputExts) {
38705
38696
  if (!extensionIsOk(extensions, possibleExt))
38706
38697
  continue;
38707
- const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames());
38698
+ const possibleInputWithInputExtension = changeAnyExtension(possibleInputBase, possibleExt, ext, !useCaseSensitiveFileNames(state));
38708
38699
  if (state.host.fileExists(possibleInputWithInputExtension)) {
38709
38700
  return toSearchResult(withPackageId(scope, loadFileNameFromPackageJsonField(
38710
38701
  extensions,
@@ -39121,6 +39112,9 @@ function traceIfEnabled(state, diagnostic, ...args) {
39121
39112
  trace(state.host, diagnostic, ...args);
39122
39113
  }
39123
39114
  }
39115
+ function useCaseSensitiveFileNames(state) {
39116
+ return !state.host.useCaseSensitiveFileNames ? true : typeof state.host.useCaseSensitiveFileNames === "boolean" ? state.host.useCaseSensitiveFileNames : state.host.useCaseSensitiveFileNames();
39117
+ }
39124
39118
 
39125
39119
  // src/compiler/binder.ts
39126
39120
  function getModuleInstanceState(node, visited) {
@@ -39483,10 +39477,10 @@ function createBinder() {
39483
39477
  const decl = getNameOfDeclaration(declaration) || declaration;
39484
39478
  const diag3 = messageNeedsName ? createDiagnosticForNode2(decl, message, getDisplayName(declaration)) : createDiagnosticForNode2(decl, message);
39485
39479
  file.bindDiagnostics.push(
39486
- multipleDefaultExports ? addRelatedInfo(diag3, createDiagnosticForNode2(declarationName, index === 0 ? Diagnostics.Another_export_default_is_here_Colon : Diagnostics.and_here_Colon)) : diag3
39480
+ multipleDefaultExports ? addRelatedInfo(diag3, createDiagnosticForNode2(declarationName, index === 0 ? Diagnostics.Another_export_default_is_here : Diagnostics.and_here)) : diag3
39487
39481
  );
39488
39482
  if (multipleDefaultExports) {
39489
- relatedInformation.push(createDiagnosticForNode2(decl, Diagnostics.The_first_export_default_is_here_Colon));
39483
+ relatedInformation.push(createDiagnosticForNode2(decl, Diagnostics.The_first_export_default_is_here));
39490
39484
  }
39491
39485
  });
39492
39486
  const diag2 = messageNeedsName ? createDiagnosticForNode2(declarationName, message, getDisplayName(node)) : createDiagnosticForNode2(declarationName, message);
@@ -42538,7 +42532,9 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, hos
42538
42532
  for (const { ending, value } of candidates) {
42539
42533
  if (value.length >= prefix.length + suffix.length && startsWith(value, prefix) && endsWith(value, suffix) && validateEnding({ ending, value })) {
42540
42534
  const matchedStar = value.substring(prefix.length, value.length - suffix.length);
42541
- return pathIsRelative(matchedStar) ? void 0 : key.replace("*", matchedStar);
42535
+ if (!pathIsRelative(matchedStar)) {
42536
+ return key.replace("*", matchedStar);
42537
+ }
42542
42538
  }
42543
42539
  }
42544
42540
  } else if (some(candidates, (c) => c.ending !== 0 /* Minimal */ && pattern === c.value) || some(candidates, (c) => c.ending === 0 /* Minimal */ && pattern === c.value && validateEnding(c))) {
@@ -42610,7 +42606,7 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory,
42610
42606
  for (const key of getOwnKeys(exports)) {
42611
42607
  if (key === "default" || conditions.indexOf(key) >= 0 || isApplicableVersionedTypesKey(conditions, key)) {
42612
42608
  const subTarget = exports[key];
42613
- const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions);
42609
+ const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode);
42614
42610
  if (result) {
42615
42611
  return result;
42616
42612
  }
@@ -43767,7 +43763,7 @@ function createTypeChecker(host) {
43767
43763
  };
43768
43764
  var amalgamatedDuplicates;
43769
43765
  var reverseMappedCache = /* @__PURE__ */ new Map();
43770
- var inInferTypeForHomomorphicMappedType = false;
43766
+ var homomorphicMappedTypeInferenceStack = [];
43771
43767
  var ambientModulesCache;
43772
43768
  var patternAmbientModules;
43773
43769
  var patternAmbientModuleAugmentations;
@@ -44024,7 +44020,7 @@ function createTypeChecker(host) {
44024
44020
  if (deprecatedTag) {
44025
44021
  addRelatedInfo(
44026
44022
  diagnostic,
44027
- createDiagnosticForNode(deprecatedTag, Diagnostics.The_declaration_was_marked_as_deprecated_here_Colon)
44023
+ createDiagnosticForNode(deprecatedTag, Diagnostics.The_declaration_was_marked_as_deprecated_here)
44028
44024
  );
44029
44025
  }
44030
44026
  suggestionDiagnostics.add(diagnostic);
@@ -44219,8 +44215,8 @@ function createTypeChecker(host) {
44219
44215
  if (adjustedNode === errorNode)
44220
44216
  continue;
44221
44217
  err.relatedInformation = err.relatedInformation || [];
44222
- const leadingMessage = createDiagnosticForNode(adjustedNode, Diagnostics._0_was_also_declared_here_Colon, symbolName2);
44223
- const followOnMessage = createDiagnosticForNode(adjustedNode, Diagnostics.and_here_Colon);
44218
+ const leadingMessage = createDiagnosticForNode(adjustedNode, Diagnostics._0_was_also_declared_here, symbolName2);
44219
+ const followOnMessage = createDiagnosticForNode(adjustedNode, Diagnostics.and_here);
44224
44220
  if (length(err.relatedInformation) >= 5 || some(err.relatedInformation, (r) => compareDiagnostics(r, followOnMessage) === 0 /* EqualTo */ || compareDiagnostics(r, leadingMessage) === 0 /* EqualTo */))
44225
44221
  continue;
44226
44222
  addRelatedInfo(err, !length(err.relatedInformation) ? leadingMessage : followOnMessage);
@@ -44831,7 +44827,7 @@ function createTypeChecker(host) {
44831
44827
  if (suggestion.valueDeclaration) {
44832
44828
  addRelatedInfo(
44833
44829
  diagnostic,
44834
- createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here_Colon, suggestionName)
44830
+ createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName)
44835
44831
  );
44836
44832
  }
44837
44833
  }
@@ -44893,7 +44889,7 @@ function createTypeChecker(host) {
44893
44889
  diagnostic,
44894
44890
  createDiagnosticForNode(
44895
44891
  typeOnlyDeclaration,
44896
- typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here_Colon : Diagnostics._0_was_imported_here_Colon,
44892
+ typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ || typeOnlyDeclaration.kind === 280 /* NamespaceExport */ ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here,
44897
44893
  unescapedName
44898
44894
  )
44899
44895
  );
@@ -45030,7 +45026,7 @@ function createTypeChecker(host) {
45030
45026
  return true;
45031
45027
  }
45032
45028
  }
45033
- error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_Colon, unescapeLeadingUnderscores(name));
45029
+ error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, unescapeLeadingUnderscores(name));
45034
45030
  return true;
45035
45031
  }
45036
45032
  }
@@ -45072,7 +45068,7 @@ function createTypeChecker(host) {
45072
45068
  if (isExtendedByInterface(errorLocation)) {
45073
45069
  error(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, unescapeLeadingUnderscores(name));
45074
45070
  } else {
45075
- error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Colon, unescapeLeadingUnderscores(name));
45071
+ error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, unescapeLeadingUnderscores(name));
45076
45072
  }
45077
45073
  return true;
45078
45074
  }
@@ -45095,7 +45091,7 @@ function createTypeChecker(host) {
45095
45091
  } else if (maybeMappedType(errorLocation, symbol)) {
45096
45092
  error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === "K" ? "P" : "K");
45097
45093
  } else {
45098
- error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Colon, rawName);
45094
+ error(errorLocation, Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName);
45099
45095
  }
45100
45096
  return true;
45101
45097
  }
@@ -45201,7 +45197,7 @@ function createTypeChecker(host) {
45201
45197
  if (diagnosticMessage) {
45202
45198
  addRelatedInfo(
45203
45199
  diagnosticMessage,
45204
- createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here_Colon, declarationName)
45200
+ createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName)
45205
45201
  );
45206
45202
  }
45207
45203
  }
@@ -45269,7 +45265,7 @@ function createTypeChecker(host) {
45269
45265
  const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfDeclaration(node));
45270
45266
  const isExport = typeOnlyDeclaration.kind === 281 /* ExportSpecifier */ || typeOnlyDeclaration.kind === 278 /* ExportDeclaration */;
45271
45267
  const message = isExport ? Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type : Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type;
45272
- const relatedMessage = isExport ? Diagnostics._0_was_exported_here_Colon : Diagnostics._0_was_imported_here_Colon;
45268
+ const relatedMessage = isExport ? Diagnostics._0_was_exported_here : Diagnostics._0_was_imported_here;
45273
45269
  const name = typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? "*" : unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText);
45274
45270
  addRelatedInfo(error(node.moduleReference, message), createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name));
45275
45271
  }
@@ -45591,7 +45587,7 @@ function createTypeChecker(host) {
45591
45587
  if (suggestion.valueDeclaration) {
45592
45588
  addRelatedInfo(
45593
45589
  diagnostic,
45594
- createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here_Colon, suggestionName)
45590
+ createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestionName)
45595
45591
  );
45596
45592
  }
45597
45593
  } else {
@@ -45621,7 +45617,7 @@ function createTypeChecker(host) {
45621
45617
  if (localSymbol.declarations) {
45622
45618
  addRelatedInfo(
45623
45619
  diagnostic,
45624
- ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here_Colon : Diagnostics.and_here_Colon, declarationName))
45620
+ ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName))
45625
45621
  );
45626
45622
  }
45627
45623
  }
@@ -48358,6 +48354,7 @@ function createTypeChecker(host) {
48358
48354
  );
48359
48355
  }
48360
48356
  function signatureToSignatureDeclarationHelper(signature, kind, context, options) {
48357
+ var _a;
48361
48358
  const suppressAny = context.flags & 256 /* SuppressAnyReturnType */;
48362
48359
  if (suppressAny)
48363
48360
  context.flags &= ~256 /* SuppressAnyReturnType */;
@@ -48493,6 +48490,20 @@ function createTypeChecker(host) {
48493
48490
  if (typeArguments) {
48494
48491
  node.typeArguments = factory.createNodeArray(typeArguments);
48495
48492
  }
48493
+ if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) {
48494
+ const comment = getTextOfNode(
48495
+ signature.declaration.parent.parent,
48496
+ /*includeTrivia*/
48497
+ true
48498
+ ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n");
48499
+ addSyntheticLeadingComment(
48500
+ node,
48501
+ 3 /* MultiLineCommentTrivia */,
48502
+ comment,
48503
+ /*hasTrailingNewLine*/
48504
+ true
48505
+ );
48506
+ }
48496
48507
  cleanup == null ? void 0 : cleanup();
48497
48508
  return node;
48498
48509
  }
@@ -51666,11 +51677,11 @@ function createTypeChecker(host) {
51666
51677
  const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration;
51667
51678
  addRelatedInfo(
51668
51679
  error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName),
51669
- createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here_Colon, unescapedName)
51680
+ createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName)
51670
51681
  );
51671
51682
  addRelatedInfo(
51672
51683
  error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName),
51673
- createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here_Colon, unescapedName)
51684
+ createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName)
51674
51685
  );
51675
51686
  }
51676
51687
  const union = createSymbol(s.flags | exportedMember.flags, name);
@@ -52905,7 +52916,7 @@ function createTypeChecker(host) {
52905
52916
  if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {
52906
52917
  const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;
52907
52918
  const name = !(type.flags & 8192 /* UniqueESSymbol */) && unescapeLeadingUnderscores(memberName) || declarationNameToString(declName);
52908
- forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here_Colon, name));
52919
+ forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));
52909
52920
  error(declName || decl, Diagnostics.Duplicate_property_0, name);
52910
52921
  lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */);
52911
52922
  }
@@ -57817,7 +57828,7 @@ function createTypeChecker(host) {
57817
57828
  if (moduleSymbol.flags & targetMeaning) {
57818
57829
  links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning);
57819
57830
  } else {
57820
- const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_Colon : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;
57831
+ const errorMessage = targetMeaning === 111551 /* Value */ ? Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here : Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;
57821
57832
  error(node, errorMessage, node.argument.literal.text);
57822
57833
  links.resolvedSymbol = unknownSymbol;
57823
57834
  links.resolvedType = errorType;
@@ -61578,7 +61589,7 @@ function createTypeChecker(host) {
61578
61589
  );
61579
61590
  reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2));
61580
61591
  if (length(unmatchedProperty.declarations)) {
61581
- associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here_Colon, propName));
61592
+ associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName));
61582
61593
  }
61583
61594
  if (shouldSkipElaboration && errorInfo) {
61584
61595
  overrideNextErrorInfo++;
@@ -63156,17 +63167,18 @@ function createTypeChecker(host) {
63156
63167
  );
63157
63168
  }
63158
63169
  function inferTypeForHomomorphicMappedType(source, target, constraint) {
63159
- if (inInferTypeForHomomorphicMappedType) {
63160
- return void 0;
63170
+ const cacheKey = source.id + "," + target.id + "," + constraint.id;
63171
+ if (reverseMappedCache.has(cacheKey)) {
63172
+ return reverseMappedCache.get(cacheKey);
63161
63173
  }
63162
- const key = source.id + "," + target.id + "," + constraint.id;
63163
- if (reverseMappedCache.has(key)) {
63164
- return reverseMappedCache.get(key);
63174
+ const recursionKey = source.id + "," + (target.target || target).id;
63175
+ if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
63176
+ return void 0;
63165
63177
  }
63166
- inInferTypeForHomomorphicMappedType = true;
63178
+ homomorphicMappedTypeInferenceStack.push(recursionKey);
63167
63179
  const type = createReverseMappedType(source, target, constraint);
63168
- inInferTypeForHomomorphicMappedType = false;
63169
- reverseMappedCache.set(key, type);
63180
+ homomorphicMappedTypeInferenceStack.pop();
63181
+ reverseMappedCache.set(cacheKey, type);
63170
63182
  return type;
63171
63183
  }
63172
63184
  function isPartiallyInferableType(type) {
@@ -69353,7 +69365,7 @@ function createTypeChecker(host) {
69353
69365
  if (diagnosticMessage) {
69354
69366
  addRelatedInfo(
69355
69367
  diagnosticMessage,
69356
- createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here_Colon, declarationName)
69368
+ createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here, declarationName)
69357
69369
  );
69358
69370
  }
69359
69371
  }
@@ -69440,7 +69452,7 @@ function createTypeChecker(host) {
69440
69452
  const suggestedName = symbolName(suggestion);
69441
69453
  const message = isUncheckedJS ? Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;
69442
69454
  errorInfo = chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName);
69443
- relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here_Colon, suggestedName);
69455
+ relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestedName);
69444
69456
  } else {
69445
69457
  const diagnostic = containerSeemsToBeEmptyDomElement(containingType) ? Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom : Diagnostics.Property_0_does_not_exist_on_type_1;
69446
69458
  errorInfo = chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container);
@@ -70157,7 +70169,7 @@ function createTypeChecker(host) {
70157
70169
  const diag2 = createDiagnosticForNode(node.tagName, Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, entityNameToString(node.tagName), absoluteMinArgCount, entityNameToString(factory2), maxParamCount);
70158
70170
  const tagNameDeclaration = (_a = getSymbolAtLocation(node.tagName)) == null ? void 0 : _a.valueDeclaration;
70159
70171
  if (tagNameDeclaration) {
70160
- addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here_Colon, entityNameToString(node.tagName)));
70172
+ addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(node.tagName)));
70161
70173
  }
70162
70174
  if (errorOutputContainer && errorOutputContainer.skipLogging) {
70163
70175
  (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);
@@ -70609,7 +70621,7 @@ function createTypeChecker(host) {
70609
70621
  if (diags) {
70610
70622
  for (const d of diags) {
70611
70623
  if (last2.declaration && candidatesForArgumentError.length > 3) {
70612
- addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here_Colon));
70624
+ addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here));
70613
70625
  }
70614
70626
  addImplementationSuccessElaboration(last2, d);
70615
70627
  diagnostics.add(d);
@@ -75749,7 +75761,7 @@ function createTypeChecker(host) {
75749
75761
  const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration;
75750
75762
  addRelatedInfo(
75751
75763
  error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),
75752
- createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here_Colon)
75764
+ createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here)
75753
75765
  );
75754
75766
  break;
75755
75767
  }
@@ -76215,7 +76227,7 @@ function createTypeChecker(host) {
76215
76227
  const diag2 = error(typeName, Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled);
76216
76228
  const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration);
76217
76229
  if (aliasDeclaration) {
76218
- addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here_Colon, idText(rootName)));
76230
+ addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName)));
76219
76231
  }
76220
76232
  }
76221
76233
  }
@@ -77159,7 +77171,7 @@ function createTypeChecker(host) {
77159
77171
  if (firstDeclaration) {
77160
77172
  addRelatedInfo(
77161
77173
  err,
77162
- createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here_Colon, declName)
77174
+ createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here, declName)
77163
77175
  );
77164
77176
  }
77165
77177
  }
@@ -78269,7 +78281,7 @@ function createTypeChecker(host) {
78269
78281
  typeToString(info.type)
78270
78282
  );
78271
78283
  if (propDeclaration && errorNode !== propDeclaration) {
78272
- addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here_Colon, symbolToString(prop)));
78284
+ addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop)));
78273
78285
  }
78274
78286
  diagnostics.add(diagnostic);
78275
78287
  }
@@ -82604,7 +82616,7 @@ function createTypeChecker(host) {
82604
82616
  createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here)
82605
82617
  );
82606
82618
  });
82607
- const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here_Colon) : createDiagnosticForNode(parameter, Diagnostics.and_here_Colon));
82619
+ const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here));
82608
82620
  addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2);
82609
82621
  return true;
82610
82622
  }
@@ -113995,14 +114007,14 @@ function getEmitListItem(emit, parenthesizerRule) {
113995
114007
  }
113996
114008
 
113997
114009
  // src/compiler/watchUtilities.ts
113998
- function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) {
114010
+ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) {
113999
114011
  if (!host.getDirectories || !host.readDirectory) {
114000
114012
  return void 0;
114001
114013
  }
114002
114014
  const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
114003
- const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
114015
+ const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
114004
114016
  return {
114005
- useCaseSensitiveFileNames,
114017
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
114006
114018
  fileExists,
114007
114019
  readFile: (path, encoding) => host.readFile(path, encoding),
114008
114020
  directoryExists: host.directoryExists && directoryExists,
@@ -114124,7 +114136,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi
114124
114136
  const rootResult = tryReadDirectory(rootDir, rootDirPath);
114125
114137
  let rootSymLinkResult;
114126
114138
  if (rootResult !== void 0) {
114127
- return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
114139
+ return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath);
114128
114140
  }
114129
114141
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
114130
114142
  function getFileSystemEntries(dir) {
@@ -114308,7 +114320,7 @@ function isIgnoredFileFromWildCardWatching({
114308
114320
  program,
114309
114321
  extraFileExtensions,
114310
114322
  currentDirectory,
114311
- useCaseSensitiveFileNames,
114323
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
114312
114324
  writeLog,
114313
114325
  toPath: toPath3
114314
114326
  }) {
@@ -114324,7 +114336,7 @@ function isIgnoredFileFromWildCardWatching({
114324
114336
  writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
114325
114337
  return true;
114326
114338
  }
114327
- if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
114339
+ if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) {
114328
114340
  writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`);
114329
114341
  return true;
114330
114342
  }
@@ -114381,7 +114393,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {
114381
114393
  function createExcludeHandlingAddWatch(key) {
114382
114394
  return (file, cb, flags, options, detailInfo1, detailInfo2) => {
114383
114395
  var _a;
114384
- return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call(
114396
+ return !matchesExclude(file, key === "watchFile" ? options == null ? void 0 : options.excludeFiles : options == null ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames2(), ((_a = host.getCurrentDirectory) == null ? void 0 : _a.call(host)) || "") ? factory2[key].call(
114385
114397
  /*thisArgs*/
114386
114398
  void 0,
114387
114399
  file,
@@ -114393,7 +114405,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {
114393
114405
  ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2);
114394
114406
  };
114395
114407
  }
114396
- function useCaseSensitiveFileNames() {
114408
+ function useCaseSensitiveFileNames2() {
114397
114409
  return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames();
114398
114410
  }
114399
114411
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
@@ -114711,7 +114723,7 @@ var gutterSeparator = " ";
114711
114723
  var resetEscapeSequence = "\x1B[0m";
114712
114724
  var ellipsis = "...";
114713
114725
  var halfIndent = " ";
114714
- var bullet = "\u25CF ";
114726
+ var indent = " ";
114715
114727
  function getCategoryFormat(category) {
114716
114728
  switch (category) {
114717
114729
  case 1 /* Error */:
@@ -114727,49 +114739,39 @@ function getCategoryFormat(category) {
114727
114739
  function formatColorAndReset(text, formatStyle) {
114728
114740
  return formatStyle + text + resetEscapeSequence;
114729
114741
  }
114730
- function formatCodeSpan(file, start, length2, indent, underlineColor, host) {
114742
+ function formatCodeSpan(file, start, length2, indent2, squiggleColor, host) {
114731
114743
  const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start);
114732
114744
  const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file, start + length2);
114733
114745
  const lastLineInFile = getLineAndCharacterOfPosition(file, file.text.length).line;
114734
- const gutterWidth = 1;
114735
114746
  const hasMoreThanFiveLines = lastLine - firstLine >= 4;
114736
- let whitespaceToTrim = Number.MAX_VALUE;
114737
- for (let i = firstLine; i <= lastLine; i++) {
114738
- if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {
114739
- i = lastLine - 1;
114740
- }
114741
- const lineStart = getPositionOfLineAndCharacter(file, i, 0);
114742
- const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;
114743
- const lineContent = file.text.slice(lineStart, lineEnd);
114744
- whitespaceToTrim = Math.min(whitespaceToTrim, startWhitespaceCount(lineContent));
114747
+ let gutterWidth = (lastLine + 1 + "").length;
114748
+ if (hasMoreThanFiveLines) {
114749
+ gutterWidth = Math.max(ellipsis.length, gutterWidth);
114745
114750
  }
114746
114751
  let context = "";
114747
114752
  for (let i = firstLine; i <= lastLine; i++) {
114748
114753
  context += host.getNewLine();
114749
114754
  if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {
114750
- context += indent + formatColorAndReset(padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
114755
+ context += indent2 + formatColorAndReset(padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
114751
114756
  i = lastLine - 1;
114752
114757
  }
114753
114758
  const lineStart = getPositionOfLineAndCharacter(file, i, 0);
114754
114759
  const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;
114755
114760
  let lineContent = file.text.slice(lineStart, lineEnd);
114756
- lineContent = lineContent.slice(whitespaceToTrim);
114757
114761
  lineContent = trimStringEnd(lineContent);
114758
114762
  lineContent = lineContent.replace(/\t/g, " ");
114759
- const gutterLine = "|";
114760
- context += indent + padLeft(gutterLine, gutterWidth) + gutterSeparator;
114763
+ context += indent2 + formatColorAndReset(padLeft(i + 1 + "", gutterWidth), gutterStyleSequence) + gutterSeparator;
114761
114764
  context += lineContent + host.getNewLine();
114762
- context += indent + padLeft("", gutterWidth) + gutterSeparator;
114763
- context += underlineColor;
114765
+ context += indent2 + formatColorAndReset(padLeft("", gutterWidth), gutterStyleSequence) + gutterSeparator;
114766
+ context += squiggleColor;
114764
114767
  if (i === firstLine) {
114765
114768
  const lastCharForLine = i === lastLine ? lastLineChar : void 0;
114766
- context += lineContent.slice(0, firstLineChar - whitespaceToTrim).replace(/\S/g, " ");
114767
- const amendedLastChar = lastCharForLine ? lastCharForLine - whitespaceToTrim : void 0;
114768
- context += lineContent.slice(firstLineChar - whitespaceToTrim, amendedLastChar).replace(/./g, "\u2594");
114769
+ context += lineContent.slice(0, firstLineChar).replace(/\S/g, " ");
114770
+ context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~");
114769
114771
  } else if (i === lastLine) {
114770
- context += lineContent.slice(0, lastLineChar).replace(/./g, "\u2594");
114772
+ context += lineContent.slice(0, lastLineChar).replace(/./g, "~");
114771
114773
  } else {
114772
- context += lineContent.replace(/./g, "\u2594");
114774
+ context += lineContent.replace(/./g, "~");
114773
114775
  }
114774
114776
  context += resetEscapeSequence;
114775
114777
  }
@@ -114787,87 +114789,54 @@ function formatLocation(file, start, host, color = formatColorAndReset) {
114787
114789
  return output;
114788
114790
  }
114789
114791
  function formatDiagnosticsWithColorAndContext(diagnostics, host) {
114790
- var _a, _b;
114791
- const terminalWidth = ((_b = (_a = sys).getWidthOfTerminal) == null ? void 0 : _b.call(_a)) ?? 0;
114792
- const indent = terminalWidth < 60 ? "" : halfIndent;
114793
114792
  let output = "";
114794
114793
  for (const diagnostic of diagnostics) {
114795
- const diagnosticCode = "TS" + diagnostic.code;
114796
- const diagnosticCatName = diagnosticCategoryName(
114797
- diagnostic,
114798
- /*lowerCase*/
114799
- false
114800
- );
114801
- const diagnosticCatNameColored = formatColorAndReset(diagnosticCatName, getCategoryFormat(diagnostic.category));
114802
- if (diagnostic.file && diagnostic.code !== Diagnostics.File_appears_to_be_binary.code) {
114794
+ if (diagnostic.file) {
114803
114795
  const { file, start } = diagnostic;
114804
- const location = formatLocation(file, start, host);
114805
- const locationLength = location.replace(/\u001b[[0-9]+m/g, "").length;
114806
- const codeLength = diagnosticCode.length;
114807
- output += formatColorAndReset(bullet, getCategoryFormat(diagnostic.category)) + location;
114808
- const defaultPad = codeLength + 1;
114809
- let padWidth = terminalWidth < 60 ? defaultPad : terminalWidth - (bullet.length + locationLength + codeLength + diagnosticCatName.length + 2);
114810
- if (padWidth < diagnosticCode.length)
114811
- padWidth = defaultPad;
114812
- output += padLeft(diagnosticCatNameColored, padWidth + (diagnosticCatNameColored.length - diagnosticCatName.length));
114813
- output += " " + diagnosticCode;
114814
- output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, indent, getCategoryFormat(diagnostic.category), host);
114796
+ output += formatLocation(file, start, host);
114797
+ output += " - ";
114798
+ }
114799
+ output += formatColorAndReset(diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
114800
+ output += formatColorAndReset(` TS${diagnostic.code}: `, "\x1B[90m" /* Grey */);
114801
+ output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
114802
+ if (diagnostic.file && diagnostic.code !== Diagnostics.File_appears_to_be_binary.code) {
114815
114803
  output += host.getNewLine();
114816
- } else {
114817
- output += formatColorAndReset(bullet, getCategoryFormat(diagnostic.category)) + " " + diagnosticCatNameColored + " " + diagnosticCode;
114804
+ output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, "", getCategoryFormat(diagnostic.category), host);
114818
114805
  }
114819
- let diagnosticText = flattenDiagnosticMessageText(
114820
- diagnostic.messageText,
114821
- host.getNewLine(),
114822
- 0,
114823
- /*pretty*/
114824
- true
114825
- );
114826
- diagnosticText = diagnosticText.split(host.getNewLine()).map((text) => indent + text).join(host.getNewLine());
114827
- output += diagnosticText;
114828
- output += host.getNewLine();
114829
114806
  if (diagnostic.relatedInformation) {
114830
114807
  output += host.getNewLine();
114831
114808
  for (const { file, start, length: length2, messageText } of diagnostic.relatedInformation) {
114832
- output += indent + trimStringStart(flattenDiagnosticMessageText(
114833
- messageText,
114834
- host.getNewLine(),
114835
- 0,
114836
- /*pretty*/
114837
- true
114838
- ));
114839
114809
  if (file) {
114840
- output += " " + formatLocation(file, start, host);
114841
114810
  output += host.getNewLine();
114842
- output += formatCodeSpan(file, start, length2, indent + " ", "\x1B[96m" /* Cyan */, host);
114811
+ output += halfIndent + formatLocation(file, start, host);
114812
+ output += formatCodeSpan(file, start, length2, indent, "\x1B[96m" /* Cyan */, host);
114843
114813
  }
114814
+ output += host.getNewLine();
114815
+ output += indent + flattenDiagnosticMessageText(messageText, host.getNewLine());
114844
114816
  }
114845
114817
  }
114818
+ output += host.getNewLine();
114846
114819
  }
114847
114820
  return output;
114848
114821
  }
114849
- function flattenDiagnosticMessageText(diag2, newLine, indent = 0, pretty = false) {
114822
+ function flattenDiagnosticMessageText(diag2, newLine, indent2 = 0) {
114850
114823
  if (isString(diag2)) {
114851
114824
  return diag2;
114852
114825
  } else if (diag2 === void 0) {
114853
114826
  return "";
114854
114827
  }
114855
114828
  let result = "";
114856
- if (indent) {
114829
+ if (indent2) {
114857
114830
  result += newLine;
114858
- const indentsToReplaceWithNewLines = pretty ? 1 : 0;
114859
- if (indent > indentsToReplaceWithNewLines) {
114860
- for (let i = indentsToReplaceWithNewLines; i < indent; i++) {
114861
- result += " ";
114862
- }
114863
- } else
114864
- result += newLine;
114831
+ for (let i = 0; i < indent2; i++) {
114832
+ result += " ";
114833
+ }
114865
114834
  }
114866
114835
  result += diag2.messageText;
114867
- indent++;
114836
+ indent2++;
114868
114837
  if (diag2.next) {
114869
114838
  for (const kid of diag2.next) {
114870
- result += flattenDiagnosticMessageText(kid, newLine, indent);
114839
+ result += flattenDiagnosticMessageText(kid, newLine, indent2);
114871
114840
  }
114872
114841
  }
114873
114842
  return result;
@@ -115171,8 +115140,8 @@ var plainJSErrors = /* @__PURE__ */ new Set([
115171
115140
  // binder errors
115172
115141
  Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
115173
115142
  Diagnostics.A_module_cannot_have_multiple_default_exports.code,
115174
- Diagnostics.Another_export_default_is_here_Colon.code,
115175
- Diagnostics.The_first_export_default_is_here_Colon.code,
115143
+ Diagnostics.Another_export_default_is_here.code,
115144
+ Diagnostics.The_first_export_default_is_here.code,
115176
115145
  Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,
115177
115146
  Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,
115178
115147
  Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,
@@ -117969,16 +117938,16 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
117969
117938
  let message2;
117970
117939
  switch (reason.kind) {
117971
117940
  case 3 /* Import */:
117972
- message2 = Diagnostics.File_is_included_via_import_here_Colon;
117941
+ message2 = Diagnostics.File_is_included_via_import_here;
117973
117942
  break;
117974
117943
  case 4 /* ReferenceFile */:
117975
- message2 = Diagnostics.File_is_included_via_reference_here_Colon;
117944
+ message2 = Diagnostics.File_is_included_via_reference_here;
117976
117945
  break;
117977
117946
  case 5 /* TypeReferenceDirective */:
117978
- message2 = Diagnostics.File_is_included_via_type_library_reference_here_Colon;
117947
+ message2 = Diagnostics.File_is_included_via_type_library_reference_here;
117979
117948
  break;
117980
117949
  case 7 /* LibReferenceDirective */:
117981
- message2 = Diagnostics.File_is_included_via_library_reference_here_Colon;
117950
+ message2 = Diagnostics.File_is_included_via_library_reference_here;
117982
117951
  break;
117983
117952
  default:
117984
117953
  Debug.assertNever(reason);
@@ -118002,14 +117971,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118002
117971
  const matchedByFiles = getMatchedFileSpec(program, fileName);
118003
117972
  if (matchedByFiles) {
118004
117973
  configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
118005
- message = Diagnostics.File_is_matched_by_files_list_specified_here_Colon;
117974
+ message = Diagnostics.File_is_matched_by_files_list_specified_here;
118006
117975
  break;
118007
117976
  }
118008
117977
  const matchedByInclude = getMatchedIncludeSpec(program, fileName);
118009
117978
  if (!matchedByInclude || !isString(matchedByInclude))
118010
117979
  return void 0;
118011
117980
  configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
118012
- message = Diagnostics.File_is_matched_by_include_pattern_specified_here_Colon;
117981
+ message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
118013
117982
  break;
118014
117983
  case 1 /* SourceFromProjectReference */:
118015
117984
  case 2 /* OutputFromProjectReference */:
@@ -118030,23 +117999,23 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118030
117999
  return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
118031
118000
  sourceFile,
118032
118001
  referencesSyntax.elements[index],
118033
- reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here_Colon : Diagnostics.File_is_source_from_referenced_project_specified_here_Colon
118002
+ reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
118034
118003
  ) : void 0;
118035
118004
  case 8 /* AutomaticTypeDirectiveFile */:
118036
118005
  if (!options.types)
118037
118006
  return void 0;
118038
118007
  configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
118039
- message = Diagnostics.File_is_entry_point_of_type_library_specified_here_Colon;
118008
+ message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
118040
118009
  break;
118041
118010
  case 6 /* LibFile */:
118042
118011
  if (reason.index !== void 0) {
118043
118012
  configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]);
118044
- message = Diagnostics.File_is_library_specified_here_Colon;
118013
+ message = Diagnostics.File_is_library_specified_here;
118045
118014
  break;
118046
118015
  }
118047
118016
  const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : void 0);
118048
118017
  configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
118049
- message = Diagnostics.File_is_default_library_for_target_specified_here_Colon;
118018
+ message = Diagnostics.File_is_default_library_for_target_specified_here;
118050
118019
  break;
118051
118020
  default:
118052
118021
  Debug.assertNever(reason);
@@ -118451,6 +118420,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host
118451
118420
  return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
118452
118421
  },
118453
118422
  readFile: (f) => directoryStructureHost.readFile(f),
118423
+ directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
118424
+ getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
118425
+ realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
118454
118426
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
118455
118427
  getCurrentDirectory: () => host.getCurrentDirectory(),
118456
118428
  onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
@@ -121455,12 +121427,12 @@ function getMatchedIncludeSpec(program, fileName) {
121455
121427
  return true;
121456
121428
  const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */);
121457
121429
  const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
121458
- const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
121430
+ const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames();
121459
121431
  return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => {
121460
121432
  if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */))
121461
121433
  return false;
121462
121434
  const pattern = getPatternFromSpec(includeSpec, basePath, "files");
121463
- return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName);
121435
+ return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName);
121464
121436
  });
121465
121437
  }
121466
121438
  function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) {
@@ -121689,7 +121661,7 @@ function createWatchFactory(host, options) {
121689
121661
  return result;
121690
121662
  }
121691
121663
  function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) {
121692
- const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
121664
+ const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames();
121693
121665
  const compilerHost = {
121694
121666
  getSourceFile: createGetSourceFile(
121695
121667
  (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding),
@@ -121705,8 +121677,8 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt
121705
121677
  (path) => host.directoryExists(path)
121706
121678
  ),
121707
121679
  getCurrentDirectory: memoize(() => host.getCurrentDirectory()),
121708
- useCaseSensitiveFileNames: () => useCaseSensitiveFileNames,
121709
- getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames),
121680
+ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2,
121681
+ getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2),
121710
121682
  getNewLine: () => getNewLineCharacter(getCompilerOptions()),
121711
121683
  fileExists: (f) => host.fileExists(f),
121712
121684
  readFile: (f) => host.readFile(f),
@@ -121921,7 +121893,7 @@ function createWatchProgram(host) {
121921
121893
  const sourceFilesCache = /* @__PURE__ */ new Map();
121922
121894
  let missingFilePathsRequestedForRelease;
121923
121895
  let hasChangedCompilerOptions = false;
121924
- const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
121896
+ const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames();
121925
121897
  const currentDirectory = host.getCurrentDirectory();
121926
121898
  const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host;
121927
121899
  let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host;
@@ -121929,7 +121901,7 @@ function createWatchProgram(host) {
121929
121901
  let configFileParsingDiagnostics;
121930
121902
  let canConfigFileJsonReportNoInputFiles = false;
121931
121903
  let hasChangedConfigFileParsingErrors = false;
121932
- const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames);
121904
+ const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2);
121933
121905
  const directoryStructureHost = cachedDirectoryStructureHost || host;
121934
121906
  const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost);
121935
121907
  let newLine = updateNewLine();
@@ -121947,8 +121919,8 @@ function createWatchProgram(host) {
121947
121919
  Debug.assert(compilerOptions);
121948
121920
  Debug.assert(rootFileNames);
121949
121921
  const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions);
121950
- const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
121951
- writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`);
121922
+ const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
121923
+ writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`);
121952
121924
  let configFileWatcher;
121953
121925
  if (configFileName) {
121954
121926
  configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile);
@@ -122454,7 +122426,7 @@ function createWatchProgram(host) {
122454
122426
  options: compilerOptions,
122455
122427
  program: getCurrentBuilderProgram() || rootFileNames,
122456
122428
  currentDirectory,
122457
- useCaseSensitiveFileNames,
122429
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
122458
122430
  writeLog,
122459
122431
  toPath: toPath3
122460
122432
  }))
@@ -122544,7 +122516,7 @@ function createWatchProgram(host) {
122544
122516
  options: config.parsedCommandLine.options,
122545
122517
  program: config.parsedCommandLine.fileNames,
122546
122518
  currentDirectory,
122547
- useCaseSensitiveFileNames,
122519
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
122548
122520
  writeLog,
122549
122521
  toPath: toPath3
122550
122522
  }))