@typescript-deploys/pr-build 5.2.0-pr-54838-4 → 5.2.0-pr-54935-7

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.20230709`;
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
  }
@@ -48188,7 +48184,7 @@ function createTypeChecker(host) {
48188
48184
  return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
48189
48185
  }
48190
48186
  function addPropertyToElementList(propertySymbol, context, typeElements) {
48191
- var _a;
48187
+ var _a, _b;
48192
48188
  const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
48193
48189
  const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
48194
48190
  const saveEnclosingDeclaration = context.enclosingDeclaration;
@@ -48238,17 +48234,54 @@ function createTypeChecker(host) {
48238
48234
  context.reverseMappedStack.pop();
48239
48235
  }
48240
48236
  }
48241
- const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
48242
- if (modifiers) {
48243
- context.approximateLength += 9;
48237
+ if (propertySymbol.flags & 98304 /* Accessor */) {
48238
+ const modifierFlags = getDeclarationModifierFlagsFromSymbol(propertySymbol);
48239
+ const flags = modifierFlags & ~(512 /* Async */ | 32 /* Static */ | 128 /* Accessor */);
48240
+ if (propertySymbol.flags & 32768 /* GetAccessor */) {
48241
+ const getAccessorSignature = factory.createGetAccessorDeclaration(
48242
+ factory.createModifiersFromModifierFlags(flags),
48243
+ propertyName,
48244
+ [],
48245
+ propertyTypeNode,
48246
+ /*body*/
48247
+ void 0
48248
+ );
48249
+ typeElements.push(preserveCommentsOn(getAccessorSignature));
48250
+ }
48251
+ if (propertySymbol.flags & 65536 /* SetAccessor */) {
48252
+ const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
48253
+ const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
48254
+ const setAccessorSignature = factory.createSetAccessorDeclaration(
48255
+ factory.createModifiersFromModifierFlags(flags),
48256
+ propertyName,
48257
+ [factory.createParameterDeclaration(
48258
+ /*modifiers*/
48259
+ void 0,
48260
+ /*dotDotDotToken*/
48261
+ void 0,
48262
+ parameterName,
48263
+ /*questionToken*/
48264
+ void 0,
48265
+ propertyTypeNode
48266
+ )],
48267
+ /*body*/
48268
+ void 0
48269
+ );
48270
+ typeElements.push(preserveCommentsOn(setAccessorSignature));
48271
+ }
48272
+ } else {
48273
+ const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
48274
+ if (modifiers) {
48275
+ context.approximateLength += 9;
48276
+ }
48277
+ const propertySignature = factory.createPropertySignature(
48278
+ modifiers,
48279
+ propertyName,
48280
+ optionalToken,
48281
+ propertyTypeNode
48282
+ );
48283
+ typeElements.push(preserveCommentsOn(propertySignature));
48244
48284
  }
48245
- const propertySignature = factory.createPropertySignature(
48246
- modifiers,
48247
- propertyName,
48248
- optionalToken,
48249
- propertyTypeNode
48250
- );
48251
- typeElements.push(preserveCommentsOn(propertySignature));
48252
48285
  function preserveCommentsOn(node) {
48253
48286
  var _a2;
48254
48287
  if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
@@ -48358,6 +48391,7 @@ function createTypeChecker(host) {
48358
48391
  );
48359
48392
  }
48360
48393
  function signatureToSignatureDeclarationHelper(signature, kind, context, options) {
48394
+ var _a;
48361
48395
  const suppressAny = context.flags & 256 /* SuppressAnyReturnType */;
48362
48396
  if (suppressAny)
48363
48397
  context.flags &= ~256 /* SuppressAnyReturnType */;
@@ -48493,6 +48527,20 @@ function createTypeChecker(host) {
48493
48527
  if (typeArguments) {
48494
48528
  node.typeArguments = factory.createNodeArray(typeArguments);
48495
48529
  }
48530
+ if (((_a = signature.declaration) == null ? void 0 : _a.kind) === 330 /* JSDocSignature */ && signature.declaration.parent.kind === 346 /* JSDocOverloadTag */) {
48531
+ const comment = getTextOfNode(
48532
+ signature.declaration.parent.parent,
48533
+ /*includeTrivia*/
48534
+ true
48535
+ ).slice(2, -2).split(/\r\n|\n|\r/).map((line) => line.replace(/^\s+/, " ")).join("\n");
48536
+ addSyntheticLeadingComment(
48537
+ node,
48538
+ 3 /* MultiLineCommentTrivia */,
48539
+ comment,
48540
+ /*hasTrailingNewLine*/
48541
+ true
48542
+ );
48543
+ }
48496
48544
  cleanup == null ? void 0 : cleanup();
48497
48545
  return node;
48498
48546
  }
@@ -51666,11 +51714,11 @@ function createTypeChecker(host) {
51666
51714
  const exportedMemberName = ((_a = tryCast(exportedMember.valueDeclaration, isNamedDeclaration)) == null ? void 0 : _a.name) || exportedMember.valueDeclaration;
51667
51715
  addRelatedInfo(
51668
51716
  error(s.valueDeclaration, Diagnostics.Duplicate_identifier_0, unescapedName),
51669
- createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here_Colon, unescapedName)
51717
+ createDiagnosticForNode(exportedMemberName, Diagnostics._0_was_also_declared_here, unescapedName)
51670
51718
  );
51671
51719
  addRelatedInfo(
51672
51720
  error(exportedMemberName, Diagnostics.Duplicate_identifier_0, unescapedName),
51673
- createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here_Colon, unescapedName)
51721
+ createDiagnosticForNode(s.valueDeclaration, Diagnostics._0_was_also_declared_here, unescapedName)
51674
51722
  );
51675
51723
  }
51676
51724
  const union = createSymbol(s.flags | exportedMember.flags, name);
@@ -52905,7 +52953,7 @@ function createTypeChecker(host) {
52905
52953
  if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {
52906
52954
  const declarations = earlySymbol ? concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;
52907
52955
  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));
52956
+ forEach(declarations, (declaration) => error(getNameOfDeclaration(declaration) || declaration, Diagnostics.Property_0_was_also_declared_here, name));
52909
52957
  error(declName || decl, Diagnostics.Duplicate_property_0, name);
52910
52958
  lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */);
52911
52959
  }
@@ -57817,7 +57865,7 @@ function createTypeChecker(host) {
57817
57865
  if (moduleSymbol.flags & targetMeaning) {
57818
57866
  links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning);
57819
57867
  } 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;
57868
+ 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
57869
  error(node, errorMessage, node.argument.literal.text);
57822
57870
  links.resolvedSymbol = unknownSymbol;
57823
57871
  links.resolvedType = errorType;
@@ -61578,7 +61626,7 @@ function createTypeChecker(host) {
61578
61626
  );
61579
61627
  reportError(Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName, ...getTypeNamesForErrorDisplay(source2, target2));
61580
61628
  if (length(unmatchedProperty.declarations)) {
61581
- associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here_Colon, propName));
61629
+ associateRelatedInfo(createDiagnosticForNode(unmatchedProperty.declarations[0], Diagnostics._0_is_declared_here, propName));
61582
61630
  }
61583
61631
  if (shouldSkipElaboration && errorInfo) {
61584
61632
  overrideNextErrorInfo++;
@@ -63156,17 +63204,18 @@ function createTypeChecker(host) {
63156
63204
  );
63157
63205
  }
63158
63206
  function inferTypeForHomomorphicMappedType(source, target, constraint) {
63159
- if (inInferTypeForHomomorphicMappedType) {
63160
- return void 0;
63207
+ const cacheKey = source.id + "," + target.id + "," + constraint.id;
63208
+ if (reverseMappedCache.has(cacheKey)) {
63209
+ return reverseMappedCache.get(cacheKey);
63161
63210
  }
63162
- const key = source.id + "," + target.id + "," + constraint.id;
63163
- if (reverseMappedCache.has(key)) {
63164
- return reverseMappedCache.get(key);
63211
+ const recursionKey = source.id + "," + (target.target || target).id;
63212
+ if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
63213
+ return void 0;
63165
63214
  }
63166
- inInferTypeForHomomorphicMappedType = true;
63215
+ homomorphicMappedTypeInferenceStack.push(recursionKey);
63167
63216
  const type = createReverseMappedType(source, target, constraint);
63168
- inInferTypeForHomomorphicMappedType = false;
63169
- reverseMappedCache.set(key, type);
63217
+ homomorphicMappedTypeInferenceStack.pop();
63218
+ reverseMappedCache.set(cacheKey, type);
63170
63219
  return type;
63171
63220
  }
63172
63221
  function isPartiallyInferableType(type) {
@@ -69353,7 +69402,7 @@ function createTypeChecker(host) {
69353
69402
  if (diagnosticMessage) {
69354
69403
  addRelatedInfo(
69355
69404
  diagnosticMessage,
69356
- createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here_Colon, declarationName)
69405
+ createDiagnosticForNode(valueDeclaration, Diagnostics._0_is_declared_here, declarationName)
69357
69406
  );
69358
69407
  }
69359
69408
  }
@@ -69440,7 +69489,7 @@ function createTypeChecker(host) {
69440
69489
  const suggestedName = symbolName(suggestion);
69441
69490
  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
69491
  errorInfo = chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName);
69443
- relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here_Colon, suggestedName);
69492
+ relatedInfo = suggestion.valueDeclaration && createDiagnosticForNode(suggestion.valueDeclaration, Diagnostics._0_is_declared_here, suggestedName);
69444
69493
  } else {
69445
69494
  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
69495
  errorInfo = chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container);
@@ -70157,7 +70206,7 @@ function createTypeChecker(host) {
70157
70206
  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
70207
  const tagNameDeclaration = (_a = getSymbolAtLocation(node.tagName)) == null ? void 0 : _a.valueDeclaration;
70159
70208
  if (tagNameDeclaration) {
70160
- addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here_Colon, entityNameToString(node.tagName)));
70209
+ addRelatedInfo(diag2, createDiagnosticForNode(tagNameDeclaration, Diagnostics._0_is_declared_here, entityNameToString(node.tagName)));
70161
70210
  }
70162
70211
  if (errorOutputContainer && errorOutputContainer.skipLogging) {
70163
70212
  (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag2);
@@ -70609,7 +70658,7 @@ function createTypeChecker(host) {
70609
70658
  if (diags) {
70610
70659
  for (const d of diags) {
70611
70660
  if (last2.declaration && candidatesForArgumentError.length > 3) {
70612
- addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here_Colon));
70661
+ addRelatedInfo(d, createDiagnosticForNode(last2.declaration, Diagnostics.The_last_overload_is_declared_here));
70613
70662
  }
70614
70663
  addImplementationSuccessElaboration(last2, d);
70615
70664
  diagnostics.add(d);
@@ -75749,7 +75798,7 @@ function createTypeChecker(host) {
75749
75798
  const errorNode = signature.declaration && isJSDocSignature(signature.declaration) ? signature.declaration.parent.tagName : signature.declaration;
75750
75799
  addRelatedInfo(
75751
75800
  error(errorNode, Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),
75752
- createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here_Colon)
75801
+ createDiagnosticForNode(bodyDeclaration, Diagnostics.The_implementation_signature_is_declared_here)
75753
75802
  );
75754
75803
  break;
75755
75804
  }
@@ -76215,7 +76264,7 @@ function createTypeChecker(host) {
76215
76264
  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
76265
  const aliasDeclaration = find(rootSymbol.declarations || emptyArray, isAliasSymbolDeclaration);
76217
76266
  if (aliasDeclaration) {
76218
- addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here_Colon, idText(rootName)));
76267
+ addRelatedInfo(diag2, createDiagnosticForNode(aliasDeclaration, Diagnostics._0_was_imported_here, idText(rootName)));
76219
76268
  }
76220
76269
  }
76221
76270
  }
@@ -77159,7 +77208,7 @@ function createTypeChecker(host) {
77159
77208
  if (firstDeclaration) {
77160
77209
  addRelatedInfo(
77161
77210
  err,
77162
- createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here_Colon, declName)
77211
+ createDiagnosticForNode(firstDeclaration, Diagnostics._0_was_also_declared_here, declName)
77163
77212
  );
77164
77213
  }
77165
77214
  }
@@ -78269,7 +78318,7 @@ function createTypeChecker(host) {
78269
78318
  typeToString(info.type)
78270
78319
  );
78271
78320
  if (propDeclaration && errorNode !== propDeclaration) {
78272
- addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here_Colon, symbolToString(prop)));
78321
+ addRelatedInfo(diagnostic, createDiagnosticForNode(propDeclaration, Diagnostics._0_is_declared_here, symbolToString(prop)));
78273
78322
  }
78274
78323
  diagnostics.add(diagnostic);
78275
78324
  }
@@ -82604,7 +82653,7 @@ function createTypeChecker(host) {
82604
82653
  createDiagnosticForNode(useStrictDirective, Diagnostics.use_strict_directive_used_here)
82605
82654
  );
82606
82655
  });
82607
- const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here_Colon) : createDiagnosticForNode(parameter, Diagnostics.and_here_Colon));
82656
+ const diagnostics2 = nonSimpleParameters.map((parameter, index) => index === 0 ? createDiagnosticForNode(parameter, Diagnostics.Non_simple_parameter_declared_here) : createDiagnosticForNode(parameter, Diagnostics.and_here));
82608
82657
  addRelatedInfo(error(useStrictDirective, Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list), ...diagnostics2);
82609
82658
  return true;
82610
82659
  }
@@ -113995,14 +114044,14 @@ function getEmitListItem(emit, parenthesizerRule) {
113995
114044
  }
113996
114045
 
113997
114046
  // src/compiler/watchUtilities.ts
113998
- function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) {
114047
+ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2) {
113999
114048
  if (!host.getDirectories || !host.readDirectory) {
114000
114049
  return void 0;
114001
114050
  }
114002
114051
  const cachedReadDirectoryResult = /* @__PURE__ */ new Map();
114003
- const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
114052
+ const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
114004
114053
  return {
114005
- useCaseSensitiveFileNames,
114054
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
114006
114055
  fileExists,
114007
114056
  readFile: (path, encoding) => host.readFile(path, encoding),
114008
114057
  directoryExists: host.directoryExists && directoryExists,
@@ -114124,7 +114173,7 @@ function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensi
114124
114173
  const rootResult = tryReadDirectory(rootDir, rootDirPath);
114125
114174
  let rootSymLinkResult;
114126
114175
  if (rootResult !== void 0) {
114127
- return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath);
114176
+ return matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames2, currentDirectory, depth, getFileSystemEntries, realpath);
114128
114177
  }
114129
114178
  return host.readDirectory(rootDir, extensions, excludes, includes, depth);
114130
114179
  function getFileSystemEntries(dir) {
@@ -114308,7 +114357,7 @@ function isIgnoredFileFromWildCardWatching({
114308
114357
  program,
114309
114358
  extraFileExtensions,
114310
114359
  currentDirectory,
114311
- useCaseSensitiveFileNames,
114360
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
114312
114361
  writeLog,
114313
114362
  toPath: toPath3
114314
114363
  }) {
@@ -114324,7 +114373,7 @@ function isIgnoredFileFromWildCardWatching({
114324
114373
  writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
114325
114374
  return true;
114326
114375
  }
114327
- if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
114376
+ if (isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames2, currentDirectory)) {
114328
114377
  writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`);
114329
114378
  return true;
114330
114379
  }
@@ -114381,7 +114430,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {
114381
114430
  function createExcludeHandlingAddWatch(key) {
114382
114431
  return (file, cb, flags, options, detailInfo1, detailInfo2) => {
114383
114432
  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(
114433
+ 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
114434
  /*thisArgs*/
114386
114435
  void 0,
114387
114436
  file,
@@ -114393,7 +114442,7 @@ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {
114393
114442
  ) : excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2);
114394
114443
  };
114395
114444
  }
114396
- function useCaseSensitiveFileNames() {
114445
+ function useCaseSensitiveFileNames2() {
114397
114446
  return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames();
114398
114447
  }
114399
114448
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
@@ -114711,7 +114760,7 @@ var gutterSeparator = " ";
114711
114760
  var resetEscapeSequence = "\x1B[0m";
114712
114761
  var ellipsis = "...";
114713
114762
  var halfIndent = " ";
114714
- var bullet = "\u25CF ";
114763
+ var indent = " ";
114715
114764
  function getCategoryFormat(category) {
114716
114765
  switch (category) {
114717
114766
  case 1 /* Error */:
@@ -114727,49 +114776,39 @@ function getCategoryFormat(category) {
114727
114776
  function formatColorAndReset(text, formatStyle) {
114728
114777
  return formatStyle + text + resetEscapeSequence;
114729
114778
  }
114730
- function formatCodeSpan(file, start, length2, indent, underlineColor, host) {
114779
+ function formatCodeSpan(file, start, length2, indent2, squiggleColor, host) {
114731
114780
  const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file, start);
114732
114781
  const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file, start + length2);
114733
114782
  const lastLineInFile = getLineAndCharacterOfPosition(file, file.text.length).line;
114734
- const gutterWidth = 1;
114735
114783
  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));
114784
+ let gutterWidth = (lastLine + 1 + "").length;
114785
+ if (hasMoreThanFiveLines) {
114786
+ gutterWidth = Math.max(ellipsis.length, gutterWidth);
114745
114787
  }
114746
114788
  let context = "";
114747
114789
  for (let i = firstLine; i <= lastLine; i++) {
114748
114790
  context += host.getNewLine();
114749
114791
  if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {
114750
- context += indent + formatColorAndReset(padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
114792
+ context += indent2 + formatColorAndReset(padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
114751
114793
  i = lastLine - 1;
114752
114794
  }
114753
114795
  const lineStart = getPositionOfLineAndCharacter(file, i, 0);
114754
114796
  const lineEnd = i < lastLineInFile ? getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;
114755
114797
  let lineContent = file.text.slice(lineStart, lineEnd);
114756
- lineContent = lineContent.slice(whitespaceToTrim);
114757
114798
  lineContent = trimStringEnd(lineContent);
114758
114799
  lineContent = lineContent.replace(/\t/g, " ");
114759
- const gutterLine = "|";
114760
- context += indent + padLeft(gutterLine, gutterWidth) + gutterSeparator;
114800
+ context += indent2 + formatColorAndReset(padLeft(i + 1 + "", gutterWidth), gutterStyleSequence) + gutterSeparator;
114761
114801
  context += lineContent + host.getNewLine();
114762
- context += indent + padLeft("", gutterWidth) + gutterSeparator;
114763
- context += underlineColor;
114802
+ context += indent2 + formatColorAndReset(padLeft("", gutterWidth), gutterStyleSequence) + gutterSeparator;
114803
+ context += squiggleColor;
114764
114804
  if (i === firstLine) {
114765
114805
  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");
114806
+ context += lineContent.slice(0, firstLineChar).replace(/\S/g, " ");
114807
+ context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~");
114769
114808
  } else if (i === lastLine) {
114770
- context += lineContent.slice(0, lastLineChar).replace(/./g, "\u2594");
114809
+ context += lineContent.slice(0, lastLineChar).replace(/./g, "~");
114771
114810
  } else {
114772
- context += lineContent.replace(/./g, "\u2594");
114811
+ context += lineContent.replace(/./g, "~");
114773
114812
  }
114774
114813
  context += resetEscapeSequence;
114775
114814
  }
@@ -114787,87 +114826,54 @@ function formatLocation(file, start, host, color = formatColorAndReset) {
114787
114826
  return output;
114788
114827
  }
114789
114828
  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
114829
  let output = "";
114794
114830
  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) {
114831
+ if (diagnostic.file) {
114803
114832
  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);
114833
+ output += formatLocation(file, start, host);
114834
+ output += " - ";
114835
+ }
114836
+ output += formatColorAndReset(diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));
114837
+ output += formatColorAndReset(` TS${diagnostic.code}: `, "\x1B[90m" /* Grey */);
114838
+ output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());
114839
+ if (diagnostic.file && diagnostic.code !== Diagnostics.File_appears_to_be_binary.code) {
114815
114840
  output += host.getNewLine();
114816
- } else {
114817
- output += formatColorAndReset(bullet, getCategoryFormat(diagnostic.category)) + " " + diagnosticCatNameColored + " " + diagnosticCode;
114841
+ output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, "", getCategoryFormat(diagnostic.category), host);
114818
114842
  }
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
114843
  if (diagnostic.relatedInformation) {
114830
114844
  output += host.getNewLine();
114831
114845
  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
114846
  if (file) {
114840
- output += " " + formatLocation(file, start, host);
114841
114847
  output += host.getNewLine();
114842
- output += formatCodeSpan(file, start, length2, indent + " ", "\x1B[96m" /* Cyan */, host);
114848
+ output += halfIndent + formatLocation(file, start, host);
114849
+ output += formatCodeSpan(file, start, length2, indent, "\x1B[96m" /* Cyan */, host);
114843
114850
  }
114851
+ output += host.getNewLine();
114852
+ output += indent + flattenDiagnosticMessageText(messageText, host.getNewLine());
114844
114853
  }
114845
114854
  }
114855
+ output += host.getNewLine();
114846
114856
  }
114847
114857
  return output;
114848
114858
  }
114849
- function flattenDiagnosticMessageText(diag2, newLine, indent = 0, pretty = false) {
114859
+ function flattenDiagnosticMessageText(diag2, newLine, indent2 = 0) {
114850
114860
  if (isString(diag2)) {
114851
114861
  return diag2;
114852
114862
  } else if (diag2 === void 0) {
114853
114863
  return "";
114854
114864
  }
114855
114865
  let result = "";
114856
- if (indent) {
114866
+ if (indent2) {
114857
114867
  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;
114868
+ for (let i = 0; i < indent2; i++) {
114869
+ result += " ";
114870
+ }
114865
114871
  }
114866
114872
  result += diag2.messageText;
114867
- indent++;
114873
+ indent2++;
114868
114874
  if (diag2.next) {
114869
114875
  for (const kid of diag2.next) {
114870
- result += flattenDiagnosticMessageText(kid, newLine, indent);
114876
+ result += flattenDiagnosticMessageText(kid, newLine, indent2);
114871
114877
  }
114872
114878
  }
114873
114879
  return result;
@@ -115171,8 +115177,8 @@ var plainJSErrors = /* @__PURE__ */ new Set([
115171
115177
  // binder errors
115172
115178
  Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,
115173
115179
  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,
115180
+ Diagnostics.Another_export_default_is_here.code,
115181
+ Diagnostics.The_first_export_default_is_here.code,
115176
115182
  Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,
115177
115183
  Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,
115178
115184
  Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,
@@ -117969,16 +117975,16 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
117969
117975
  let message2;
117970
117976
  switch (reason.kind) {
117971
117977
  case 3 /* Import */:
117972
- message2 = Diagnostics.File_is_included_via_import_here_Colon;
117978
+ message2 = Diagnostics.File_is_included_via_import_here;
117973
117979
  break;
117974
117980
  case 4 /* ReferenceFile */:
117975
- message2 = Diagnostics.File_is_included_via_reference_here_Colon;
117981
+ message2 = Diagnostics.File_is_included_via_reference_here;
117976
117982
  break;
117977
117983
  case 5 /* TypeReferenceDirective */:
117978
- message2 = Diagnostics.File_is_included_via_type_library_reference_here_Colon;
117984
+ message2 = Diagnostics.File_is_included_via_type_library_reference_here;
117979
117985
  break;
117980
117986
  case 7 /* LibReferenceDirective */:
117981
- message2 = Diagnostics.File_is_included_via_library_reference_here_Colon;
117987
+ message2 = Diagnostics.File_is_included_via_library_reference_here;
117982
117988
  break;
117983
117989
  default:
117984
117990
  Debug.assertNever(reason);
@@ -118002,14 +118008,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118002
118008
  const matchedByFiles = getMatchedFileSpec(program, fileName);
118003
118009
  if (matchedByFiles) {
118004
118010
  configFileNode = getTsConfigPropArrayElementValue(options.configFile, "files", matchedByFiles);
118005
- message = Diagnostics.File_is_matched_by_files_list_specified_here_Colon;
118011
+ message = Diagnostics.File_is_matched_by_files_list_specified_here;
118006
118012
  break;
118007
118013
  }
118008
118014
  const matchedByInclude = getMatchedIncludeSpec(program, fileName);
118009
118015
  if (!matchedByInclude || !isString(matchedByInclude))
118010
118016
  return void 0;
118011
118017
  configFileNode = getTsConfigPropArrayElementValue(options.configFile, "include", matchedByInclude);
118012
- message = Diagnostics.File_is_matched_by_include_pattern_specified_here_Colon;
118018
+ message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
118013
118019
  break;
118014
118020
  case 1 /* SourceFromProjectReference */:
118015
118021
  case 2 /* OutputFromProjectReference */:
@@ -118030,23 +118036,23 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
118030
118036
  return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
118031
118037
  sourceFile,
118032
118038
  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
118039
+ reason.kind === 2 /* OutputFromProjectReference */ ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
118034
118040
  ) : void 0;
118035
118041
  case 8 /* AutomaticTypeDirectiveFile */:
118036
118042
  if (!options.types)
118037
118043
  return void 0;
118038
118044
  configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
118039
- message = Diagnostics.File_is_entry_point_of_type_library_specified_here_Colon;
118045
+ message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
118040
118046
  break;
118041
118047
  case 6 /* LibFile */:
118042
118048
  if (reason.index !== void 0) {
118043
118049
  configFileNode = getOptionsSyntaxByArrayElementValue("lib", options.lib[reason.index]);
118044
- message = Diagnostics.File_is_library_specified_here_Colon;
118050
+ message = Diagnostics.File_is_library_specified_here;
118045
118051
  break;
118046
118052
  }
118047
118053
  const target = forEachEntry(targetOptionDeclaration.type, (value, key) => value === getEmitScriptTarget(options) ? key : void 0);
118048
118054
  configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
118049
- message = Diagnostics.File_is_default_library_for_target_specified_here_Colon;
118055
+ message = Diagnostics.File_is_default_library_for_target_specified_here;
118050
118056
  break;
118051
118057
  default:
118052
118058
  Debug.assertNever(reason);
@@ -121455,12 +121461,12 @@ function getMatchedIncludeSpec(program, fileName) {
121455
121461
  return true;
121456
121462
  const isJsonFile = fileExtensionIs(fileName, ".json" /* Json */);
121457
121463
  const basePath = getDirectoryPath(getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));
121458
- const useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();
121464
+ const useCaseSensitiveFileNames2 = program.useCaseSensitiveFileNames();
121459
121465
  return find((_b = configFile == null ? void 0 : configFile.configFileSpecs) == null ? void 0 : _b.validatedIncludeSpecs, (includeSpec) => {
121460
121466
  if (isJsonFile && !endsWith(includeSpec, ".json" /* Json */))
121461
121467
  return false;
121462
121468
  const pattern = getPatternFromSpec(includeSpec, basePath, "files");
121463
- return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames).test(fileName);
121469
+ return !!pattern && getRegexFromPattern(`(${pattern})$`, useCaseSensitiveFileNames2).test(fileName);
121464
121470
  });
121465
121471
  }
121466
121472
  function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) {
@@ -121689,7 +121695,7 @@ function createWatchFactory(host, options) {
121689
121695
  return result;
121690
121696
  }
121691
121697
  function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost = host) {
121692
- const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
121698
+ const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames();
121693
121699
  const compilerHost = {
121694
121700
  getSourceFile: createGetSourceFile(
121695
121701
  (fileName, encoding) => !encoding ? compilerHost.readFile(fileName) : host.readFile(fileName, encoding),
@@ -121705,8 +121711,8 @@ function createCompilerHostFromProgramHost(host, getCompilerOptions, directorySt
121705
121711
  (path) => host.directoryExists(path)
121706
121712
  ),
121707
121713
  getCurrentDirectory: memoize(() => host.getCurrentDirectory()),
121708
- useCaseSensitiveFileNames: () => useCaseSensitiveFileNames,
121709
- getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames),
121714
+ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2,
121715
+ getCanonicalFileName: createGetCanonicalFileName(useCaseSensitiveFileNames2),
121710
121716
  getNewLine: () => getNewLineCharacter(getCompilerOptions()),
121711
121717
  fileExists: (f) => host.fileExists(f),
121712
121718
  readFile: (f) => host.readFile(f),
@@ -121921,7 +121927,7 @@ function createWatchProgram(host) {
121921
121927
  const sourceFilesCache = /* @__PURE__ */ new Map();
121922
121928
  let missingFilePathsRequestedForRelease;
121923
121929
  let hasChangedCompilerOptions = false;
121924
- const useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();
121930
+ const useCaseSensitiveFileNames2 = host.useCaseSensitiveFileNames();
121925
121931
  const currentDirectory = host.getCurrentDirectory();
121926
121932
  const { configFileName, optionsToExtend: optionsToExtendForConfigFile = {}, watchOptionsToExtend, extraFileExtensions, createProgram: createProgram2 } = host;
121927
121933
  let { rootFiles: rootFileNames, options: compilerOptions, watchOptions, projectReferences } = host;
@@ -121929,7 +121935,7 @@ function createWatchProgram(host) {
121929
121935
  let configFileParsingDiagnostics;
121930
121936
  let canConfigFileJsonReportNoInputFiles = false;
121931
121937
  let hasChangedConfigFileParsingErrors = false;
121932
- const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames);
121938
+ const cachedDirectoryStructureHost = configFileName === void 0 ? void 0 : createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames2);
121933
121939
  const directoryStructureHost = cachedDirectoryStructureHost || host;
121934
121940
  const parseConfigFileHost = parseConfigHostFromCompilerHostLike(host, directoryStructureHost);
121935
121941
  let newLine = updateNewLine();
@@ -121947,8 +121953,8 @@ function createWatchProgram(host) {
121947
121953
  Debug.assert(compilerOptions);
121948
121954
  Debug.assert(rootFileNames);
121949
121955
  const { watchFile: watchFile2, watchDirectory, writeLog } = createWatchFactory(host, compilerOptions);
121950
- const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames);
121951
- writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`);
121956
+ const getCanonicalFileName = createGetCanonicalFileName(useCaseSensitiveFileNames2);
121957
+ writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames2}`);
121952
121958
  let configFileWatcher;
121953
121959
  if (configFileName) {
121954
121960
  configFileWatcher = watchFile2(configFileName, scheduleProgramReload, 2e3 /* High */, watchOptions, WatchType.ConfigFile);
@@ -122454,7 +122460,7 @@ function createWatchProgram(host) {
122454
122460
  options: compilerOptions,
122455
122461
  program: getCurrentBuilderProgram() || rootFileNames,
122456
122462
  currentDirectory,
122457
- useCaseSensitiveFileNames,
122463
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
122458
122464
  writeLog,
122459
122465
  toPath: toPath3
122460
122466
  }))
@@ -122544,7 +122550,7 @@ function createWatchProgram(host) {
122544
122550
  options: config.parsedCommandLine.options,
122545
122551
  program: config.parsedCommandLine.fileNames,
122546
122552
  currentDirectory,
122547
- useCaseSensitiveFileNames,
122553
+ useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
122548
122554
  writeLog,
122549
122555
  toPath: toPath3
122550
122556
  }))