@angular/language-server 19.1.0 → 19.2.1

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.
Files changed (2) hide show
  1. package/index.js +1172 -702
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -4,9 +4,9 @@ var __commonJS = (cb, mod) => function __require() {
4
4
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
5
  };
6
6
 
7
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/cmdline_utils.js
7
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/cmdline_utils.js
8
8
  var require_cmdline_utils = __commonJS({
9
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/cmdline_utils.js"(exports2) {
9
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/cmdline_utils.js"(exports2) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports2, "__esModule", { value: true });
12
12
  exports2.generateHelpMessage = exports2.parseCommandLine = void 0;
@@ -75,9 +75,9 @@ var require_cmdline_utils = __commonJS({
75
75
  }
76
76
  });
77
77
 
78
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/resolver.js
78
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/resolver.js
79
79
  var require_resolver = __commonJS({
80
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/resolver.js"(exports2) {
80
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/resolver.js"(exports2) {
81
81
  "use strict";
82
82
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
83
83
  if (k2 === void 0)
@@ -185,9 +185,9 @@ var require_resolver = __commonJS({
185
185
  }
186
186
  });
187
187
 
188
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/version_provider.js
188
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/version_provider.js
189
189
  var require_version_provider = __commonJS({
190
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/version_provider.js"(exports2) {
190
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/version_provider.js"(exports2) {
191
191
  "use strict";
192
192
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
193
193
  if (k2 === void 0)
@@ -297,7 +297,7 @@ var require_version_provider = __commonJS({
297
297
  }
298
298
  });
299
299
 
300
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/banner.js
300
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/banner.js
301
301
  Object.defineProperty(exports, "__esModule", { value: true });
302
302
  exports.requireOverride = void 0;
303
303
  var cmdline_utils_1 = require_cmdline_utils();
@@ -383,9 +383,9 @@ var __async = (__this, __arguments, generator) => {
383
383
  });
384
384
  };
385
385
 
386
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/cmdline_utils.js
386
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/cmdline_utils.js
387
387
  var require_cmdline_utils = __commonJS({
388
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/cmdline_utils.js"(exports2) {
388
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/cmdline_utils.js"(exports2) {
389
389
  "use strict";
390
390
  Object.defineProperty(exports2, "__esModule", { value: true });
391
391
  exports2.generateHelpMessage = exports2.parseCommandLine = void 0;
@@ -454,9 +454,9 @@ var require_cmdline_utils = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/logger.js
457
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/logger.js
458
458
  var require_logger = __commonJS({
459
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/logger.js"(exports2) {
459
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/logger.js"(exports2) {
460
460
  "use strict";
461
461
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
462
462
  if (k2 === void 0)
@@ -586,9 +586,9 @@ var require_logger = __commonJS({
586
586
  }
587
587
  });
588
588
 
589
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/server_host.js
589
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/server_host.js
590
590
  var require_server_host = __commonJS({
591
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/server_host.js"(exports2) {
591
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/server_host.js"(exports2) {
592
592
  "use strict";
593
593
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
594
594
  if (k2 === void 0)
@@ -771,9 +771,9 @@ var require_server_host = __commonJS({
771
771
  }
772
772
  });
773
773
 
774
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@19.1.4/node_modules/@angular/language-service/api_bundle.js
774
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@19.2.2/node_modules/@angular/language-service/api_bundle.js
775
775
  var require_api_bundle = __commonJS({
776
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@19.1.4/node_modules/@angular/language-service/api_bundle.js"(exports2, module2) {
776
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/@angular+language-service@registry.npmjs.org+@angular+language-service@19.2.2/node_modules/@angular/language-service/api_bundle.js"(exports2, module2) {
777
777
  var __defProp2 = Object.defineProperty;
778
778
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
779
779
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
@@ -802,9 +802,9 @@ var require_api_bundle = __commonJS({
802
802
  }
803
803
  });
804
804
 
805
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/notifications.js
805
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/notifications.js
806
806
  var require_notifications = __commonJS({
807
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/notifications.js"(exports2) {
807
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/notifications.js"(exports2) {
808
808
  "use strict";
809
809
  Object.defineProperty(exports2, "__esModule", { value: true });
810
810
  exports2.OpenOutputChannel = exports2.SuggestStrictMode = exports2.ProjectLanguageService = exports2.ProjectLoadingFinish = exports2.ProjectLoadingStart = void 0;
@@ -817,9 +817,9 @@ var require_notifications = __commonJS({
817
817
  }
818
818
  });
819
819
 
820
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-types@3.16.0/node_modules/vscode-languageserver-types/lib/umd/main.js
820
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-types@registry.npmjs.org+vscode-languageserver-types@3.16.0/node_modules/vscode-languageserver-types/lib/umd/main.js
821
821
  var require_main = __commonJS({
822
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-types@3.16.0/node_modules/vscode-languageserver-types/lib/umd/main.js"(exports2, module2) {
822
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-types@registry.npmjs.org+vscode-languageserver-types@3.16.0/node_modules/vscode-languageserver-types/lib/umd/main.js"(exports2, module2) {
823
823
  (function(factory) {
824
824
  if (typeof module2 === "object" && typeof module2.exports === "object") {
825
825
  var v = factory(require, exports2);
@@ -2109,9 +2109,9 @@ var require_main = __commonJS({
2109
2109
  }
2110
2110
  });
2111
2111
 
2112
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/messages.js
2112
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/messages.js
2113
2113
  var require_messages = __commonJS({
2114
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(exports2) {
2114
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(exports2) {
2115
2115
  "use strict";
2116
2116
  Object.defineProperty(exports2, "__esModule", { value: true });
2117
2117
  exports2.ProtocolNotificationType = exports2.ProtocolNotificationType0 = exports2.ProtocolRequestType = exports2.ProtocolRequestType0 = exports2.RegistrationType = void 0;
@@ -2149,9 +2149,9 @@ var require_messages = __commonJS({
2149
2149
  }
2150
2150
  });
2151
2151
 
2152
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js
2152
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js
2153
2153
  var require_is = __commonJS({
2154
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(exports2) {
2154
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(exports2) {
2155
2155
  "use strict";
2156
2156
  Object.defineProperty(exports2, "__esModule", { value: true });
2157
2157
  exports2.objectLiteral = exports2.typedArray = exports2.stringArray = exports2.array = exports2.func = exports2.error = exports2.number = exports2.string = exports2.boolean = void 0;
@@ -2194,9 +2194,9 @@ var require_is = __commonJS({
2194
2194
  }
2195
2195
  });
2196
2196
 
2197
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js
2197
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js
2198
2198
  var require_protocol_implementation = __commonJS({
2199
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(exports2) {
2199
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(exports2) {
2200
2200
  "use strict";
2201
2201
  Object.defineProperty(exports2, "__esModule", { value: true });
2202
2202
  exports2.ImplementationRequest = void 0;
@@ -2209,9 +2209,9 @@ var require_protocol_implementation = __commonJS({
2209
2209
  }
2210
2210
  });
2211
2211
 
2212
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js
2212
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js
2213
2213
  var require_protocol_typeDefinition = __commonJS({
2214
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(exports2) {
2214
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(exports2) {
2215
2215
  "use strict";
2216
2216
  Object.defineProperty(exports2, "__esModule", { value: true });
2217
2217
  exports2.TypeDefinitionRequest = void 0;
@@ -2224,9 +2224,9 @@ var require_protocol_typeDefinition = __commonJS({
2224
2224
  }
2225
2225
  });
2226
2226
 
2227
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolders.js
2227
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolders.js
2228
2228
  var require_protocol_workspaceFolders = __commonJS({
2229
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolders.js"(exports2) {
2229
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolders.js"(exports2) {
2230
2230
  "use strict";
2231
2231
  Object.defineProperty(exports2, "__esModule", { value: true });
2232
2232
  exports2.DidChangeWorkspaceFoldersNotification = exports2.WorkspaceFoldersRequest = void 0;
@@ -2242,9 +2242,9 @@ var require_protocol_workspaceFolders = __commonJS({
2242
2242
  }
2243
2243
  });
2244
2244
 
2245
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js
2245
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js
2246
2246
  var require_protocol_configuration = __commonJS({
2247
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(exports2) {
2247
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(exports2) {
2248
2248
  "use strict";
2249
2249
  Object.defineProperty(exports2, "__esModule", { value: true });
2250
2250
  exports2.ConfigurationRequest = void 0;
@@ -2256,9 +2256,9 @@ var require_protocol_configuration = __commonJS({
2256
2256
  }
2257
2257
  });
2258
2258
 
2259
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js
2259
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js
2260
2260
  var require_protocol_colorProvider = __commonJS({
2261
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(exports2) {
2261
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(exports2) {
2262
2262
  "use strict";
2263
2263
  Object.defineProperty(exports2, "__esModule", { value: true });
2264
2264
  exports2.ColorPresentationRequest = exports2.DocumentColorRequest = void 0;
@@ -2275,9 +2275,9 @@ var require_protocol_colorProvider = __commonJS({
2275
2275
  }
2276
2276
  });
2277
2277
 
2278
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js
2278
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js
2279
2279
  var require_protocol_foldingRange = __commonJS({
2280
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(exports2) {
2280
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(exports2) {
2281
2281
  "use strict";
2282
2282
  Object.defineProperty(exports2, "__esModule", { value: true });
2283
2283
  exports2.FoldingRangeRequest = exports2.FoldingRangeKind = void 0;
@@ -2296,9 +2296,9 @@ var require_protocol_foldingRange = __commonJS({
2296
2296
  }
2297
2297
  });
2298
2298
 
2299
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js
2299
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js
2300
2300
  var require_protocol_declaration = __commonJS({
2301
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(exports2) {
2301
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(exports2) {
2302
2302
  "use strict";
2303
2303
  Object.defineProperty(exports2, "__esModule", { value: true });
2304
2304
  exports2.DeclarationRequest = void 0;
@@ -2311,9 +2311,9 @@ var require_protocol_declaration = __commonJS({
2311
2311
  }
2312
2312
  });
2313
2313
 
2314
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js
2314
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js
2315
2315
  var require_protocol_selectionRange = __commonJS({
2316
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(exports2) {
2316
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(exports2) {
2317
2317
  "use strict";
2318
2318
  Object.defineProperty(exports2, "__esModule", { value: true });
2319
2319
  exports2.SelectionRangeRequest = void 0;
@@ -2326,9 +2326,9 @@ var require_protocol_selectionRange = __commonJS({
2326
2326
  }
2327
2327
  });
2328
2328
 
2329
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js
2329
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js
2330
2330
  var require_protocol_progress = __commonJS({
2331
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(exports2) {
2331
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(exports2) {
2332
2332
  "use strict";
2333
2333
  Object.defineProperty(exports2, "__esModule", { value: true });
2334
2334
  exports2.WorkDoneProgressCancelNotification = exports2.WorkDoneProgressCreateRequest = exports2.WorkDoneProgress = void 0;
@@ -2353,9 +2353,9 @@ var require_protocol_progress = __commonJS({
2353
2353
  }
2354
2354
  });
2355
2355
 
2356
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js
2356
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js
2357
2357
  var require_protocol_callHierarchy = __commonJS({
2358
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(exports2) {
2358
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(exports2) {
2359
2359
  "use strict";
2360
2360
  Object.defineProperty(exports2, "__esModule", { value: true });
2361
2361
  exports2.CallHierarchyOutgoingCallsRequest = exports2.CallHierarchyIncomingCallsRequest = exports2.CallHierarchyPrepareRequest = void 0;
@@ -2378,9 +2378,9 @@ var require_protocol_callHierarchy = __commonJS({
2378
2378
  }
2379
2379
  });
2380
2380
 
2381
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js
2381
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js
2382
2382
  var require_protocol_semanticTokens = __commonJS({
2383
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(exports2) {
2383
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(exports2) {
2384
2384
  "use strict";
2385
2385
  Object.defineProperty(exports2, "__esModule", { value: true });
2386
2386
  exports2.SemanticTokensRefreshRequest = exports2.SemanticTokensRangeRequest = exports2.SemanticTokensDeltaRequest = exports2.SemanticTokensRequest = exports2.SemanticTokensRegistrationType = exports2.TokenFormat = exports2.SemanticTokens = exports2.SemanticTokenModifiers = exports2.SemanticTokenTypes = void 0;
@@ -2463,9 +2463,9 @@ var require_protocol_semanticTokens = __commonJS({
2463
2463
  }
2464
2464
  });
2465
2465
 
2466
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js
2466
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js
2467
2467
  var require_protocol_showDocument = __commonJS({
2468
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(exports2) {
2468
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(exports2) {
2469
2469
  "use strict";
2470
2470
  Object.defineProperty(exports2, "__esModule", { value: true });
2471
2471
  exports2.ShowDocumentRequest = void 0;
@@ -2478,9 +2478,9 @@ var require_protocol_showDocument = __commonJS({
2478
2478
  }
2479
2479
  });
2480
2480
 
2481
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js
2481
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js
2482
2482
  var require_protocol_linkedEditingRange = __commonJS({
2483
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(exports2) {
2483
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(exports2) {
2484
2484
  "use strict";
2485
2485
  Object.defineProperty(exports2, "__esModule", { value: true });
2486
2486
  exports2.LinkedEditingRangeRequest = void 0;
@@ -2493,9 +2493,9 @@ var require_protocol_linkedEditingRange = __commonJS({
2493
2493
  }
2494
2494
  });
2495
2495
 
2496
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js
2496
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js
2497
2497
  var require_protocol_fileOperations = __commonJS({
2498
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(exports2) {
2498
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(exports2) {
2499
2499
  "use strict";
2500
2500
  Object.defineProperty(exports2, "__esModule", { value: true });
2501
2501
  exports2.WillDeleteFilesRequest = exports2.DidDeleteFilesNotification = exports2.DidRenameFilesNotification = exports2.WillRenameFilesRequest = exports2.DidCreateFilesNotification = exports2.WillCreateFilesRequest = exports2.FileOperationPatternKind = void 0;
@@ -2538,9 +2538,9 @@ var require_protocol_fileOperations = __commonJS({
2538
2538
  }
2539
2539
  });
2540
2540
 
2541
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js
2541
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js
2542
2542
  var require_protocol_moniker = __commonJS({
2543
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(exports2) {
2543
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(exports2) {
2544
2544
  "use strict";
2545
2545
  Object.defineProperty(exports2, "__esModule", { value: true });
2546
2546
  exports2.MonikerRequest = exports2.MonikerKind = exports2.UniquenessLevel = void 0;
@@ -2567,9 +2567,9 @@ var require_protocol_moniker = __commonJS({
2567
2567
  }
2568
2568
  });
2569
2569
 
2570
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.js
2570
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.js
2571
2571
  var require_protocol = __commonJS({
2572
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(exports2) {
2572
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(exports2) {
2573
2573
  "use strict";
2574
2574
  Object.defineProperty(exports2, "__esModule", { value: true });
2575
2575
  exports2.DocumentLinkRequest = exports2.CodeLensRefreshRequest = exports2.CodeLensResolveRequest = exports2.CodeLensRequest = exports2.WorkspaceSymbolRequest = exports2.CodeActionResolveRequest = exports2.CodeActionRequest = exports2.DocumentSymbolRequest = exports2.DocumentHighlightRequest = exports2.ReferencesRequest = exports2.DefinitionRequest = exports2.SignatureHelpRequest = exports2.SignatureHelpTriggerKind = exports2.HoverRequest = exports2.CompletionResolveRequest = exports2.CompletionRequest = exports2.CompletionTriggerKind = exports2.PublishDiagnosticsNotification = exports2.WatchKind = exports2.FileChangeType = exports2.DidChangeWatchedFilesNotification = exports2.WillSaveTextDocumentWaitUntilRequest = exports2.WillSaveTextDocumentNotification = exports2.TextDocumentSaveReason = exports2.DidSaveTextDocumentNotification = exports2.DidCloseTextDocumentNotification = exports2.DidChangeTextDocumentNotification = exports2.TextDocumentContentChangeEvent = exports2.DidOpenTextDocumentNotification = exports2.TextDocumentSyncKind = exports2.TelemetryEventNotification = exports2.LogMessageNotification = exports2.ShowMessageRequest = exports2.ShowMessageNotification = exports2.MessageType = exports2.DidChangeConfigurationNotification = exports2.ExitNotification = exports2.ShutdownRequest = exports2.InitializedNotification = exports2.InitializeError = exports2.InitializeRequest = exports2.WorkDoneProgressOptions = exports2.TextDocumentRegistrationOptions = exports2.StaticRegistrationOptions = exports2.FailureHandlingKind = exports2.ResourceOperationKind = exports2.UnregistrationRequest = exports2.RegistrationRequest = exports2.DocumentSelector = exports2.DocumentFilter = void 0;
@@ -3029,9 +3029,9 @@ var require_protocol = __commonJS({
3029
3029
  }
3030
3030
  });
3031
3031
 
3032
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/connection.js
3032
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/connection.js
3033
3033
  var require_connection = __commonJS({
3034
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(exports2) {
3034
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(exports2) {
3035
3035
  "use strict";
3036
3036
  Object.defineProperty(exports2, "__esModule", { value: true });
3037
3037
  exports2.createProtocolConnection = void 0;
@@ -3046,9 +3046,9 @@ var require_connection = __commonJS({
3046
3046
  }
3047
3047
  });
3048
3048
 
3049
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/api.js
3049
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/api.js
3050
3050
  var require_api = __commonJS({
3051
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/api.js"(exports2) {
3051
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/common/api.js"(exports2) {
3052
3052
  "use strict";
3053
3053
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3054
3054
  if (k2 === void 0)
@@ -3086,9 +3086,9 @@ var require_api = __commonJS({
3086
3086
  }
3087
3087
  });
3088
3088
 
3089
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/node/main.js
3089
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/node/main.js
3090
3090
  var require_main2 = __commonJS({
3091
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/node/main.js"(exports2) {
3091
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/vscode-languageserver-protocol@registry.npmjs.org+vscode-languageserver-protocol@3.16.0/node_modules/vscode-languageserver-protocol/lib/node/main.js"(exports2) {
3092
3092
  "use strict";
3093
3093
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3094
3094
  if (k2 === void 0)
@@ -3118,9 +3118,9 @@ var require_main2 = __commonJS({
3118
3118
  }
3119
3119
  });
3120
3120
 
3121
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/requests.js
3121
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/requests.js
3122
3122
  var require_requests = __commonJS({
3123
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/requests.js"(exports2) {
3123
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/requests.js"(exports2) {
3124
3124
  "use strict";
3125
3125
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3126
3126
  if (k2 === void 0)
@@ -3164,9 +3164,9 @@ var require_requests = __commonJS({
3164
3164
  }
3165
3165
  });
3166
3166
 
3167
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/utils.js
3167
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/utils.js
3168
3168
  var require_utils = __commonJS({
3169
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/utils.js"(exports2) {
3169
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/utils.js"(exports2) {
3170
3170
  "use strict";
3171
3171
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3172
3172
  if (k2 === void 0)
@@ -3349,9 +3349,9 @@ var require_utils = __commonJS({
3349
3349
  }
3350
3350
  });
3351
3351
 
3352
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/completion.js
3352
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/completion.js
3353
3353
  var require_completion = __commonJS({
3354
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/completion.js"(exports2) {
3354
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/completion.js"(exports2) {
3355
3355
  "use strict";
3356
3356
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3357
3357
  if (k2 === void 0)
@@ -3476,9 +3476,9 @@ var require_completion = __commonJS({
3476
3476
  }
3477
3477
  });
3478
3478
 
3479
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/diagnostic.js
3479
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/diagnostic.js
3480
3480
  var require_diagnostic = __commonJS({
3481
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/diagnostic.js"(exports2) {
3481
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/diagnostic.js"(exports2) {
3482
3482
  "use strict";
3483
3483
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
3484
3484
  if (k2 === void 0)
@@ -3541,9 +3541,9 @@ var require_diagnostic = __commonJS({
3541
3541
  }
3542
3542
  });
3543
3543
 
3544
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/base64.js
3544
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/base64.js
3545
3545
  var require_base64 = __commonJS({
3546
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/base64.js"(exports2) {
3546
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/base64.js"(exports2) {
3547
3547
  var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
3548
3548
  exports2.encode = function(number) {
3549
3549
  if (0 <= number && number < intToCharMap.length) {
@@ -3582,9 +3582,9 @@ var require_base64 = __commonJS({
3582
3582
  }
3583
3583
  });
3584
3584
 
3585
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/base64-vlq.js
3585
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/base64-vlq.js
3586
3586
  var require_base64_vlq = __commonJS({
3587
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/base64-vlq.js"(exports2) {
3587
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/base64-vlq.js"(exports2) {
3588
3588
  var base64 = require_base64();
3589
3589
  var VLQ_BASE_SHIFT = 5;
3590
3590
  var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
@@ -3636,9 +3636,9 @@ var require_base64_vlq = __commonJS({
3636
3636
  }
3637
3637
  });
3638
3638
 
3639
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/util.js
3639
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/util.js
3640
3640
  var require_util = __commonJS({
3641
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/util.js"(exports2) {
3641
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/util.js"(exports2) {
3642
3642
  function getArg(aArgs, aName, aDefaultValue) {
3643
3643
  if (aName in aArgs) {
3644
3644
  return aArgs[aName];
@@ -3937,9 +3937,9 @@ var require_util = __commonJS({
3937
3937
  }
3938
3938
  });
3939
3939
 
3940
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/array-set.js
3940
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/array-set.js
3941
3941
  var require_array_set = __commonJS({
3942
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/array-set.js"(exports2) {
3942
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/array-set.js"(exports2) {
3943
3943
  var util = require_util();
3944
3944
  var has = Object.prototype.hasOwnProperty;
3945
3945
  var hasNativeMap = typeof Map !== "undefined";
@@ -4007,9 +4007,9 @@ var require_array_set = __commonJS({
4007
4007
  }
4008
4008
  });
4009
4009
 
4010
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/mapping-list.js
4010
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/mapping-list.js
4011
4011
  var require_mapping_list = __commonJS({
4012
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/mapping-list.js"(exports2) {
4012
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/mapping-list.js"(exports2) {
4013
4013
  var util = require_util();
4014
4014
  function generatedPositionAfter(mappingA, mappingB) {
4015
4015
  var lineA = mappingA.generatedLine;
@@ -4046,9 +4046,9 @@ var require_mapping_list = __commonJS({
4046
4046
  }
4047
4047
  });
4048
4048
 
4049
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-map-generator.js
4049
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-map-generator.js
4050
4050
  var require_source_map_generator = __commonJS({
4051
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-map-generator.js"(exports2) {
4051
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-map-generator.js"(exports2) {
4052
4052
  var base64VLQ = require_base64_vlq();
4053
4053
  var util = require_util();
4054
4054
  var ArraySet = require_array_set().ArraySet;
@@ -4322,9 +4322,9 @@ var require_source_map_generator = __commonJS({
4322
4322
  }
4323
4323
  });
4324
4324
 
4325
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/binary-search.js
4325
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/binary-search.js
4326
4326
  var require_binary_search = __commonJS({
4327
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/binary-search.js"(exports2) {
4327
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/binary-search.js"(exports2) {
4328
4328
  exports2.GREATEST_LOWER_BOUND = 1;
4329
4329
  exports2.LEAST_UPPER_BOUND = 2;
4330
4330
  function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
@@ -4378,9 +4378,9 @@ var require_binary_search = __commonJS({
4378
4378
  }
4379
4379
  });
4380
4380
 
4381
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/quick-sort.js
4381
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/quick-sort.js
4382
4382
  var require_quick_sort = __commonJS({
4383
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/quick-sort.js"(exports2) {
4383
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/quick-sort.js"(exports2) {
4384
4384
  function swap(ary, x, y) {
4385
4385
  var temp = ary[x];
4386
4386
  ary[x] = ary[y];
@@ -4413,9 +4413,9 @@ var require_quick_sort = __commonJS({
4413
4413
  }
4414
4414
  });
4415
4415
 
4416
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-map-consumer.js
4416
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-map-consumer.js
4417
4417
  var require_source_map_consumer = __commonJS({
4418
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-map-consumer.js"(exports2) {
4418
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-map-consumer.js"(exports2) {
4419
4419
  var util = require_util();
4420
4420
  var binarySearch = require_binary_search();
4421
4421
  var ArraySet = require_array_set().ArraySet;
@@ -5014,9 +5014,9 @@ var require_source_map_consumer = __commonJS({
5014
5014
  }
5015
5015
  });
5016
5016
 
5017
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-node.js
5017
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-node.js
5018
5018
  var require_source_node = __commonJS({
5019
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/lib/source-node.js"(exports2) {
5019
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/lib/source-node.js"(exports2) {
5020
5020
  var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
5021
5021
  var util = require_util();
5022
5022
  var REGEX_NEWLINE = /(\r?\n)/;
@@ -5280,18 +5280,18 @@ var require_source_node = __commonJS({
5280
5280
  }
5281
5281
  });
5282
5282
 
5283
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/source-map.js
5283
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/source-map.js
5284
5284
  var require_source_map = __commonJS({
5285
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map/source-map.js"(exports2) {
5285
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map/source-map.js"(exports2) {
5286
5286
  exports2.SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
5287
5287
  exports2.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer;
5288
5288
  exports2.SourceNode = require_source_node().SourceNode;
5289
5289
  }
5290
5290
  });
5291
5291
 
5292
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/buffer-from/index.js
5292
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/buffer-from/index.js
5293
5293
  var require_buffer_from = __commonJS({
5294
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/buffer-from/index.js"(exports2, module2) {
5294
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/buffer-from/index.js"(exports2, module2) {
5295
5295
  var toString = Object.prototype.toString;
5296
5296
  var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function";
5297
5297
  function isArrayBuffer(input) {
@@ -5338,9 +5338,9 @@ var require_buffer_from = __commonJS({
5338
5338
  }
5339
5339
  });
5340
5340
 
5341
- // ../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map-support/source-map-support.js
5341
+ // ../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map-support/source-map-support.js
5342
5342
  var require_source_map_support = __commonJS({
5343
- "../../../../../../../../../../../../../Users/atscott/github/vscode-ng-language-service/node_modules/source-map-support/source-map-support.js"(exports2, module2) {
5343
+ "../../../../../../../../../../../../projects/vscode-ng-language-service/node_modules/source-map-support/source-map-support.js"(exports2, module2) {
5344
5344
  var SourceMapConsumer = require_source_map().SourceMapConsumer;
5345
5345
  var path = require("path");
5346
5346
  var fs;
@@ -5812,9 +5812,9 @@ var require_source_map_support = __commonJS({
5812
5812
  }
5813
5813
  });
5814
5814
 
5815
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/typescript@5.7.2/node_modules/typescript/lib/typescript.js
5815
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/typescript@registry.npmjs.org+typescript@5.8.1-rc/node_modules/typescript/lib/typescript.js
5816
5816
  var require_typescript = __commonJS({
5817
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/node_modules/.aspect_rules_js/typescript@5.7.2/node_modules/typescript/lib/typescript.js"(exports2, module2) {
5817
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/node_modules/.aspect_rules_js/typescript@registry.npmjs.org+typescript@5.8.1-rc/node_modules/typescript/lib/typescript.js"(exports2, module2) {
5818
5818
  var ts = {};
5819
5819
  ((module3) => {
5820
5820
  "use strict";
@@ -6237,6 +6237,7 @@ var require_typescript = __commonJS({
6237
6237
  createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
6238
6238
  createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
6239
6239
  createProgram: () => createProgram,
6240
+ createProgramDiagnostics: () => createProgramDiagnostics,
6240
6241
  createProgramHost: () => createProgramHost,
6241
6242
  createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
6242
6243
  createQueue: () => createQueue,
@@ -6406,6 +6407,8 @@ var require_typescript = __commonJS({
6406
6407
  forEachLeadingCommentRange: () => forEachLeadingCommentRange,
6407
6408
  forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
6408
6409
  forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
6410
+ forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
6411
+ forEachProjectReference: () => forEachProjectReference,
6409
6412
  forEachPropertyAssignment: () => forEachPropertyAssignment,
6410
6413
  forEachResolvedProjectReference: () => forEachResolvedProjectReference,
6411
6414
  forEachReturnStatement: () => forEachReturnStatement,
@@ -6645,6 +6648,8 @@ var require_typescript = __commonJS({
6645
6648
  getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
6646
6649
  getLeftmostAccessExpression: () => getLeftmostAccessExpression,
6647
6650
  getLeftmostExpression: () => getLeftmostExpression,
6651
+ getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
6652
+ getLibNameFromLibReference: () => getLibNameFromLibReference,
6648
6653
  getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
6649
6654
  getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
6650
6655
  getLineInfo: () => getLineInfo,
@@ -6717,6 +6722,8 @@ var require_typescript = __commonJS({
6717
6722
  getOptionFromName: () => getOptionFromName,
6718
6723
  getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
6719
6724
  getOptionsNameMap: () => getOptionsNameMap,
6725
+ getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
6726
+ getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
6720
6727
  getOrCreateEmitNode: () => getOrCreateEmitNode,
6721
6728
  getOrUpdate: () => getOrUpdate,
6722
6729
  getOriginalNode: () => getOriginalNode,
@@ -6753,7 +6760,6 @@ var require_typescript = __commonJS({
6753
6760
  getPrivateIdentifier: () => getPrivateIdentifier,
6754
6761
  getProperties: () => getProperties,
6755
6762
  getProperty: () => getProperty,
6756
- getPropertyArrayElementValue: () => getPropertyArrayElementValue,
6757
6763
  getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
6758
6764
  getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
6759
6765
  getPropertyNameFromType: () => getPropertyNameFromType,
@@ -7664,6 +7670,7 @@ var require_typescript = __commonJS({
7664
7670
  moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
7665
7671
  moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
7666
7672
  moduleSpecifiers: () => ts_moduleSpecifiers_exports,
7673
+ moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
7667
7674
  moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
7668
7675
  moveEmitHelpers: () => moveEmitHelpers,
7669
7676
  moveRangeEnd: () => moveRangeEnd,
@@ -8076,8 +8083,8 @@ var require_typescript = __commonJS({
8076
8083
  zipWith: () => zipWith
8077
8084
  });
8078
8085
  module3.exports = __toCommonJS(typescript_exports);
8079
- var versionMajorMinor = "5.7";
8080
- var version = "5.7.2";
8086
+ var versionMajorMinor = "5.8";
8087
+ var version = "5.8.1-rc";
8081
8088
  var Comparison = ((Comparison3) => {
8082
8089
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
8083
8090
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -12765,6 +12772,7 @@ ${lanes.join("\n")}
12765
12772
  ModuleKind3[ModuleKind3["ES2022"] = 7] = "ES2022";
12766
12773
  ModuleKind3[ModuleKind3["ESNext"] = 99] = "ESNext";
12767
12774
  ModuleKind3[ModuleKind3["Node16"] = 100] = "Node16";
12775
+ ModuleKind3[ModuleKind3["Node18"] = 101] = "Node18";
12768
12776
  ModuleKind3[ModuleKind3["NodeNext"] = 199] = "NodeNext";
12769
12777
  ModuleKind3[ModuleKind3["Preserve"] = 200] = "Preserve";
12770
12778
  return ModuleKind3;
@@ -13249,8 +13257,9 @@ ${lanes.join("\n")}
13249
13257
  OuterExpressionKinds2[OuterExpressionKinds2["NonNullAssertions"] = 4] = "NonNullAssertions";
13250
13258
  OuterExpressionKinds2[OuterExpressionKinds2["PartiallyEmittedExpressions"] = 8] = "PartiallyEmittedExpressions";
13251
13259
  OuterExpressionKinds2[OuterExpressionKinds2["ExpressionsWithTypeArguments"] = 16] = "ExpressionsWithTypeArguments";
13252
- OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 6] = "Assertions";
13253
- OuterExpressionKinds2[OuterExpressionKinds2["All"] = 31] = "All";
13260
+ OuterExpressionKinds2[OuterExpressionKinds2["Satisfies"] = 32] = "Satisfies";
13261
+ OuterExpressionKinds2[OuterExpressionKinds2["Assertions"] = 38] = "Assertions";
13262
+ OuterExpressionKinds2[OuterExpressionKinds2["All"] = 63] = "All";
13254
13263
  OuterExpressionKinds2[OuterExpressionKinds2["ExcludeJSDocTypeAssertion"] = -2147483648] = "ExcludeJSDocTypeAssertion";
13255
13264
  return OuterExpressionKinds2;
13256
13265
  })(OuterExpressionKinds || {});
@@ -15106,23 +15115,105 @@ ${lanes.join("\n")}
15106
15115
  function getNormalizedPathComponents(path, currentDirectory) {
15107
15116
  return reducePathComponents(getPathComponents(path, currentDirectory));
15108
15117
  }
15109
- function getNormalizedAbsolutePath(fileName, currentDirectory) {
15110
- return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
15118
+ function getNormalizedAbsolutePath(path, currentDirectory) {
15119
+ let rootLength = getRootLength(path);
15120
+ if (rootLength === 0 && currentDirectory) {
15121
+ path = combinePaths(currentDirectory, path);
15122
+ rootLength = getRootLength(path);
15123
+ } else {
15124
+ path = normalizeSlashes(path);
15125
+ }
15126
+ const simpleNormalized = simpleNormalizePath(path);
15127
+ if (simpleNormalized !== void 0) {
15128
+ return simpleNormalized.length > rootLength ? removeTrailingDirectorySeparator(simpleNormalized) : simpleNormalized;
15129
+ }
15130
+ const length2 = path.length;
15131
+ const root = path.substring(0, rootLength);
15132
+ let normalized;
15133
+ let index = rootLength;
15134
+ let segmentStart = index;
15135
+ let normalizedUpTo = index;
15136
+ let seenNonDotDotSegment = rootLength !== 0;
15137
+ while (index < length2) {
15138
+ segmentStart = index;
15139
+ let ch = path.charCodeAt(index);
15140
+ while (ch === 47 && index + 1 < length2) {
15141
+ index++;
15142
+ ch = path.charCodeAt(index);
15143
+ }
15144
+ if (index > segmentStart) {
15145
+ normalized != null ? normalized : normalized = path.substring(0, segmentStart - 1);
15146
+ segmentStart = index;
15147
+ }
15148
+ let segmentEnd = path.indexOf(directorySeparator, index + 1);
15149
+ if (segmentEnd === -1) {
15150
+ segmentEnd = length2;
15151
+ }
15152
+ const segmentLength = segmentEnd - segmentStart;
15153
+ if (segmentLength === 1 && path.charCodeAt(index) === 46) {
15154
+ normalized != null ? normalized : normalized = path.substring(0, normalizedUpTo);
15155
+ } else if (segmentLength === 2 && path.charCodeAt(index) === 46 && path.charCodeAt(index + 1) === 46) {
15156
+ if (!seenNonDotDotSegment) {
15157
+ if (normalized !== void 0) {
15158
+ normalized += normalized.length === rootLength ? ".." : "/..";
15159
+ } else {
15160
+ normalizedUpTo = index + 2;
15161
+ }
15162
+ } else if (normalized === void 0) {
15163
+ if (normalizedUpTo - 2 >= 0) {
15164
+ normalized = path.substring(0, Math.max(rootLength, path.lastIndexOf(directorySeparator, normalizedUpTo - 2)));
15165
+ } else {
15166
+ normalized = path.substring(0, normalizedUpTo);
15167
+ }
15168
+ } else {
15169
+ const lastSlash = normalized.lastIndexOf(directorySeparator);
15170
+ if (lastSlash !== -1) {
15171
+ normalized = normalized.substring(0, Math.max(rootLength, lastSlash));
15172
+ } else {
15173
+ normalized = root;
15174
+ }
15175
+ if (normalized.length === rootLength) {
15176
+ seenNonDotDotSegment = rootLength !== 0;
15177
+ }
15178
+ }
15179
+ } else if (normalized !== void 0) {
15180
+ if (normalized.length !== rootLength) {
15181
+ normalized += directorySeparator;
15182
+ }
15183
+ seenNonDotDotSegment = true;
15184
+ normalized += path.substring(segmentStart, segmentEnd);
15185
+ } else {
15186
+ seenNonDotDotSegment = true;
15187
+ normalizedUpTo = segmentEnd;
15188
+ }
15189
+ index = segmentEnd + 1;
15190
+ }
15191
+ return normalized != null ? normalized : length2 > rootLength ? removeTrailingDirectorySeparator(path) : path;
15111
15192
  }
15112
15193
  function normalizePath(path) {
15113
15194
  path = normalizeSlashes(path);
15195
+ let normalized = simpleNormalizePath(path);
15196
+ if (normalized !== void 0) {
15197
+ return normalized;
15198
+ }
15199
+ normalized = getNormalizedAbsolutePath(path, "");
15200
+ return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
15201
+ }
15202
+ function simpleNormalizePath(path) {
15114
15203
  if (!relativePathSegmentRegExp.test(path)) {
15115
15204
  return path;
15116
15205
  }
15117
- const simplified = path.replace(/\/\.\//g, "/").replace(/^\.\//, "");
15206
+ let simplified = path.replace(/\/\.\//g, "/");
15207
+ if (simplified.startsWith("./")) {
15208
+ simplified = simplified.slice(2);
15209
+ }
15118
15210
  if (simplified !== path) {
15119
15211
  path = simplified;
15120
15212
  if (!relativePathSegmentRegExp.test(path)) {
15121
15213
  return path;
15122
15214
  }
15123
15215
  }
15124
- const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
15125
- return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;
15216
+ return void 0;
15126
15217
  }
15127
15218
  function getPathWithoutRoot(pathComponents2) {
15128
15219
  if (pathComponents2.length === 0)
@@ -15555,6 +15646,7 @@ ${lanes.join("\n")}
15555
15646
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
15556
15647
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
15557
15648
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: diag(1293, 1, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),
15649
+ This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),
15558
15650
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
15559
15651
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
15560
15652
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
@@ -15569,8 +15661,8 @@ ${lanes.join("\n")}
15569
15661
  Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, 1, "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320", "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),
15570
15662
  Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, 1, "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321", "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),
15571
15663
  Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, 1, "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322", "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),
15572
- Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext: diag(1323, 1, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),
15573
- Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve: diag(1324, 1, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodene_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'nodenext', or 'preserve'."),
15664
+ Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext: diag(1323, 1, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', or 'nodenext'."),
15665
+ Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve: diag(1324, 1, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'nodenext', or 'preserve'."),
15574
15666
  Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, 1, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
15575
15667
  This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, 1, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
15576
15668
  String_literal_with_double_quotes_expected: diag(1327, 1, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
@@ -15587,7 +15679,7 @@ ${lanes.join("\n")}
15587
15679
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, 1, "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."),
15588
15680
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, 1, "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}')'?"),
15589
15681
  Class_constructor_may_not_be_an_accessor: diag(1341, 1, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
15590
- The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, 1, "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'."),
15682
+ The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext: diag(1343, 1, "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', 'node18', or 'nodenext'."),
15591
15683
  A_label_is_not_allowed_here: diag(1344, 1, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
15592
15684
  An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, 1, "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345", "An expression of type 'void' cannot be tested for truthiness."),
15593
15685
  This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, 1, "This_parameter_is_not_allowed_with_use_strict_directive_1346", "This parameter is not allowed with 'use strict' directive."),
@@ -15617,7 +15709,7 @@ ${lanes.join("\n")}
15617
15709
  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, "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."),
15618
15710
  _0_was_imported_here: diag(1376, 3, "_0_was_imported_here_1376", "'{0}' was imported here."),
15619
15711
  _0_was_exported_here: diag(1377, 3, "_0_was_exported_here_1377", "'{0}' was exported here."),
15620
- Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1, "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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
15712
+ Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, 1, "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', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
15621
15713
  An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, 1, "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'."),
15622
15714
  An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, 1, "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'."),
15623
15715
  Unexpected_token_Did_you_mean_or_rbrace: diag(1381, 1, "Unexpected_token_Did_you_mean_or_rbrace_1381", "Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),
@@ -15668,7 +15760,7 @@ ${lanes.join("\n")}
15668
15760
  File_redirects_to_file_0: diag(1429, 3, "File_redirects_to_file_0_1429", "File redirects to file '{0}'"),
15669
15761
  The_file_is_in_the_program_because_Colon: diag(1430, 3, "The_file_is_in_the_program_because_Colon_1430", "The file is in the program because:"),
15670
15762
  for_await_loops_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(1431, 1, "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431", "'for await' loops 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."),
15671
- Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
15763
+ Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, 1, "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432", "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
15672
15764
  Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: diag(1433, 1, "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433", "Neither decorators nor modifiers may be applied to 'this' parameters."),
15673
15765
  Unexpected_keyword_or_identifier: diag(1434, 1, "Unexpected_keyword_or_identifier_1434", "Unexpected keyword or identifier."),
15674
15766
  Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, 1, "Unknown_keyword_or_identifier_Did_you_mean_0_1435", "Unknown keyword or identifier. Did you mean '{0}'?"),
@@ -16310,9 +16402,9 @@ ${lanes.join("\n")}
16310
16402
  Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, 1, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
16311
16403
  Namespace_name_cannot_be_0: diag(2819, 1, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
16312
16404
  Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, 1, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
16313
- Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
16405
+ Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2821, 1, "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821", "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
16314
16406
  Import_assertions_cannot_be_used_with_type_only_imports_or_exports: diag(2822, 1, "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822", "Import assertions cannot be used with type-only imports or exports."),
16315
- Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve: diag(2823, 1, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),
16407
+ Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve: diag(2823, 1, "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823", "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),
16316
16408
  Cannot_find_namespace_0_Did_you_mean_1: diag(2833, 1, "Cannot_find_namespace_0_Did_you_mean_1_2833", "Cannot find namespace '{0}'. Did you mean '{1}'?"),
16317
16409
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path: diag(2834, 1, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),
16318
16410
  Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0: diag(2835, 1, "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835", "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),
@@ -16332,7 +16424,7 @@ ${lanes.join("\n")}
16332
16424
  The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined: diag(2851, 1, "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851", "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),
16333
16425
  await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(2852, 1, "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852", "'await using' statements are only allowed within async functions and at the top levels of modules."),
16334
16426
  await_using_statements_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(2853, 1, "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853", "'await using' statements 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."),
16335
- Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
16427
+ Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher: diag(2854, 1, "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854", "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),
16336
16428
  Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super: diag(2855, 1, "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855", "Class field '{0}' defined by the parent class is not accessible in the child class via super."),
16337
16429
  Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls: diag(2856, 1, "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856", "Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),
16338
16430
  Import_attributes_cannot_be_used_with_type_only_imports_or_exports: diag(2857, 1, "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857", "Import attributes cannot be used with type-only imports or exports."),
@@ -16358,6 +16450,7 @@ ${lanes.join("\n")}
16358
16450
  This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path: diag(2877, 1, "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877", "This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path."),
16359
16451
  This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files: diag(2878, 1, "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878", "This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files."),
16360
16452
  Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
16453
+ Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
16361
16454
  Import_declaration_0_is_using_private_name_1: diag(4e3, 1, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
16362
16455
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
16363
16456
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -16467,6 +16560,8 @@ ${lanes.join("\n")}
16467
16560
  Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
16468
16561
  Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
16469
16562
  One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
16563
+ This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
16564
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
16470
16565
  The_current_host_does_not_support_the_0_option: diag(5001, 1, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
16471
16566
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
16472
16567
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -17039,11 +17134,13 @@ ${lanes.join("\n")}
17039
17134
  Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
17040
17135
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
17041
17136
  Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any: diag(6720, 3, "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720", "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),
17137
+ Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."),
17042
17138
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
17043
17139
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
17044
17140
  Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
17045
17141
  Check_side_effect_imports: diag(6806, 3, "Check_side_effect_imports_6806", "Check side effect imports."),
17046
17142
  This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1, "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807", "This operation can be simplified. This shift is identical to `{0} {1} {2}`."),
17143
+ Enable_lib_replacement: diag(6808, 3, "Enable_lib_replacement_6808", "Enable lib replacement."),
17047
17144
  one_of_Colon: diag(6900, 3, "one_of_Colon_6900", "one of:"),
17048
17145
  one_or_more_Colon: diag(6901, 3, "one_or_more_Colon_6901", "one or more:"),
17049
17146
  type_Colon: diag(6902, 3, "type_Colon_6902", "type:"),
@@ -20879,6 +20976,7 @@ ${lanes.join("\n")}
20879
20976
  }
20880
20977
  var targetToLibMap = /* @__PURE__ */ new Map([
20881
20978
  [99, "lib.esnext.full.d.ts"],
20979
+ [11, "lib.es2024.full.d.ts"],
20882
20980
  [10, "lib.es2023.full.d.ts"],
20883
20981
  [9, "lib.es2022.full.d.ts"],
20884
20982
  [8, "lib.es2021.full.d.ts"],
@@ -20894,6 +20992,7 @@ ${lanes.join("\n")}
20894
20992
  const target = getEmitScriptTarget(options2);
20895
20993
  switch (target) {
20896
20994
  case 99:
20995
+ case 11:
20897
20996
  case 10:
20898
20997
  case 9:
20899
20998
  case 8:
@@ -23136,6 +23235,9 @@ ${lanes.join("\n")}
23136
23235
  "trunc",
23137
23236
  "fround",
23138
23237
  "cbrt"
23238
+ ],
23239
+ esnext: [
23240
+ "f16round"
23139
23241
  ]
23140
23242
  })),
23141
23243
  Map: new Map(Object.entries({
@@ -23305,6 +23407,10 @@ ${lanes.join("\n")}
23305
23407
  "setBigUint64",
23306
23408
  "getBigInt64",
23307
23409
  "getBigUint64"
23410
+ ],
23411
+ esnext: [
23412
+ "setFloat16",
23413
+ "getFloat16"
23308
23414
  ]
23309
23415
  })),
23310
23416
  BigInt: new Map(Object.entries({
@@ -23408,6 +23514,9 @@ ${lanes.join("\n")}
23408
23514
  "with"
23409
23515
  ]
23410
23516
  })),
23517
+ Float16Array: new Map(Object.entries({
23518
+ esnext: emptyArray
23519
+ })),
23411
23520
  Float32Array: new Map(Object.entries({
23412
23521
  es2022: [
23413
23522
  "at"
@@ -23600,7 +23709,7 @@ ${lanes.join("\n")}
23600
23709
  return (_a = symbol.declarations) == null ? void 0 : _a.find((d) => !isExternalModuleAugmentation(d) && !(isModuleDeclaration(d) && isGlobalScopeAugmentation(d)));
23601
23710
  }
23602
23711
  function isCommonJSContainingModuleKind(kind) {
23603
- return kind === 1 || kind === 100 || kind === 199;
23712
+ return kind === 1 || 100 <= kind && kind <= 199;
23604
23713
  }
23605
23714
  function isEffectiveExternalModule(node, compilerOptions) {
23606
23715
  return isExternalModule(node) || isCommonJSContainingModuleKind(getEmitModuleKind(compilerOptions)) && !!node.commonJsModuleIndicator;
@@ -24321,9 +24430,6 @@ ${lanes.join("\n")}
24321
24430
  return key === propName || key2 && key2 === propName ? callback(property) : void 0;
24322
24431
  });
24323
24432
  }
24324
- function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
24325
- return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
24326
- }
24327
24433
  function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
24328
24434
  if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {
24329
24435
  const expression = tsConfigSourceFile.statements[0].expression;
@@ -28306,7 +28412,7 @@ ${lanes.join("\n")}
28306
28412
  dependencies: ["module"],
28307
28413
  computeValue: (compilerOptions) => {
28308
28414
  const target = compilerOptions.target === 0 ? void 0 : compilerOptions.target;
28309
- return target != null ? target : compilerOptions.module === 100 && 9 || compilerOptions.module === 199 && 99 || 1;
28415
+ return target != null ? target : compilerOptions.module === 100 && 9 || compilerOptions.module === 101 && 9 || compilerOptions.module === 199 && 99 || 1;
28310
28416
  }
28311
28417
  },
28312
28418
  module: {
@@ -28325,6 +28431,7 @@ ${lanes.join("\n")}
28325
28431
  moduleResolution = 2;
28326
28432
  break;
28327
28433
  case 100:
28434
+ case 101:
28328
28435
  moduleResolution = 3;
28329
28436
  break;
28330
28437
  case 199:
@@ -28344,7 +28451,11 @@ ${lanes.join("\n")}
28344
28451
  moduleDetection: {
28345
28452
  dependencies: ["module", "target"],
28346
28453
  computeValue: (compilerOptions) => {
28347
- return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 || _computedOptions.module.computeValue(compilerOptions) === 199 ? 3 : 2);
28454
+ if (compilerOptions.moduleDetection !== void 0) {
28455
+ return compilerOptions.moduleDetection;
28456
+ }
28457
+ const moduleKind = _computedOptions.module.computeValue(compilerOptions);
28458
+ return 100 <= moduleKind && moduleKind <= 199 ? 3 : 2;
28348
28459
  }
28349
28460
  },
28350
28461
  isolatedModules: {
@@ -28361,6 +28472,7 @@ ${lanes.join("\n")}
28361
28472
  }
28362
28473
  switch (_computedOptions.module.computeValue(compilerOptions)) {
28363
28474
  case 100:
28475
+ case 101:
28364
28476
  case 199:
28365
28477
  case 200:
28366
28478
  return true;
@@ -28554,6 +28666,9 @@ ${lanes.join("\n")}
28554
28666
  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
28555
28667
  return moduleResolution >= 3 && moduleResolution <= 99 || moduleResolution === 100;
28556
28668
  }
28669
+ function moduleSupportsImportAttributes(moduleKind) {
28670
+ return 101 <= moduleKind && moduleKind <= 199 || moduleKind === 200 || moduleKind === 99;
28671
+ }
28557
28672
  function getStrictOptionValue(compilerOptions, flag) {
28558
28673
  return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
28559
28674
  }
@@ -29410,7 +29525,7 @@ ${lanes.join("\n")}
29410
29525
  return success && result === 10 && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
29411
29526
  }
29412
29527
  function isValidTypeOnlyAliasUseSite(useSite) {
29413
- return !!(useSite.flags & 33554432) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
29528
+ return !!(useSite.flags & 33554432) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
29414
29529
  }
29415
29530
  function isShorthandPropertyNameUseSite(useSite) {
29416
29531
  return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
@@ -30630,6 +30745,66 @@ ${lanes.join("\n")}
30630
30745
  function isNewScopeNode(node) {
30631
30746
  return isFunctionLike(node) || isJSDocSignature(node) || isMappedTypeNode(node);
30632
30747
  }
30748
+ function getLibNameFromLibReference(libReference) {
30749
+ return toFileNameLowerCase(libReference.fileName);
30750
+ }
30751
+ function getLibFileNameFromLibReference(libReference) {
30752
+ const libName = getLibNameFromLibReference(libReference);
30753
+ return libMap.get(libName);
30754
+ }
30755
+ function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
30756
+ return forEachProjectReference(
30757
+ /*projectReferences*/
30758
+ void 0,
30759
+ resolvedProjectReferences,
30760
+ (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
30761
+ );
30762
+ }
30763
+ function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
30764
+ let seenResolvedRefs;
30765
+ return worker(
30766
+ projectReferences,
30767
+ resolvedProjectReferences,
30768
+ /*parent*/
30769
+ void 0
30770
+ );
30771
+ function worker(projectReferences2, resolvedProjectReferences2, parent2) {
30772
+ if (cbRef) {
30773
+ const result = cbRef(projectReferences2, parent2);
30774
+ if (result)
30775
+ return result;
30776
+ }
30777
+ let skipChildren;
30778
+ return forEach(
30779
+ resolvedProjectReferences2,
30780
+ (resolvedRef, index) => {
30781
+ if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
30782
+ (skipChildren != null ? skipChildren : skipChildren = /* @__PURE__ */ new Set()).add(resolvedRef);
30783
+ return void 0;
30784
+ }
30785
+ const result = cbResolvedRef(resolvedRef, parent2, index);
30786
+ if (result || !resolvedRef)
30787
+ return result;
30788
+ (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
30789
+ }
30790
+ ) || forEach(
30791
+ resolvedProjectReferences2,
30792
+ (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
30793
+ );
30794
+ }
30795
+ }
30796
+ function getOptionsSyntaxByArrayElementValue(optionsObject, name, value) {
30797
+ return optionsObject && getPropertyArrayElementValue(optionsObject, name, value);
30798
+ }
30799
+ function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {
30800
+ return forEachPropertyAssignment(objectLiteral, propKey, (property) => isArrayLiteralExpression(property.initializer) ? find(property.initializer.elements, (element) => isStringLiteral(element) && element.text === elementValue) : void 0);
30801
+ }
30802
+ function getOptionsSyntaxByValue(optionsObject, name, value) {
30803
+ return forEachOptionsSyntaxByName(optionsObject, name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
30804
+ }
30805
+ function forEachOptionsSyntaxByName(optionsObject, name, callback) {
30806
+ return forEachPropertyAssignment(optionsObject, name, callback);
30807
+ }
30633
30808
  function createBaseNodeFactory() {
30634
30809
  let NodeConstructor2;
30635
30810
  let TokenConstructor2;
@@ -33771,6 +33946,8 @@ ${lanes.join("\n")}
33771
33946
  );
33772
33947
  node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);
33773
33948
  node.transformFlags |= propagateChildFlags(node.condition) | propagateChildFlags(node.questionToken) | propagateChildFlags(node.whenTrue) | propagateChildFlags(node.colonToken) | propagateChildFlags(node.whenFalse);
33949
+ node.flowNodeWhenFalse = void 0;
33950
+ node.flowNodeWhenTrue = void 0;
33774
33951
  return node;
33775
33952
  }
33776
33953
  function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {
@@ -35889,7 +36066,7 @@ ${lanes.join("\n")}
35889
36066
  function isIgnorableParen(node) {
35890
36067
  return isParenthesizedExpression(node) && nodeIsSynthesized(node) && nodeIsSynthesized(getSourceMapRange(node)) && nodeIsSynthesized(getCommentRange(node)) && !some(getSyntheticLeadingComments(node)) && !some(getSyntheticTrailingComments(node));
35891
36068
  }
35892
- function restoreOuterExpressions(outerExpression, innerExpression, kinds = 31) {
36069
+ function restoreOuterExpressions(outerExpression, innerExpression, kinds = 63) {
35893
36070
  if (outerExpression && isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {
35894
36071
  return updateOuterExpression(
35895
36072
  outerExpression,
@@ -35937,7 +36114,7 @@ ${lanes.join("\n")}
35937
36114
  function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers = false) {
35938
36115
  const callee = skipOuterExpressions(
35939
36116
  expression,
35940
- 31
36117
+ 63
35941
36118
  /* All */
35942
36119
  );
35943
36120
  let thisArg;
@@ -38996,7 +39173,7 @@ ${lanes.join("\n")}
38996
39173
  Debug.assertIsDefined(type);
38997
39174
  return type;
38998
39175
  }
38999
- function isOuterExpression(node, kinds = 31) {
39176
+ function isOuterExpression(node, kinds = 63) {
39000
39177
  switch (node.kind) {
39001
39178
  case 217:
39002
39179
  if (kinds & -2147483648 && isJSDocTypeAssertion(node)) {
@@ -39005,8 +39182,9 @@ ${lanes.join("\n")}
39005
39182
  return (kinds & 1) !== 0;
39006
39183
  case 216:
39007
39184
  case 234:
39008
- case 238:
39009
39185
  return (kinds & 2) !== 0;
39186
+ case 238:
39187
+ return (kinds & (2 | 32)) !== 0;
39010
39188
  case 233:
39011
39189
  return (kinds & 16) !== 0;
39012
39190
  case 235:
@@ -39016,13 +39194,13 @@ ${lanes.join("\n")}
39016
39194
  }
39017
39195
  return false;
39018
39196
  }
39019
- function skipOuterExpressions(node, kinds = 31) {
39197
+ function skipOuterExpressions(node, kinds = 63) {
39020
39198
  while (isOuterExpression(node, kinds)) {
39021
39199
  node = node.expression;
39022
39200
  }
39023
39201
  return node;
39024
39202
  }
39025
- function walkUpOuterExpressions(node, kinds = 31) {
39203
+ function walkUpOuterExpressions(node, kinds = 63) {
39026
39204
  let parent2 = node.parent;
39027
39205
  while (isOuterExpression(parent2, kinds)) {
39028
39206
  parent2 = parent2.parent;
@@ -48361,6 +48539,7 @@ ${lanes.join("\n")}
48361
48539
  const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
48362
48540
  const res = finishNode(node, pos);
48363
48541
  if (usedBrace) {
48542
+ skipWhitespace();
48364
48543
  parseExpected(
48365
48544
  20
48366
48545
  /* CloseBraceToken */
@@ -49463,6 +49642,8 @@ ${lanes.join("\n")}
49463
49642
  ["esnext.regexp", "lib.es2024.regexp.d.ts"],
49464
49643
  ["esnext.string", "lib.es2024.string.d.ts"],
49465
49644
  ["esnext.iterator", "lib.esnext.iterator.d.ts"],
49645
+ ["esnext.promise", "lib.esnext.promise.d.ts"],
49646
+ ["esnext.float16", "lib.esnext.float16.d.ts"],
49466
49647
  ["decorators", "lib.decorators.d.ts"],
49467
49648
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
49468
49649
  ];
@@ -49797,6 +49978,7 @@ ${lanes.join("\n")}
49797
49978
  es2022: 7,
49798
49979
  esnext: 99,
49799
49980
  node16: 100,
49981
+ node18: 101,
49800
49982
  nodenext: 199,
49801
49983
  preserve: 200
49802
49984
  /* Preserve */
@@ -50052,6 +50234,23 @@ ${lanes.join("\n")}
50052
50234
  affectsBuildInfo: true,
50053
50235
  affectsSemanticDiagnostics: true
50054
50236
  },
50237
+ {
50238
+ name: "erasableSyntaxOnly",
50239
+ type: "boolean",
50240
+ category: Diagnostics.Interop_Constraints,
50241
+ description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
50242
+ defaultValueDescription: false,
50243
+ affectsBuildInfo: true,
50244
+ affectsSemanticDiagnostics: true
50245
+ },
50246
+ {
50247
+ name: "libReplacement",
50248
+ type: "boolean",
50249
+ affectsProgramStructure: true,
50250
+ category: Diagnostics.Language_and_Environment,
50251
+ description: Diagnostics.Enable_lib_replacement,
50252
+ defaultValueDescription: true
50253
+ },
50055
50254
  // Strict Type Checks
50056
50255
  {
50057
50256
  name: "strict",
@@ -54398,9 +54597,7 @@ ${lanes.join("\n")}
54398
54597
  }
54399
54598
  function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson = true) {
54400
54599
  const packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : void 0;
54401
- const packageJsonContent = packageInfo && packageInfo.contents.packageJsonContent;
54402
- const versionPaths = packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state);
54403
- return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths), state);
54600
+ return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo), state);
54404
54601
  }
54405
54602
  function getEntrypointsFromPackageJsonInfo(packageJsonInfo, options2, host, cache, resolveJs) {
54406
54603
  if (!resolveJs && packageJsonInfo.contents.resolvedEntrypoints !== void 0) {
@@ -54418,8 +54615,7 @@ ${lanes.join("\n")}
54418
54615
  /*onlyRecordFailures*/
54419
54616
  false,
54420
54617
  loadPackageJsonMainState,
54421
- packageJsonInfo.contents.packageJsonContent,
54422
- getVersionPathsOfPackageJsonInfo(packageJsonInfo, loadPackageJsonMainState)
54618
+ packageJsonInfo
54423
54619
  );
54424
54620
  entrypoints = append(entrypoints, mainResolution == null ? void 0 : mainResolution.path);
54425
54621
  if (features & 8 && packageJsonInfo.contents.packageJsonContent.exports) {
@@ -54638,13 +54834,14 @@ ${lanes.join("\n")}
54638
54834
  (_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath);
54639
54835
  }
54640
54836
  }
54641
- function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {
54837
+ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJson) {
54838
+ const versionPaths = packageJson && getVersionPathsOfPackageJsonInfo(packageJson, state);
54642
54839
  let packageFile;
54643
- if (jsonContent) {
54840
+ if (packageJson && arePathsEqual(packageJson == null ? void 0 : packageJson.packageDirectory, candidate, state.host)) {
54644
54841
  if (state.isConfigLookup) {
54645
- packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);
54842
+ packageFile = readPackageJsonTSConfigField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state);
54646
54843
  } else {
54647
- packageFile = extensions & 4 && readPackageJsonTypesFields(jsonContent, candidate, state) || extensions & (3 | 4) && readPackageJsonMainField(jsonContent, candidate, state) || void 0;
54844
+ packageFile = extensions & 4 && readPackageJsonTypesFields(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || extensions & (3 | 4) && readPackageJsonMainField(packageJson.contents.packageJsonContent, packageJson.packageDirectory, state) || void 0;
54648
54845
  }
54649
54846
  }
54650
54847
  const loader = (extensions2, candidate2, onlyRecordFailures2, state2) => {
@@ -54663,7 +54860,7 @@ ${lanes.join("\n")}
54663
54860
  const features = state2.features;
54664
54861
  const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;
54665
54862
  state2.candidateIsFromPackageJsonField = true;
54666
- if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
54863
+ if ((packageJson == null ? void 0 : packageJson.contents.packageJsonContent.type) !== "module") {
54667
54864
  state2.features &= ~32;
54668
54865
  }
54669
54866
  const result = nodeLoadModuleByRelativeName(
@@ -54943,6 +55140,8 @@ ${lanes.join("\n")}
54943
55140
  function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
54944
55141
  return loadModuleFromTargetExportOrImport;
54945
55142
  function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) {
55143
+ var _a2, _b2;
55144
+ var _a, _b;
54946
55145
  if (typeof target === "string") {
54947
55146
  if (!pattern && subpath.length > 0 && !endsWith(target, "/")) {
54948
55147
  if (state.traceEnabled) {
@@ -54971,6 +55170,8 @@ ${lanes.join("\n")}
54971
55170
  redirectedReference,
54972
55171
  state.conditions
54973
55172
  );
55173
+ (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...(_a2 = result.failedLookupLocations) != null ? _a2 : emptyArray);
55174
+ (_b = state.affectingLocations) == null ? void 0 : _b.push(...(_b2 = result.affectingLocations) != null ? _b2 : emptyArray);
54974
55175
  return toSearchResult(
54975
55176
  result.resolvedModule ? {
54976
55177
  path: result.resolvedModule.resolvedFileName,
@@ -55081,21 +55282,21 @@ ${lanes.join("\n")}
55081
55282
  void 0
55082
55283
  );
55083
55284
  function toAbsolutePath(path) {
55084
- var _a, _b;
55285
+ var _a22, _b22;
55085
55286
  if (path === void 0)
55086
55287
  return path;
55087
- return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
55288
+ return getNormalizedAbsolutePath(path, (_b22 = (_a22 = state.host).getCurrentDirectory) == null ? void 0 : _b22.call(_a22));
55088
55289
  }
55089
55290
  function combineDirectoryPath(root, dir) {
55090
55291
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
55091
55292
  }
55092
55293
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
55093
- var _a, _b, _c, _d;
55294
+ var _a22, _b22, _c, _d;
55094
55295
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
55095
55296
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
55096
55297
  const commonSourceDirGuesses = [];
55097
55298
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
55098
- const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
55299
+ const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b22 = (_a22 = state.host).getCurrentDirectory) == null ? void 0 : _b22.call(_a22)) || "", getCanonicalFileName));
55099
55300
  commonSourceDirGuesses.push(commonDir);
55100
55301
  } else if (state.requestContainingDirectory) {
55101
55302
  const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
@@ -55161,8 +55362,8 @@ ${lanes.join("\n")}
55161
55362
  }
55162
55363
  return void 0;
55163
55364
  function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
55164
- var _a2, _b2;
55165
- const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess;
55365
+ var _a3, _b3;
55366
+ const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess;
55166
55367
  const candidateDirectories = [];
55167
55368
  if (state.compilerOptions.declarationDir) {
55168
55369
  candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
@@ -55212,7 +55413,7 @@ ${lanes.join("\n")}
55212
55413
  );
55213
55414
  }
55214
55415
  function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {
55215
- const mode = state.features === 0 ? void 0 : state.features & 32 ? 99 : 1;
55416
+ const mode = state.features === 0 ? void 0 : state.features & 32 || state.conditions.includes("import") ? 99 : 1;
55216
55417
  const priorityExtensions = extensions & (1 | 4);
55217
55418
  const secondaryExtensions = extensions & ~(1 | 4);
55218
55419
  if (priorityExtensions) {
@@ -55294,8 +55495,7 @@ ${lanes.join("\n")}
55294
55495
  candidate,
55295
55496
  !nodeModulesDirectoryExists,
55296
55497
  state,
55297
- packageInfo.contents.packageJsonContent,
55298
- getVersionPathsOfPackageJsonInfo(packageInfo, state)
55498
+ packageInfo
55299
55499
  );
55300
55500
  return withPackageId(packageInfo, fromDirectory, state);
55301
55501
  }
@@ -55305,10 +55505,9 @@ ${lanes.join("\n")}
55305
55505
  candidate2,
55306
55506
  onlyRecordFailures,
55307
55507
  state2,
55308
- packageInfo && packageInfo.contents.packageJsonContent,
55309
- packageInfo && getVersionPathsOfPackageJsonInfo(packageInfo, state2)
55508
+ packageInfo
55310
55509
  );
55311
- if (!pathAndExtension && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32) {
55510
+ if (!pathAndExtension && !rest && packageInfo && (packageInfo.contents.packageJsonContent.exports === void 0 || packageInfo.contents.packageJsonContent.exports === null) && state2.features & 32) {
55312
55511
  pathAndExtension = loadModuleFromFile(extensions2, combinePaths(candidate2, "index.js"), onlyRecordFailures, state2);
55313
55512
  }
55314
55513
  return withPackageId(packageInfo, pathAndExtension, state2);
@@ -55758,6 +55957,7 @@ ${lanes.join("\n")}
55758
55957
  var preSwitchCaseFlow;
55759
55958
  var activeLabelList;
55760
55959
  var hasExplicitReturn;
55960
+ var inReturnPosition;
55761
55961
  var hasFlowEffects;
55762
55962
  var emitFlags;
55763
55963
  var inStrictMode;
@@ -55830,6 +56030,7 @@ ${lanes.join("\n")}
55830
56030
  currentExceptionTarget = void 0;
55831
56031
  activeLabelList = void 0;
55832
56032
  hasExplicitReturn = false;
56033
+ inReturnPosition = false;
55833
56034
  hasFlowEffects = false;
55834
56035
  inAssignmentPattern = false;
55835
56036
  emitFlags = 0;
@@ -56089,6 +56290,9 @@ ${lanes.join("\n")}
56089
56290
  const saveContainer = container;
56090
56291
  const saveThisParentContainer = thisParentContainer;
56091
56292
  const savedBlockScopeContainer = blockScopeContainer;
56293
+ const savedInReturnPosition = inReturnPosition;
56294
+ if (node.kind === 219 && node.body.kind !== 241)
56295
+ inReturnPosition = true;
56092
56296
  if (containerFlags & 1) {
56093
56297
  if (node.kind !== 219) {
56094
56298
  thisParentContainer = container;
@@ -56171,6 +56375,7 @@ ${lanes.join("\n")}
56171
56375
  } else {
56172
56376
  bindChildren(node);
56173
56377
  }
56378
+ inReturnPosition = savedInReturnPosition;
56174
56379
  container = saveContainer;
56175
56380
  thisParentContainer = saveThisParentContainer;
56176
56381
  blockScopeContainer = savedBlockScopeContainer;
@@ -56192,6 +56397,9 @@ ${lanes.join("\n")}
56192
56397
  const saveInAssignmentPattern = inAssignmentPattern;
56193
56398
  inAssignmentPattern = false;
56194
56399
  if (checkUnreachable(node)) {
56400
+ if (canHaveFlowNode(node) && node.flowNode) {
56401
+ node.flowNode = void 0;
56402
+ }
56195
56403
  bindEachChild(node);
56196
56404
  bindJSDoc(node);
56197
56405
  inAssignmentPattern = saveInAssignmentPattern;
@@ -56384,7 +56592,9 @@ ${lanes.join("\n")}
56384
56592
  case 36:
56385
56593
  case 37:
56386
56594
  case 38:
56387
- return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) || isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right) || (isBooleanLiteral(expr.right) && isNarrowingExpression(expr.left) || isBooleanLiteral(expr.left) && isNarrowingExpression(expr.right));
56595
+ const left = skipParentheses(expr.left);
56596
+ const right = skipParentheses(expr.right);
56597
+ return isNarrowableOperand(left) || isNarrowableOperand(right) || isNarrowingTypeofOperands(right, left) || isNarrowingTypeofOperands(left, right) || (isBooleanLiteral(right) && isNarrowingExpression(left) || isBooleanLiteral(left) && isNarrowingExpression(right));
56388
56598
  case 104:
56389
56599
  return isNarrowableOperand(expr.left);
56390
56600
  case 103:
@@ -56576,13 +56786,16 @@ ${lanes.join("\n")}
56576
56786
  function bindForStatement(node) {
56577
56787
  const preLoopLabel = setContinueTarget(node, createLoopLabel());
56578
56788
  const preBodyLabel = createBranchLabel();
56789
+ const preIncrementorLabel = createBranchLabel();
56579
56790
  const postLoopLabel = createBranchLabel();
56580
56791
  bind(node.initializer);
56581
56792
  addAntecedent(preLoopLabel, currentFlow);
56582
56793
  currentFlow = preLoopLabel;
56583
56794
  bindCondition(node.condition, preBodyLabel, postLoopLabel);
56584
56795
  currentFlow = finishFlowLabel(preBodyLabel);
56585
- bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);
56796
+ bindIterativeStatement(node.statement, postLoopLabel, preIncrementorLabel);
56797
+ addAntecedent(preIncrementorLabel, currentFlow);
56798
+ currentFlow = finishFlowLabel(preIncrementorLabel);
56586
56799
  bind(node.incrementor);
56587
56800
  addAntecedent(preLoopLabel, currentFlow);
56588
56801
  currentFlow = finishFlowLabel(postLoopLabel);
@@ -56619,7 +56832,10 @@ ${lanes.join("\n")}
56619
56832
  currentFlow = finishFlowLabel(postIfLabel);
56620
56833
  }
56621
56834
  function bindReturnOrThrow(node) {
56835
+ const savedInReturnPosition = inReturnPosition;
56836
+ inReturnPosition = true;
56622
56837
  bind(node.expression);
56838
+ inReturnPosition = savedInReturnPosition;
56623
56839
  if (node.kind === 253) {
56624
56840
  hasExplicitReturn = true;
56625
56841
  if (currentReturnTarget) {
@@ -56984,10 +57200,16 @@ ${lanes.join("\n")}
56984
57200
  hasFlowEffects = false;
56985
57201
  bindCondition(node.condition, trueLabel, falseLabel);
56986
57202
  currentFlow = finishFlowLabel(trueLabel);
57203
+ if (inReturnPosition) {
57204
+ node.flowNodeWhenTrue = currentFlow;
57205
+ }
56987
57206
  bind(node.questionToken);
56988
57207
  bind(node.whenTrue);
56989
57208
  addAntecedent(postExpressionLabel, currentFlow);
56990
57209
  currentFlow = finishFlowLabel(falseLabel);
57210
+ if (inReturnPosition) {
57211
+ node.flowNodeWhenFalse = currentFlow;
57212
+ }
56991
57213
  bind(node.colonToken);
56992
57214
  bind(node.whenFalse);
56993
57215
  addAntecedent(postExpressionLabel, currentFlow);
@@ -60729,6 +60951,7 @@ ${lanes.join("\n")}
60729
60951
  getNumberLiteralType,
60730
60952
  getBigIntType: () => bigintType,
60731
60953
  getBigIntLiteralType,
60954
+ getUnknownType: () => unknownType,
60732
60955
  createPromiseType,
60733
60956
  createArrayType,
60734
60957
  getElementTypeOfArrayType,
@@ -60849,8 +61072,14 @@ ${lanes.join("\n")}
60849
61072
  getMemberOverrideModifierStatus,
60850
61073
  isTypeParameterPossiblyReferenced,
60851
61074
  typeHasCallOrConstructSignatures,
60852
- getSymbolFlags
61075
+ getSymbolFlags,
61076
+ getTypeArgumentsForResolvedSignature
60853
61077
  };
61078
+ function getTypeArgumentsForResolvedSignature(signature) {
61079
+ if (signature.mapper === void 0)
61080
+ return void 0;
61081
+ return instantiateTypes((signature.target || signature).typeParameters, signature.mapper);
61082
+ }
60854
61083
  function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) {
60855
61084
  const candidatesSet = /* @__PURE__ */ new Set();
60856
61085
  const candidates = [];
@@ -61241,6 +61470,12 @@ ${lanes.join("\n")}
61241
61470
  /*isReadonly*/
61242
61471
  true
61243
61472
  );
61473
+ var anyBaseTypeIndexInfo = createIndexInfo(
61474
+ stringType,
61475
+ anyType,
61476
+ /*isReadonly*/
61477
+ false
61478
+ );
61244
61479
  var iterationTypesCache = /* @__PURE__ */ new Map();
61245
61480
  var noIterationTypes = {
61246
61481
  get yieldType() {
@@ -62362,9 +62597,9 @@ ${lanes.join("\n")}
62362
62597
  const containerKind = grandparent.parent.kind;
62363
62598
  if (containerKind === 264 && heritageKind === 96) {
62364
62599
  error2(errorLocation, Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types, unescapeLeadingUnderscores(name));
62365
- } else if (containerKind === 263 && heritageKind === 96) {
62600
+ } else if (isClassLike(grandparent.parent) && heritageKind === 96) {
62366
62601
  error2(errorLocation, Diagnostics.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values, unescapeLeadingUnderscores(name));
62367
- } else if (containerKind === 263 && heritageKind === 119) {
62602
+ } else if (isClassLike(grandparent.parent) && heritageKind === 119) {
62368
62603
  error2(errorLocation, Diagnostics.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types, unescapeLeadingUnderscores(name));
62369
62604
  }
62370
62605
  } else {
@@ -63586,7 +63821,7 @@ ${lanes.join("\n")}
63586
63821
  moduleReference
63587
63822
  );
63588
63823
  }
63589
- if (errorNode && (moduleResolutionKind === 3 || moduleResolutionKind === 99)) {
63824
+ if (errorNode && (moduleKind === 100 || moduleKind === 101)) {
63590
63825
  const isSyncImport = currentSourceFile.impliedNodeFormat === 1 && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
63591
63826
  const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
63592
63827
  if (isSyncImport && sourceFile.impliedNodeFormat === 99 && !hasResolutionModeOverride(overrideHost)) {
@@ -64942,12 +65177,7 @@ ${lanes.join("\n")}
64942
65177
  enterNewScope(context, node) {
64943
65178
  if (isFunctionLike(node) || isJSDocSignature(node)) {
64944
65179
  const signature = getSignatureFromDeclaration(node);
64945
- const expandedParams = getExpandedParameters(
64946
- signature,
64947
- /*skipUnionExpanding*/
64948
- true
64949
- )[0];
64950
- return enterNewScope(context, node, expandedParams, signature.typeParameters);
65180
+ return enterNewScope(context, node, signature.parameters, signature.typeParameters);
64951
65181
  } else {
64952
65182
  const typeParameters = isConditionalTypeNode(node) ? getInferTypeParameters(node) : [getDeclaredTypeOfTypeParameter(getSymbolOfDeclaration(node.typeParameter))];
64953
65183
  return enterNewScope(
@@ -65028,7 +65258,7 @@ ${lanes.join("\n")}
65028
65258
  return true;
65029
65259
  }
65030
65260
  if (requiresAddingUndefined && annotationType) {
65031
- annotationType = getOptionalType(annotationType, !isParameter(node));
65261
+ annotationType = addOptionality(annotationType, !isParameter(node));
65032
65262
  }
65033
65263
  return !!annotationType && typeNodeIsEquivalentToType(node, type, annotationType) && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type);
65034
65264
  }
@@ -65697,7 +65927,7 @@ ${lanes.join("\n")}
65697
65927
  function shouldWriteTypeOfFunctionSymbol() {
65698
65928
  var _a3;
65699
65929
  const isStaticMethodSymbol = !!(symbol.flags & 8192) && // typeof static method
65700
- some(symbol.declarations, (declaration) => isStatic(declaration));
65930
+ some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration)));
65701
65931
  const isNonLocalFunctionSymbol = !!(symbol.flags & 16) && (symbol.parent || // is exported function symbol
65702
65932
  forEach(
65703
65933
  symbol.declarations,
@@ -66026,6 +66256,44 @@ ${lanes.join("\n")}
66026
66256
  ids.unshift(state);
66027
66257
  return ids;
66028
66258
  }
66259
+ function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) {
66260
+ if (indexInfo.components) {
66261
+ const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => {
66262
+ var _a2;
66263
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible(
66264
+ e.name.expression,
66265
+ context2.enclosingDeclaration,
66266
+ /*shouldComputeAliasToMakeVisible*/
66267
+ false
66268
+ )) == null ? void 0 : _a2.accessibility) === 0);
66269
+ });
66270
+ if (allComponentComputedNamesSerializable) {
66271
+ const newComponents = filter(indexInfo.components, (e) => {
66272
+ return !hasLateBindableName(e);
66273
+ });
66274
+ return map(newComponents, (e) => {
66275
+ trackComputedName(e.name.expression, context2.enclosingDeclaration, context2);
66276
+ return setTextRange2(
66277
+ context2,
66278
+ factory.createPropertySignature(
66279
+ indexInfo.isReadonly ? [factory.createModifier(
66280
+ 148
66281
+ /* ReadonlyKeyword */
66282
+ )] : void 0,
66283
+ e.name,
66284
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(
66285
+ 58
66286
+ /* QuestionToken */
66287
+ ) : void 0,
66288
+ typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2)
66289
+ ),
66290
+ e
66291
+ );
66292
+ });
66293
+ }
66294
+ }
66295
+ return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)];
66296
+ }
66029
66297
  function createTypeNodesFromResolvedType(resolvedType) {
66030
66298
  if (checkTruncationLength(context)) {
66031
66299
  if (context.flags & 1) {
@@ -66051,7 +66319,7 @@ ${lanes.join("\n")}
66051
66319
  typeElements.push(signatureToSignatureDeclarationHelper(signature, 180, context));
66052
66320
  }
66053
66321
  for (const info of resolvedType.indexInfos) {
66054
- typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 ? createElidedInformationPlaceholder(context) : void 0));
66322
+ typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 ? createElidedInformationPlaceholder(context) : void 0));
66055
66323
  }
66056
66324
  const properties = resolvedType.properties;
66057
66325
  if (!properties) {
@@ -66825,7 +67093,7 @@ ${lanes.join("\n")}
66825
67093
  return;
66826
67094
  const firstIdentifier = getFirstIdentifier(accessExpression);
66827
67095
  const name = resolveName(
66828
- firstIdentifier,
67096
+ enclosingDeclaration,
66829
67097
  firstIdentifier.escapedText,
66830
67098
  111551 | 1048576,
66831
67099
  /*nameNotFoundMessage*/
@@ -66840,6 +67108,24 @@ ${lanes.join("\n")}
66840
67108
  111551
66841
67109
  /* Value */
66842
67110
  );
67111
+ } else {
67112
+ const fallback = resolveName(
67113
+ firstIdentifier,
67114
+ firstIdentifier.escapedText,
67115
+ 111551 | 1048576,
67116
+ /*nameNotFoundMessage*/
67117
+ void 0,
67118
+ /*isUse*/
67119
+ true
67120
+ );
67121
+ if (fallback) {
67122
+ context.tracker.trackSymbol(
67123
+ fallback,
67124
+ enclosingDeclaration,
67125
+ 111551
67126
+ /* Value */
67127
+ );
67128
+ }
66843
67129
  }
66844
67130
  }
66845
67131
  function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
@@ -71937,12 +72223,7 @@ ${lanes.join("\n")}
71937
72223
  1
71938
72224
  /* Construct */
71939
72225
  ));
71940
- const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(
71941
- stringType,
71942
- anyType,
71943
- /*isReadonly*/
71944
- false
71945
- )];
72226
+ const inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [anyBaseTypeIndexInfo];
71946
72227
  indexInfos = concatenate(indexInfos, filter(inheritedIndexInfos, (info) => !findIndexInfo(indexInfos, info.keyType)));
71947
72228
  }
71948
72229
  }
@@ -72525,12 +72806,7 @@ ${lanes.join("\n")}
72525
72806
  members = createSymbolTable(getNamedOrIndexSignatureMembers(members));
72526
72807
  addInheritedMembers(members, getPropertiesOfType(baseConstructorType));
72527
72808
  } else if (baseConstructorType === anyType) {
72528
- baseConstructorIndexInfo = createIndexInfo(
72529
- stringType,
72530
- anyType,
72531
- /*isReadonly*/
72532
- false
72533
- );
72809
+ baseConstructorIndexInfo = anyBaseTypeIndexInfo;
72534
72810
  }
72535
72811
  }
72536
72812
  const indexSymbol = getIndexSymbolFromSymbolTable(members);
@@ -74256,8 +74532,8 @@ ${lanes.join("\n")}
74256
74532
  /* Index */
74257
74533
  );
74258
74534
  }
74259
- function createIndexInfo(keyType, type, isReadonly, declaration) {
74260
- return { keyType, type, isReadonly, declaration };
74535
+ function createIndexInfo(keyType, type, isReadonly, declaration, components) {
74536
+ return { keyType, type, isReadonly, declaration, components };
74261
74537
  }
74262
74538
  function getIndexInfosOfSymbol(symbol) {
74263
74539
  const indexSymbol = getIndexSymbol(symbol);
@@ -74799,6 +75075,9 @@ ${lanes.join("\n")}
74799
75075
  case "Number":
74800
75076
  checkNoTypeArguments(node);
74801
75077
  return numberType;
75078
+ case "BigInt":
75079
+ checkNoTypeArguments(node);
75080
+ return bigintType;
74802
75081
  case "Boolean":
74803
75082
  checkNoTypeArguments(node);
74804
75083
  return booleanType;
@@ -77493,7 +77772,7 @@ ${lanes.join("\n")}
77493
77772
  return result;
77494
77773
  }
77495
77774
  function getIndexInfoWithReadonly(info, readonly) {
77496
- return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;
77775
+ return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info;
77497
77776
  }
77498
77777
  function createLiteralType(flags, value, symbol, regularType) {
77499
77778
  const type = createTypeWithSymbol(flags, symbol);
@@ -78262,7 +78541,7 @@ ${lanes.join("\n")}
78262
78541
  return type.restrictiveInstantiation;
78263
78542
  }
78264
78543
  function instantiateIndexInfo(info, mapper) {
78265
- return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);
78544
+ return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components);
78266
78545
  }
78267
78546
  function isContextSensitive(node) {
78268
78547
  Debug.assert(node.kind !== 174 || isObjectLiteralMethod(node));
@@ -82681,7 +82960,7 @@ ${lanes.join("\n")}
82681
82960
  }
82682
82961
  }
82683
82962
  }
82684
- const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));
82963
+ const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components)));
82685
82964
  result.objectFlags |= getObjectFlags(type) & (4096 | 262144);
82686
82965
  return result;
82687
82966
  }
@@ -84227,6 +84506,7 @@ ${lanes.join("\n")}
84227
84506
  return target.kind === 108;
84228
84507
  case 235:
84229
84508
  case 217:
84509
+ case 238:
84230
84510
  return isMatchingReference(source.expression, target);
84231
84511
  case 211:
84232
84512
  case 212:
@@ -86271,6 +86551,7 @@ ${lanes.join("\n")}
86271
86551
  if (checkDerived) {
86272
86552
  return filterType(type, (t) => !isTypeDerivedFrom(t, candidate));
86273
86553
  }
86554
+ type = type.flags & 2 ? unknownUnionType : type;
86274
86555
  const trueType2 = getNarrowedType(
86275
86556
  type,
86276
86557
  candidate,
@@ -86279,7 +86560,7 @@ ${lanes.join("\n")}
86279
86560
  /*checkDerived*/
86280
86561
  false
86281
86562
  );
86282
- return filterType(type, (t) => !isTypeSubsetOf(t, trueType2));
86563
+ return recombineUnknownType(filterType(type, (t) => !isTypeSubsetOf(t, trueType2)));
86283
86564
  }
86284
86565
  if (type.flags & 3) {
86285
86566
  return candidate;
@@ -86392,6 +86673,7 @@ ${lanes.join("\n")}
86392
86673
  return narrowTypeByCallExpression(type, expr, assumeTrue);
86393
86674
  case 217:
86394
86675
  case 235:
86676
+ case 238:
86395
86677
  return narrowType(type, expr.expression, assumeTrue);
86396
86678
  case 226:
86397
86679
  return narrowTypeByBinaryExpression(type, expr, assumeTrue);
@@ -86798,12 +87080,13 @@ ${lanes.join("\n")}
86798
87080
  const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
86799
87081
  const jsxFactoryNamespace = getJsxNamespace(node);
86800
87082
  const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
87083
+ const shouldFactoryRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3;
86801
87084
  let jsxFactorySym;
86802
87085
  if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
86803
87086
  jsxFactorySym = resolveName(
86804
87087
  jsxFactoryLocation,
86805
87088
  jsxFactoryNamespace,
86806
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
87089
+ shouldFactoryRefErr ? 111551 : 111551 & ~384,
86807
87090
  jsxFactoryRefErr,
86808
87091
  /*isUse*/
86809
87092
  true
@@ -86817,12 +87100,13 @@ ${lanes.join("\n")}
86817
87100
  }
86818
87101
  if (isJsxOpeningFragment(node)) {
86819
87102
  const file = getSourceFileOfNode(node);
86820
- const localJsxNamespace = getLocalJsxNamespace(file);
86821
- if (localJsxNamespace) {
87103
+ const entity = getJsxFactoryEntity(file);
87104
+ if (entity) {
87105
+ const localJsxNamespace = getFirstIdentifier(entity).escapedText;
86822
87106
  resolveName(
86823
87107
  jsxFactoryLocation,
86824
87108
  localJsxNamespace,
86825
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
87109
+ shouldFactoryRefErr ? 111551 : 111551 & ~384,
86826
87110
  jsxFactoryRefErr,
86827
87111
  /*isUse*/
86828
87112
  true
@@ -89194,12 +89478,22 @@ ${lanes.join("\n")}
89194
89478
  /* ESSymbol */
89195
89479
  );
89196
89480
  }
89481
+ function isSymbolWithComputedName(symbol) {
89482
+ var _a;
89483
+ const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
89484
+ return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name);
89485
+ }
89197
89486
  function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) {
89487
+ var _a;
89198
89488
  const propTypes = [];
89489
+ let components;
89199
89490
  for (let i = offset; i < properties.length; i++) {
89200
89491
  const prop = properties[i];
89201
89492
  if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {
89202
89493
  propTypes.push(getTypeOfSymbol(properties[i]));
89494
+ if (isSymbolWithComputedName(properties[i])) {
89495
+ components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]);
89496
+ }
89203
89497
  }
89204
89498
  }
89205
89499
  const unionType = propTypes.length ? getUnionType(
@@ -89207,7 +89501,14 @@ ${lanes.join("\n")}
89207
89501
  2
89208
89502
  /* Subtype */
89209
89503
  ) : undefinedType;
89210
- return createIndexInfo(keyType, unionType, isReadonly);
89504
+ return createIndexInfo(
89505
+ keyType,
89506
+ unionType,
89507
+ isReadonly,
89508
+ /*declaration*/
89509
+ void 0,
89510
+ components
89511
+ );
89211
89512
  }
89212
89513
  function getImmediateAliasedSymbol(symbol) {
89213
89514
  Debug.assert((symbol.flags & 2097152) !== 0, "Should only get Alias here.");
@@ -89799,6 +90100,9 @@ ${lanes.join("\n")}
89799
90100
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);
89800
90101
  }
89801
90102
  function getJsxElementChildrenPropertyName(jsxNamespace) {
90103
+ if (compilerOptions.jsx === 4 || compilerOptions.jsx === 5) {
90104
+ return "children";
90105
+ }
89802
90106
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);
89803
90107
  }
89804
90108
  function getUninstantiatedJsxSignaturesOfType(elementType, caller) {
@@ -90611,6 +90915,13 @@ ${lanes.join("\n")}
90611
90915
  return getIntersectionType(x);
90612
90916
  }
90613
90917
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
90918
+ const links = getNodeLinks(propNode);
90919
+ const cache = links.nonExistentPropCheckCache || (links.nonExistentPropCheckCache = /* @__PURE__ */ new Set());
90920
+ const key = `${getTypeId(containingType)}|${isUncheckedJS}`;
90921
+ if (cache.has(key)) {
90922
+ return;
90923
+ }
90924
+ cache.add(key);
90614
90925
  let errorInfo;
90615
90926
  let relatedInfo;
90616
90927
  if (!isPrivateIdentifier(propNode) && containingType.flags & 1048576 && !(containingType.flags & 402784252)) {
@@ -91477,8 +91788,8 @@ ${lanes.join("\n")}
91477
91788
  }
91478
91789
  }
91479
91790
  function getEffectiveCheckNode(argument) {
91480
- argument = skipParentheses(argument);
91481
- return isSatisfiesExpression(argument) ? skipParentheses(argument.expression) : argument;
91791
+ const flags = isInJSFile(argument) ? 1 | 32 | -2147483648 : 1 | 32;
91792
+ return skipOuterExpressions(argument, flags);
91482
91793
  }
91483
91794
  function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors2, containingMessageChain, inferenceContext) {
91484
91795
  const errorOutputContainer = { errors: void 0, skipLogging: true };
@@ -91907,11 +92218,16 @@ ${lanes.join("\n")}
91907
92218
  if (!result) {
91908
92219
  result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);
91909
92220
  }
92221
+ const links = getNodeLinks(node);
92222
+ if (links.resolvedSignature !== resolvingSignature && !candidatesOutArray) {
92223
+ Debug.assert(links.resolvedSignature);
92224
+ return links.resolvedSignature;
92225
+ }
91910
92226
  if (result) {
91911
92227
  return result;
91912
92228
  }
91913
92229
  result = getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray, checkMode);
91914
- getNodeLinks(node).resolvedSignature = result;
92230
+ links.resolvedSignature = result;
91915
92231
  if (reportErrors2) {
91916
92232
  if (!headMessage && isInstanceof) {
91917
92233
  headMessage = Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method;
@@ -92776,13 +93092,15 @@ ${lanes.join("\n")}
92776
93092
  if (sourceFileLinks.jsxFragmentType !== void 0)
92777
93093
  return sourceFileLinks.jsxFragmentType;
92778
93094
  const jsxFragmentFactoryName = getJsxNamespace(node);
92779
- if (jsxFragmentFactoryName === "null")
93095
+ const shouldResolveFactoryReference = (compilerOptions.jsx === 2 || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
93096
+ if (!shouldResolveFactoryReference)
92780
93097
  return sourceFileLinks.jsxFragmentType = anyType;
93098
+ const shouldModuleRefErr = compilerOptions.jsx !== 1 && compilerOptions.jsx !== 3;
92781
93099
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
92782
93100
  const jsxFactorySymbol = (_a = getJsxNamespaceContainerForImplicitImport(node)) != null ? _a : resolveName(
92783
93101
  node,
92784
93102
  jsxFragmentFactoryName,
92785
- compilerOptions.jsx === 1 ? 111551 & ~384 : 111551,
93103
+ shouldModuleRefErr ? 111551 : 111551 & ~384,
92786
93104
  /*nameNotFoundMessage*/
92787
93105
  jsxFactoryRefErr,
92788
93106
  /*isUse*/
@@ -92931,7 +93249,7 @@ ${lanes.join("\n")}
92931
93249
  resolutionStart = resolutionTargets.length;
92932
93250
  }
92933
93251
  links.resolvedSignature = resolvingSignature;
92934
- let result = resolveSignature(
93252
+ const result = resolveSignature(
92935
93253
  node,
92936
93254
  candidatesOutArray,
92937
93255
  checkMode || 0
@@ -92939,9 +93257,6 @@ ${lanes.join("\n")}
92939
93257
  );
92940
93258
  resolutionStart = saveResolutionStart;
92941
93259
  if (result !== resolvingSignature) {
92942
- if (links.resolvedSignature !== resolvingSignature) {
92943
- result = links.resolvedSignature;
92944
- }
92945
93260
  links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;
92946
93261
  }
92947
93262
  return result;
@@ -93554,12 +93869,12 @@ ${lanes.join("\n")}
93554
93869
  }
93555
93870
  }
93556
93871
  function checkImportMetaProperty(node) {
93557
- if (moduleKind === 100 || moduleKind === 199) {
93872
+ if (100 <= moduleKind && moduleKind <= 199) {
93558
93873
  if (getSourceFileOfNode(node).impliedNodeFormat !== 99) {
93559
93874
  error2(node, Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output);
93560
93875
  }
93561
93876
  } else if (moduleKind < 6 && moduleKind !== 4) {
93562
- error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);
93877
+ error2(node, Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);
93563
93878
  }
93564
93879
  const file = getSourceFileOfNode(node);
93565
93880
  Debug.assert(!!(file.flags & 8388608), "Containing file is missing import meta node flag.");
@@ -94445,7 +94760,7 @@ ${lanes.join("\n")}
94445
94760
  }
94446
94761
  return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
94447
94762
  }
94448
- const type = checkExpressionCached(node.expression);
94763
+ const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
94449
94764
  if (!isLiteralType(type)) {
94450
94765
  return false;
94451
94766
  }
@@ -94726,19 +95041,7 @@ ${lanes.join("\n")}
94726
95041
  const exprType = checkExpression(node.body);
94727
95042
  const returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);
94728
95043
  if (returnOrPromisedType) {
94729
- const effectiveCheckNode = getEffectiveCheckNode(node.body);
94730
- if ((functionFlags & 3) === 2) {
94731
- const awaitedType = checkAwaitedType(
94732
- exprType,
94733
- /*withAlias*/
94734
- false,
94735
- effectiveCheckNode,
94736
- Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
94737
- );
94738
- checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
94739
- } else {
94740
- checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, effectiveCheckNode, effectiveCheckNode);
94741
- }
95044
+ checkReturnExpression(node, returnOrPromisedType, node.body, node.body, exprType);
94742
95045
  }
94743
95046
  }
94744
95047
  }
@@ -94792,7 +95095,7 @@ ${lanes.join("\n")}
94792
95095
  }
94793
95096
  if (isReadonlySymbol(symbol)) {
94794
95097
  if (symbol.flags & 4 && isAccessExpression(expr) && expr.expression.kind === 110) {
94795
- const ctor = getContainingFunction(expr);
95098
+ const ctor = getControlFlowContainer(expr);
94796
95099
  if (!(ctor && (ctor.kind === 176 || isJSConstructor(ctor)))) {
94797
95100
  return true;
94798
95101
  }
@@ -94823,7 +95126,7 @@ ${lanes.join("\n")}
94823
95126
  function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {
94824
95127
  const node = skipOuterExpressions(
94825
95128
  expr,
94826
- 6 | 1
95129
+ 38 | 1
94827
95130
  /* Parentheses */
94828
95131
  );
94829
95132
  if (node.kind !== 80 && !isAccessExpression(node)) {
@@ -94896,6 +95199,7 @@ ${lanes.join("\n")}
94896
95199
  }
94897
95200
  switch (moduleKind) {
94898
95201
  case 100:
95202
+ case 101:
94899
95203
  case 199:
94900
95204
  if (sourceFile.impliedNodeFormat === 1) {
94901
95205
  span != null ? span : span = getSpanOfTokenAtPosition(sourceFile, node.pos);
@@ -94914,7 +95218,7 @@ ${lanes.join("\n")}
94914
95218
  }
94915
95219
  default:
94916
95220
  span != null ? span : span = getSpanOfTokenAtPosition(sourceFile, node.pos);
94917
- const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
95221
+ const message = isAwaitExpression(node) ? Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher : Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
94918
95222
  diagnostics.add(createFileDiagnostic(sourceFile, span.start, span.length, message));
94919
95223
  hasError = true;
94920
95224
  break;
@@ -95550,7 +95854,7 @@ ${lanes.join("\n")}
95550
95854
  }
95551
95855
  const leftTarget = skipOuterExpressions(
95552
95856
  left,
95553
- 31
95857
+ 63
95554
95858
  /* All */
95555
95859
  );
95556
95860
  const nullishSemantics = getSyntacticNullishnessSemantics(leftTarget);
@@ -95572,7 +95876,9 @@ ${lanes.join("\n")}
95572
95876
  switch (node.kind) {
95573
95877
  case 223:
95574
95878
  case 213:
95879
+ case 215:
95575
95880
  case 212:
95881
+ case 236:
95576
95882
  case 214:
95577
95883
  case 211:
95578
95884
  case 229:
@@ -95588,6 +95894,8 @@ ${lanes.join("\n")}
95588
95894
  case 56:
95589
95895
  case 77:
95590
95896
  return 3;
95897
+ case 28:
95898
+ return getSyntacticNullishnessSemantics(node.right);
95591
95899
  }
95592
95900
  return 2;
95593
95901
  case 227:
@@ -96951,6 +97259,9 @@ ${lanes.join("\n")}
96951
97259
  31
96952
97260
  /* ParameterPropertyModifier */
96953
97261
  )) {
97262
+ if (compilerOptions.erasableSyntaxOnly) {
97263
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
97264
+ }
96954
97265
  if (!(func.kind === 176 && nodeIsPresent(func.body))) {
96955
97266
  error2(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);
96956
97267
  }
@@ -100469,7 +100780,6 @@ ${lanes.join("\n")}
100469
100780
  }
100470
100781
  const signature = getSignatureFromDeclaration(container);
100471
100782
  const returnType = getReturnTypeOfSignature(signature);
100472
- const functionFlags = getFunctionFlags(container);
100473
100783
  if (strictNullChecks || node.expression || returnType.flags & 131072) {
100474
100784
  const exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;
100475
100785
  if (container.kind === 178) {
@@ -100477,26 +100787,57 @@ ${lanes.join("\n")}
100477
100787
  error2(node, Diagnostics.Setters_cannot_return_a_value);
100478
100788
  }
100479
100789
  } else if (container.kind === 176) {
100480
- if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) {
100790
+ const exprType2 = node.expression ? checkExpressionCached(node.expression) : undefinedType;
100791
+ if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType2, returnType, node, node.expression)) {
100481
100792
  error2(node, Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);
100482
100793
  }
100483
100794
  } else if (getReturnTypeFromAnnotation(container)) {
100484
- const unwrappedReturnType = (_a = unwrapReturnType(returnType, functionFlags)) != null ? _a : returnType;
100485
- const unwrappedExprType = functionFlags & 2 ? checkAwaitedType(
100486
- exprType,
100487
- /*withAlias*/
100488
- false,
100489
- node,
100490
- Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
100491
- ) : exprType;
100492
- if (unwrappedReturnType) {
100493
- checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);
100494
- }
100795
+ const unwrappedReturnType = (_a = unwrapReturnType(returnType, getFunctionFlags(container))) != null ? _a : returnType;
100796
+ checkReturnExpression(container, unwrappedReturnType, node, node.expression, exprType);
100495
100797
  }
100496
100798
  } else if (container.kind !== 176 && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeUndefinedVoidOrAny(container, returnType)) {
100497
100799
  error2(node, Diagnostics.Not_all_code_paths_return_a_value);
100498
100800
  }
100499
100801
  }
100802
+ function checkReturnExpression(container, unwrappedReturnType, node, expr, exprType, inConditionalExpression = false) {
100803
+ const excludeJSDocTypeAssertions = isInJSFile(node);
100804
+ const functionFlags = getFunctionFlags(container);
100805
+ if (expr) {
100806
+ const unwrappedExpr = skipParentheses(expr, excludeJSDocTypeAssertions);
100807
+ if (isConditionalExpression(unwrappedExpr)) {
100808
+ checkReturnExpression(
100809
+ container,
100810
+ unwrappedReturnType,
100811
+ node,
100812
+ unwrappedExpr.whenTrue,
100813
+ checkExpression(unwrappedExpr.whenTrue),
100814
+ /*inConditionalExpression*/
100815
+ true
100816
+ );
100817
+ checkReturnExpression(
100818
+ container,
100819
+ unwrappedReturnType,
100820
+ node,
100821
+ unwrappedExpr.whenFalse,
100822
+ checkExpression(unwrappedExpr.whenFalse),
100823
+ /*inConditionalExpression*/
100824
+ true
100825
+ );
100826
+ return;
100827
+ }
100828
+ }
100829
+ const inReturnStatement = node.kind === 253;
100830
+ const unwrappedExprType = functionFlags & 2 ? checkAwaitedType(
100831
+ exprType,
100832
+ /*withAlias*/
100833
+ false,
100834
+ node,
100835
+ Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
100836
+ ) : exprType;
100837
+ const effectiveExpr = expr && getEffectiveCheckNode(expr);
100838
+ const errorNode = inReturnStatement && !inConditionalExpression ? node : effectiveExpr;
100839
+ checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, errorNode, effectiveExpr);
100840
+ }
100500
100841
  function checkWithStatement(node) {
100501
100842
  if (!checkGrammarStatementInAmbientContext(node)) {
100502
100843
  if (node.flags & 65536) {
@@ -100628,7 +100969,7 @@ ${lanes.join("\n")}
100628
100969
  const typeDeclaration = symbol.valueDeclaration;
100629
100970
  if (typeDeclaration && isClassLike(typeDeclaration)) {
100630
100971
  for (const member of typeDeclaration.members) {
100631
- if (!isStatic(member) && !hasBindableName(member)) {
100972
+ if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) {
100632
100973
  const symbol2 = getSymbolOfDeclaration(member);
100633
100974
  checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));
100634
100975
  }
@@ -101120,6 +101461,13 @@ ${lanes.join("\n")}
101120
101461
  function checkMemberForOverrideModifier(node, staticType, baseStaticType, baseWithThis, type, typeWithThis, memberHasOverrideModifier, memberHasAbstractModifier, memberIsStatic, memberIsParameterProperty, member, errorNode) {
101121
101462
  const isJs = isInJSFile(node);
101122
101463
  const nodeInAmbientContext = !!(node.flags & 33554432);
101464
+ if (memberHasOverrideModifier && (member == null ? void 0 : member.valueDeclaration) && isClassElement(member.valueDeclaration) && member.valueDeclaration.name && isNonBindableDynamicName(member.valueDeclaration.name)) {
101465
+ error2(
101466
+ errorNode,
101467
+ isJs ? Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic : Diagnostics.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic
101468
+ );
101469
+ return 2;
101470
+ }
101123
101471
  if (baseWithThis && (memberHasOverrideModifier || compilerOptions.noImplicitOverride)) {
101124
101472
  const thisType = memberIsStatic ? staticType : typeWithThis;
101125
101473
  const baseType = memberIsStatic ? baseStaticType : baseWithThis;
@@ -101740,6 +102088,9 @@ ${lanes.join("\n")}
101740
102088
  checkCollisionsForDeclarationName(node, node.name);
101741
102089
  checkExportsOnMergedDeclarations(node);
101742
102090
  node.members.forEach(checkEnumMember);
102091
+ if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432)) {
102092
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
102093
+ }
101743
102094
  computeEnumMemberValues(node);
101744
102095
  const enumSymbol = getSymbolOfDeclaration(node);
101745
102096
  const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);
@@ -101841,6 +102192,9 @@ ${lanes.join("\n")}
101841
102192
  checkExportsOnMergedDeclarations(node);
101842
102193
  const symbol = getSymbolOfDeclaration(node);
101843
102194
  if (symbol.flags & 512 && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {
102195
+ if (compilerOptions.erasableSyntaxOnly) {
102196
+ error2(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
102197
+ }
101844
102198
  if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {
101845
102199
  error2(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);
101846
102200
  }
@@ -102182,10 +102536,20 @@ ${lanes.join("\n")}
102182
102536
  if (validForTypeAttributes && override) {
102183
102537
  return;
102184
102538
  }
102185
- const mode = moduleKind === 199 && declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier);
102186
- if (mode !== 99 && moduleKind !== 99 && moduleKind !== 200) {
102187
- const message = isImportAttributes2 ? moduleKind === 199 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve : moduleKind === 199 ? Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;
102188
- return grammarErrorOnNode(node, message);
102539
+ if (!moduleSupportsImportAttributes(moduleKind)) {
102540
+ return grammarErrorOnNode(
102541
+ node,
102542
+ isImportAttributes2 ? Diagnostics.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve : Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve
102543
+ );
102544
+ }
102545
+ if (moduleKind === 199 && !isImportAttributes2) {
102546
+ return grammarErrorOnFirstToken(node, Diagnostics.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);
102547
+ }
102548
+ if (declaration.moduleSpecifier && getEmitSyntaxForModuleSpecifierExpression(declaration.moduleSpecifier) === 1) {
102549
+ return grammarErrorOnNode(
102550
+ node,
102551
+ isImportAttributes2 ? Diagnostics.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls : Diagnostics.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
102552
+ );
102189
102553
  }
102190
102554
  const isTypeOnly = isJSDocImportTag(declaration) || (isImportDeclaration(declaration) ? (_a = declaration.importClause) == null ? void 0 : _a.isTypeOnly : declaration.isTypeOnly);
102191
102555
  if (isTypeOnly) {
@@ -102230,7 +102594,7 @@ ${lanes.join("\n")}
102230
102594
  }
102231
102595
  }
102232
102596
  }
102233
- if (isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
102597
+ if (!importClause.isTypeOnly && 101 <= moduleKind && moduleKind <= 199 && isOnlyImportableAsDefault(node.moduleSpecifier, resolvedModule) && !hasTypeJsonImportAttribute(node)) {
102234
102598
  error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
102235
102599
  }
102236
102600
  } else if (noUncheckedSideEffectImports && !importClause) {
@@ -102250,7 +102614,11 @@ ${lanes.join("\n")}
102250
102614
  return;
102251
102615
  }
102252
102616
  checkGrammarModifiers(node);
102253
- if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
102617
+ const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
102618
+ if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432)) {
102619
+ error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
102620
+ }
102621
+ if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
102254
102622
  checkImportBinding(node);
102255
102623
  markLinkedReferences(
102256
102624
  node,
@@ -103433,7 +103801,7 @@ ${lanes.join("\n")}
103433
103801
  name,
103434
103802
  meaning,
103435
103803
  /*ignoreErrors*/
103436
- false,
103804
+ true,
103437
103805
  /*dontResolveAlias*/
103438
103806
  true
103439
103807
  );
@@ -103443,8 +103811,9 @@ ${lanes.join("\n")}
103443
103811
  return resolveEntityName(
103444
103812
  name,
103445
103813
  /*meaning*/
103446
- 1
103447
- /* FunctionScopedVariable */
103814
+ 1,
103815
+ /*ignoreErrors*/
103816
+ true
103448
103817
  );
103449
103818
  }
103450
103819
  return void 0;
@@ -103632,8 +104001,9 @@ ${lanes.join("\n")}
103632
104001
  if (location && location.kind === 304) {
103633
104002
  return resolveEntityName(
103634
104003
  location.name,
103635
- 111551 | 2097152
103636
- /* Alias */
104004
+ 111551 | 2097152,
104005
+ /*ignoreErrors*/
104006
+ true
103637
104007
  );
103638
104008
  }
103639
104009
  return void 0;
@@ -103645,15 +104015,17 @@ ${lanes.join("\n")}
103645
104015
  // Skip for invalid syntax like this: export { "x" }
103646
104016
  resolveEntityName(
103647
104017
  name,
103648
- 111551 | 788968 | 1920 | 2097152
103649
- /* Alias */
104018
+ 111551 | 788968 | 1920 | 2097152,
104019
+ /*ignoreErrors*/
104020
+ true
103650
104021
  )
103651
104022
  );
103652
104023
  } else {
103653
104024
  return resolveEntityName(
103654
104025
  node,
103655
- 111551 | 788968 | 1920 | 2097152
103656
- /* Alias */
104026
+ 111551 | 788968 | 1920 | 2097152,
104027
+ /*ignoreErrors*/
104028
+ true
103657
104029
  );
103658
104030
  }
103659
104031
  }
@@ -104708,6 +105080,46 @@ ${lanes.join("\n")}
104708
105080
  for (const info of infoList) {
104709
105081
  if (info.declaration)
104710
105082
  continue;
105083
+ if (info === anyBaseTypeIndexInfo)
105084
+ continue;
105085
+ if (info.components) {
105086
+ const allComponentComputedNamesSerializable = every(info.components, (e) => {
105087
+ var _a;
105088
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible(
105089
+ e.name.expression,
105090
+ enclosing,
105091
+ /*shouldComputeAliasToMakeVisible*/
105092
+ false
105093
+ )) == null ? void 0 : _a.accessibility) === 0);
105094
+ });
105095
+ if (allComponentComputedNamesSerializable) {
105096
+ const newComponents = filter(info.components, (e) => {
105097
+ return !hasLateBindableName(e);
105098
+ });
105099
+ result.push(...map(newComponents, (e) => {
105100
+ trackComputedName(e.name.expression);
105101
+ const mods = infoList === staticInfos ? [factory.createModifier(
105102
+ 126
105103
+ /* StaticKeyword */
105104
+ )] : void 0;
105105
+ return factory.createPropertyDeclaration(
105106
+ append(mods, info.isReadonly ? factory.createModifier(
105107
+ 148
105108
+ /* ReadonlyKeyword */
105109
+ ) : void 0),
105110
+ e.name,
105111
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(
105112
+ 58
105113
+ /* QuestionToken */
105114
+ ) : void 0,
105115
+ nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker),
105116
+ /*initializer*/
105117
+ void 0
105118
+ );
105119
+ }));
105120
+ continue;
105121
+ }
105122
+ }
104711
105123
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
104712
105124
  if (node && infoList === staticInfos) {
104713
105125
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(
@@ -104721,6 +105133,28 @@ ${lanes.join("\n")}
104721
105133
  }
104722
105134
  }
104723
105135
  return result;
105136
+ function trackComputedName(accessExpression) {
105137
+ if (!tracker.trackSymbol)
105138
+ return;
105139
+ const firstIdentifier = getFirstIdentifier(accessExpression);
105140
+ const name = resolveName(
105141
+ firstIdentifier,
105142
+ firstIdentifier.escapedText,
105143
+ 111551 | 1048576,
105144
+ /*nameNotFoundMessage*/
105145
+ void 0,
105146
+ /*isUse*/
105147
+ true
105148
+ );
105149
+ if (name) {
105150
+ tracker.trackSymbol(
105151
+ name,
105152
+ enclosing,
105153
+ 111551
105154
+ /* Value */
105155
+ );
105156
+ }
105157
+ }
104724
105158
  }
104725
105159
  };
104726
105160
  function isImportRequiredByAugmentation(node) {
@@ -105852,6 +106286,7 @@ ${lanes.join("\n")}
105852
106286
  }
105853
106287
  switch (moduleKind) {
105854
106288
  case 100:
106289
+ case 101:
105855
106290
  case 199:
105856
106291
  if (sourceFile.impliedNodeFormat === 1) {
105857
106292
  diagnostics.add(
@@ -105868,7 +106303,7 @@ ${lanes.join("\n")}
105868
106303
  }
105869
106304
  default:
105870
106305
  diagnostics.add(
105871
- createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
106306
+ createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher)
105872
106307
  );
105873
106308
  break;
105874
106309
  }
@@ -106030,7 +106465,7 @@ ${lanes.join("\n")}
106030
106465
  }
106031
106466
  }
106032
106467
  function checkGrammarForInvalidDynamicName(node, message) {
106033
- if (isNonBindableDynamicName(node)) {
106468
+ if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) {
106034
106469
  return grammarErrorOnNode(node, message);
106035
106470
  }
106036
106471
  }
@@ -106497,17 +106932,17 @@ ${lanes.join("\n")}
106497
106932
  return grammarErrorOnNode(node, Diagnostics.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);
106498
106933
  }
106499
106934
  if (moduleKind === 5) {
106500
- return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);
106935
+ return grammarErrorOnNode(node, Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);
106501
106936
  }
106502
106937
  if (node.typeArguments) {
106503
106938
  return grammarErrorOnNode(node, Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
106504
106939
  }
106505
106940
  const nodeArguments = node.arguments;
106506
- if (moduleKind !== 99 && moduleKind !== 199 && moduleKind !== 100 && moduleKind !== 200) {
106941
+ if (!(100 <= moduleKind && moduleKind <= 199) && moduleKind !== 99 && moduleKind !== 200) {
106507
106942
  checkGrammarForDisallowedTrailingComma(nodeArguments);
106508
106943
  if (nodeArguments.length > 1) {
106509
106944
  const importAttributesArgument = nodeArguments[1];
106510
- return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_nodenext_or_preserve);
106945
+ return grammarErrorOnNode(importAttributesArgument, Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve);
106511
106946
  }
106512
106947
  }
106513
106948
  if (nodeArguments.length === 0 || nodeArguments.length > 2) {
@@ -111576,7 +112011,7 @@ ${lanes.join("\n")}
111576
112011
  return updated;
111577
112012
  }
111578
112013
  function visitParenthesizedExpression(node) {
111579
- const innerExpression = skipOuterExpressions(node.expression, ~(6 | 16));
112014
+ const innerExpression = skipOuterExpressions(node.expression, ~(38 | 16));
111580
112015
  if (isAssertionExpression(innerExpression) || isSatisfiesExpression(innerExpression)) {
111581
112016
  const expression = visitNode(node.expression, visitor, isExpression);
111582
112017
  Debug.assert(expression);
@@ -131319,7 +131754,6 @@ ${lanes.join("\n")}
131319
131754
  if (node === (importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim[0])) {
131320
131755
  return visitImportOrRequireCall(importsAndRequiresToRewriteOrShim.shift());
131321
131756
  }
131322
- break;
131323
131757
  default:
131324
131758
  if ((importsAndRequiresToRewriteOrShim == null ? void 0 : importsAndRequiresToRewriteOrShim.length) && rangeContainsRange(node, importsAndRequiresToRewriteOrShim[0])) {
131325
131759
  return visitEachChild(node, visitor, context);
@@ -132174,11 +132608,7 @@ ${lanes.join("\n")}
132174
132608
  if (isSetAccessor(node.parent)) {
132175
132609
  return createAccessorTypeError(node.parent);
132176
132610
  }
132177
- const addUndefined = resolver.requiresAddingImplicitUndefined(
132178
- node,
132179
- /*enclosingDeclaration*/
132180
- void 0
132181
- );
132611
+ const addUndefined = resolver.requiresAddingImplicitUndefined(node, node.parent);
132182
132612
  if (!addUndefined && node.initializer) {
132183
132613
  return createExpressionError(node.initializer);
132184
132614
  }
@@ -134003,6 +134433,7 @@ ${lanes.join("\n")}
134003
134433
  case 6:
134004
134434
  case 5:
134005
134435
  case 100:
134436
+ case 101:
134006
134437
  case 199:
134007
134438
  case 1:
134008
134439
  return transformImpliedNodeFormatDependentModule;
@@ -140908,47 +141339,6 @@ ${lanes.join("\n")}
140908
141339
  }
140909
141340
  return resolutions;
140910
141341
  }
140911
- function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
140912
- return forEachProjectReference(
140913
- /*projectReferences*/
140914
- void 0,
140915
- resolvedProjectReferences,
140916
- (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
140917
- );
140918
- }
140919
- function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
140920
- let seenResolvedRefs;
140921
- return worker(
140922
- projectReferences,
140923
- resolvedProjectReferences,
140924
- /*parent*/
140925
- void 0
140926
- );
140927
- function worker(projectReferences2, resolvedProjectReferences2, parent2) {
140928
- if (cbRef) {
140929
- const result = cbRef(projectReferences2, parent2);
140930
- if (result)
140931
- return result;
140932
- }
140933
- let skipChildren;
140934
- return forEach(
140935
- resolvedProjectReferences2,
140936
- (resolvedRef, index) => {
140937
- if (resolvedRef && (seenResolvedRefs == null ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {
140938
- (skipChildren != null ? skipChildren : skipChildren = /* @__PURE__ */ new Set()).add(resolvedRef);
140939
- return void 0;
140940
- }
140941
- const result = cbResolvedRef(resolvedRef, parent2, index);
140942
- if (result || !resolvedRef)
140943
- return result;
140944
- (seenResolvedRefs || (seenResolvedRefs = /* @__PURE__ */ new Set())).add(resolvedRef.sourceFile.path);
140945
- }
140946
- ) || forEach(
140947
- resolvedProjectReferences2,
140948
- (resolvedRef) => resolvedRef && !(skipChildren == null ? void 0 : skipChildren.has(resolvedRef)) ? worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef) : void 0
140949
- );
140950
- }
140951
- }
140952
141342
  var inferredTypesContainingFile = "__inferred type names__.ts";
140953
141343
  function getInferredLibraryNameResolveFrom(options2, currentDirectory, libFileName) {
140954
141344
  const containingDirectory = options2.configFilePath ? getDirectoryPath(options2.configFilePath) : currentDirectory;
@@ -140964,13 +141354,6 @@ ${lanes.join("\n")}
140964
141354
  }
140965
141355
  return "@typescript/lib-" + path;
140966
141356
  }
140967
- function getLibNameFromLibReference(libReference) {
140968
- return toFileNameLowerCase(libReference.fileName);
140969
- }
140970
- function getLibFileNameFromLibReference(libReference) {
140971
- const libName = getLibNameFromLibReference(libReference);
140972
- return libMap.get(libName);
140973
- }
140974
141357
  function isReferencedFile(reason) {
140975
141358
  switch (reason == null ? void 0 : reason.kind) {
140976
141359
  case 3:
@@ -141219,11 +141602,13 @@ ${lanes.join("\n")}
141219
141602
  typeScriptVersion: typeScriptVersion3
141220
141603
  };
141221
141604
  }
141222
- function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
141605
+ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
141223
141606
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
141224
- const createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;
141225
- const { rootNames, options: options2, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3 } = createProgramOptions;
141226
- let { oldProgram } = createProgramOptions;
141607
+ let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
141608
+ const { rootNames, options: options2, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion3, host: createProgramOptionsHost } = _createProgramOptions;
141609
+ let { oldProgram } = _createProgramOptions;
141610
+ _createProgramOptions = void 0;
141611
+ _rootNamesOrOptions = void 0;
141227
141612
  for (const option of commandLineOptionOfCustomType) {
141228
141613
  if (hasProperty(options2, option.name)) {
141229
141614
  if (typeof options2[option.name] === "string") {
@@ -141236,16 +141621,12 @@ ${lanes.join("\n")}
141236
141621
  let processingOtherFiles;
141237
141622
  let files;
141238
141623
  let symlinks;
141239
- let commonSourceDirectory;
141240
141624
  let typeChecker;
141241
141625
  let classifiableNames;
141242
- let fileReasons = createMultiMap();
141243
141626
  let filesWithReferencesProcessed;
141244
- let fileReasonsToChain;
141245
- let reasonToRelatedInfo;
141246
141627
  let cachedBindAndCheckDiagnosticsForFile;
141247
141628
  let cachedDeclarationDiagnosticsForFile;
141248
- let fileProcessingDiagnostics;
141629
+ const programDiagnostics = createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax);
141249
141630
  let automaticTypeDirectiveNames;
141250
141631
  let automaticTypeDirectiveResolutions;
141251
141632
  let resolvedLibReferences;
@@ -141267,13 +141648,12 @@ ${lanes.join("\n")}
141267
141648
  true
141268
141649
  );
141269
141650
  mark("beforeProgram");
141270
- const host = createProgramOptions.host || createCompilerHost(options2);
141651
+ const host = createProgramOptionsHost || createCompilerHost(options2);
141271
141652
  const configParsingHost = parseConfigHostFromCompilerHostLike(host);
141272
141653
  let skipDefaultLib = options2.noLib;
141273
141654
  const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options2));
141274
141655
  const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
141275
- const programDiagnostics = createDiagnosticCollection();
141276
- let lazyProgramDiagnosticExplainingFile = [];
141656
+ let skipVerifyCompilerOptions = false;
141277
141657
  const currentDirectory = host.getCurrentDirectory();
141278
141658
  const supportedExtensions = getSupportedExtensions(options2);
141279
141659
  const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options2, supportedExtensions);
@@ -141559,7 +141939,7 @@ ${lanes.join("\n")}
141559
141939
  getTypeCount: () => getTypeChecker().getTypeCount(),
141560
141940
  getInstantiationCount: () => getTypeChecker().getInstantiationCount(),
141561
141941
  getRelationCacheSizes: () => getTypeChecker().getRelationCacheSizes(),
141562
- getFileProcessingDiagnostics: () => fileProcessingDiagnostics,
141942
+ getFileProcessingDiagnostics: () => programDiagnostics.getFileProcessingDiagnostics(),
141563
141943
  getAutomaticTypeDirectiveNames: () => automaticTypeDirectiveNames,
141564
141944
  getAutomaticTypeDirectiveResolutions: () => automaticTypeDirectiveResolutions,
141565
141945
  isSourceFileFromExternalLibrary,
@@ -141575,6 +141955,7 @@ ${lanes.join("\n")}
141575
141955
  resolvedModules,
141576
141956
  resolvedTypeReferenceDirectiveNames,
141577
141957
  resolvedLibReferences,
141958
+ getProgramDiagnosticsContainer: () => programDiagnostics,
141578
141959
  getResolvedModule,
141579
141960
  getResolvedModuleFromModuleSpecifier,
141580
141961
  getResolvedTypeReferenceDirective,
@@ -141607,70 +141988,19 @@ ${lanes.join("\n")}
141607
141988
  realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
141608
141989
  useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
141609
141990
  getCanonicalFileName,
141610
- getFileIncludeReasons: () => fileReasons,
141991
+ getFileIncludeReasons: () => programDiagnostics.getFileReasons(),
141611
141992
  structureIsReused,
141612
141993
  writeFile: writeFile2,
141613
141994
  getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
141614
141995
  };
141615
141996
  onProgramCreateComplete();
141616
- verifyCompilerOptions();
141997
+ if (!skipVerifyCompilerOptions) {
141998
+ verifyCompilerOptions();
141999
+ }
141617
142000
  mark("afterProgram");
141618
142001
  measure("Program", "beforeProgram", "afterProgram");
141619
142002
  (_p = tracing) == null ? void 0 : _p.pop();
141620
142003
  return program;
141621
- function updateAndGetProgramDiagnostics() {
141622
- if (lazyProgramDiagnosticExplainingFile) {
141623
- fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
141624
- switch (diagnostic.kind) {
141625
- case 1:
141626
- return programDiagnostics.add(
141627
- createDiagnosticExplainingFile(
141628
- diagnostic.file && getSourceFileByPath(diagnostic.file),
141629
- diagnostic.fileProcessingReason,
141630
- diagnostic.diagnostic,
141631
- diagnostic.args || emptyArray
141632
- )
141633
- );
141634
- case 0:
141635
- return programDiagnostics.add(filePreprocessingLibreferenceDiagnostic(diagnostic));
141636
- case 2:
141637
- return diagnostic.diagnostics.forEach((d) => programDiagnostics.add(d));
141638
- default:
141639
- Debug.assertNever(diagnostic);
141640
- }
141641
- });
141642
- lazyProgramDiagnosticExplainingFile.forEach(
141643
- ({ file, diagnostic, args }) => programDiagnostics.add(
141644
- createDiagnosticExplainingFile(
141645
- file,
141646
- /*fileProcessingReason*/
141647
- void 0,
141648
- diagnostic,
141649
- args
141650
- )
141651
- )
141652
- );
141653
- lazyProgramDiagnosticExplainingFile = void 0;
141654
- fileReasonsToChain = void 0;
141655
- reasonToRelatedInfo = void 0;
141656
- }
141657
- return programDiagnostics;
141658
- }
141659
- function filePreprocessingLibreferenceDiagnostic({ reason }) {
141660
- const { file, pos, end } = getReferencedFileLocation(program, reason);
141661
- const libReference = file.libReferenceDirectives[reason.index];
141662
- const libName = getLibNameFromLibReference(libReference);
141663
- const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
141664
- const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
141665
- return createFileDiagnostic(
141666
- file,
141667
- Debug.checkDefined(pos),
141668
- Debug.checkDefined(end) - pos,
141669
- suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
141670
- libName,
141671
- suggestion
141672
- );
141673
- }
141674
142004
  function getResolvedModule(file, moduleName, mode) {
141675
142005
  var _a2;
141676
142006
  return (_a2 = resolvedModules == null ? void 0 : resolvedModules.get(file.path)) == null ? void 0 : _a2.get(moduleName, mode);
@@ -141724,7 +142054,7 @@ ${lanes.join("\n")}
141724
142054
  var _a2;
141725
142055
  if (!((_a2 = resolution.resolutionDiagnostics) == null ? void 0 : _a2.length))
141726
142056
  return;
141727
- (fileProcessingDiagnostics != null ? fileProcessingDiagnostics : fileProcessingDiagnostics = []).push({
142057
+ programDiagnostics.addFileProcessingDiagnostic({
141728
142058
  kind: 2,
141729
142059
  diagnostics: resolution.resolutionDiagnostics
141730
142060
  });
@@ -141829,16 +142159,19 @@ ${lanes.join("\n")}
141829
142159
  return toPath(fileName, currentDirectory, getCanonicalFileName);
141830
142160
  }
141831
142161
  function getCommonSourceDirectory2() {
141832
- if (commonSourceDirectory === void 0) {
141833
- const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
141834
- commonSourceDirectory = getCommonSourceDirectory(
141835
- options2,
141836
- () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
141837
- currentDirectory,
141838
- getCanonicalFileName,
141839
- (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
141840
- );
142162
+ let commonSourceDirectory = programDiagnostics.getCommonSourceDirectory();
142163
+ if (commonSourceDirectory !== void 0) {
142164
+ return commonSourceDirectory;
141841
142165
  }
142166
+ const emittedFiles = filter(files, (file) => sourceFileMayBeEmitted(file, program));
142167
+ commonSourceDirectory = getCommonSourceDirectory(
142168
+ options2,
142169
+ () => mapDefined(emittedFiles, (file) => file.isDeclarationFile ? void 0 : file.fileName),
142170
+ currentDirectory,
142171
+ getCanonicalFileName,
142172
+ (commonSourceDirectory2) => checkSourceFilesBelongToPath(emittedFiles, commonSourceDirectory2)
142173
+ );
142174
+ programDiagnostics.setCommonSourceDirectory(commonSourceDirectory);
141842
142175
  return commonSourceDirectory;
141843
142176
  }
141844
142177
  function getClassifiableNames() {
@@ -142157,9 +142490,10 @@ ${lanes.join("\n")}
142157
142490
  }
142158
142491
  filesByName.set(path, filesByName.get(oldFile.path));
142159
142492
  });
142493
+ const isConfigIdentical = oldOptions.configFile && oldOptions.configFile === options2.configFile || !oldOptions.configFile && !options2.configFile && !optionsHaveChanges(oldOptions, options2, optionDeclarations);
142494
+ programDiagnostics.reuseStateFromOldProgram(oldProgram.getProgramDiagnosticsContainer(), isConfigIdentical);
142495
+ skipVerifyCompilerOptions = isConfigIdentical;
142160
142496
  files = newSourceFiles;
142161
- fileReasons = oldProgram.getFileIncludeReasons();
142162
- fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
142163
142497
  automaticTypeDirectiveNames = oldProgram.getAutomaticTypeDirectiveNames();
142164
142498
  automaticTypeDirectiveResolutions = oldProgram.getAutomaticTypeDirectiveResolutions();
142165
142499
  sourceFileToPackageName = oldProgram.sourceFileToPackageName;
@@ -142378,7 +142712,7 @@ ${lanes.join("\n")}
142378
142712
  if (skipTypeChecking(sourceFile, options2, program)) {
142379
142713
  return emptyArray;
142380
142714
  }
142381
- const programDiagnosticsInFile = updateAndGetProgramDiagnostics().getDiagnostics(sourceFile.fileName);
142715
+ const programDiagnosticsInFile = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(sourceFile.fileName);
142382
142716
  if (!((_a2 = sourceFile.commentDirectives) == null ? void 0 : _a2.length)) {
142383
142717
  return programDiagnosticsInFile;
142384
142718
  }
@@ -142747,16 +143081,16 @@ ${lanes.join("\n")}
142747
143081
  }
142748
143082
  function getOptionsDiagnostics() {
142749
143083
  return sortAndDeduplicateDiagnostics(concatenate(
142750
- updateAndGetProgramDiagnostics().getGlobalDiagnostics(),
143084
+ programDiagnostics.getCombinedDiagnostics(program).getGlobalDiagnostics(),
142751
143085
  getOptionsDiagnosticsOfConfigFile()
142752
143086
  ));
142753
143087
  }
142754
143088
  function getOptionsDiagnosticsOfConfigFile() {
142755
143089
  if (!options2.configFile)
142756
143090
  return emptyArray;
142757
- let diagnostics = updateAndGetProgramDiagnostics().getDiagnostics(options2.configFile.fileName);
143091
+ let diagnostics = programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(options2.configFile.fileName);
142758
143092
  forEachResolvedProjectReference2((resolvedRef) => {
142759
- diagnostics = concatenate(diagnostics, updateAndGetProgramDiagnostics().getDiagnostics(resolvedRef.sourceFile.fileName));
143093
+ diagnostics = concatenate(diagnostics, programDiagnostics.getCombinedDiagnostics(program).getDiagnostics(resolvedRef.sourceFile.fileName));
142760
143094
  });
142761
143095
  return diagnostics;
142762
143096
  }
@@ -142973,7 +143307,7 @@ ${lanes.join("\n")}
142973
143307
  );
142974
143308
  }
142975
143309
  function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {
142976
- const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(fileReasons.get(existingFile.path), isReferencedFile);
143310
+ const hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && some(programDiagnostics.getFileReasons().get(existingFile.path), isReferencedFile);
142977
143311
  if (hasExistingReasonToReportErrorOn) {
142978
143312
  addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);
142979
143313
  } else {
@@ -143162,7 +143496,7 @@ ${lanes.join("\n")}
143162
143496
  }
143163
143497
  function addFileIncludeReason(file, reason, checkExisting) {
143164
143498
  if (file && (!checkExisting || !isReferencedFile(reason) || !(filesWithReferencesProcessed == null ? void 0 : filesWithReferencesProcessed.has(reason.file)))) {
143165
- fileReasons.add(file.path, reason);
143499
+ programDiagnostics.getFileReasons().add(file.path, reason);
143166
143500
  return true;
143167
143501
  }
143168
143502
  return false;
@@ -143338,6 +143672,16 @@ ${lanes.join("\n")}
143338
143672
  const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
143339
143673
  if (existing)
143340
143674
  return existing;
143675
+ if (options2.libReplacement === false) {
143676
+ const result2 = {
143677
+ resolution: {
143678
+ resolvedModule: void 0
143679
+ },
143680
+ actual: combinePaths(defaultLibraryPath, libFileName)
143681
+ };
143682
+ (resolvedLibProcessing != null ? resolvedLibProcessing : resolvedLibProcessing = /* @__PURE__ */ new Map()).set(libFileName, result2);
143683
+ return result2;
143684
+ }
143341
143685
  if (structureIsReused !== 0 && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
143342
143686
  const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName);
143343
143687
  if (oldResolution) {
@@ -143385,7 +143729,7 @@ ${lanes.join("\n")}
143385
143729
  { kind: 7, file: file.path, index }
143386
143730
  );
143387
143731
  } else {
143388
- (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
143732
+ programDiagnostics.addFileProcessingDiagnostic({
143389
143733
  kind: 0,
143390
143734
  reason: { kind: 7, file: file.path, index }
143391
143735
  });
@@ -143448,10 +143792,11 @@ ${lanes.join("\n")}
143448
143792
  if (!sourceFile.isDeclarationFile) {
143449
143793
  const absoluteSourceFilePath = host.getCanonicalFileName(getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));
143450
143794
  if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {
143451
- addLazyProgramDiagnosticExplainingFile(
143795
+ programDiagnostics.addLazyConfigDiagnostic(
143452
143796
  sourceFile,
143453
143797
  Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,
143454
- [sourceFile.fileName, rootDirectory]
143798
+ sourceFile.fileName,
143799
+ rootDirectory
143455
143800
  );
143456
143801
  allFilesBelongToPath = false;
143457
143802
  }
@@ -143570,7 +143915,7 @@ ${lanes.join("\n")}
143570
143915
  }
143571
143916
  const outputFile = options2.outFile;
143572
143917
  if (!options2.tsBuildInfoFile && options2.incremental && !outputFile && !options2.configFilePath) {
143573
- programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
143918
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
143574
143919
  }
143575
143920
  verifyDeprecatedCompilerOptions();
143576
143921
  verifyProjectReferences();
@@ -143578,10 +143923,11 @@ ${lanes.join("\n")}
143578
143923
  const rootPaths = new Set(rootNames.map(toPath3));
143579
143924
  for (const file of files) {
143580
143925
  if (sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {
143581
- addLazyProgramDiagnosticExplainingFile(
143926
+ programDiagnostics.addLazyConfigDiagnostic(
143582
143927
  file,
143583
143928
  Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,
143584
- [file.fileName, options2.configFilePath || ""]
143929
+ file.fileName,
143930
+ options2.configFilePath || ""
143585
143931
  );
143586
143932
  }
143587
143933
  }
@@ -143672,14 +144018,14 @@ ${lanes.join("\n")}
143672
144018
  }
143673
144019
  } else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 && options2.module === 0) {
143674
144020
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
143675
- programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
144021
+ programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
143676
144022
  }
143677
144023
  if (outputFile && !options2.emitDeclarationOnly) {
143678
144024
  if (options2.module && !(options2.module === 2 || options2.module === 4)) {
143679
144025
  createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
143680
144026
  } else if (options2.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
143681
144027
  const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
143682
- programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
144028
+ programDiagnostics.addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
143683
144029
  }
143684
144030
  }
143685
144031
  if (getResolveJsonModule(options2)) {
@@ -143768,7 +144114,8 @@ ${lanes.join("\n")}
143768
144114
  }
143769
144115
  if (ModuleKind[moduleKind] && (100 <= moduleKind && moduleKind <= 199) && !(3 <= moduleResolution && moduleResolution <= 99)) {
143770
144116
  const moduleKindName = ModuleKind[moduleKind];
143771
- createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleKindName, moduleKindName);
144117
+ const moduleResolutionName = ModuleResolutionKind[moduleKindName] ? moduleKindName : "Node16";
144118
+ createOptionValueDiagnostic("moduleResolution", Diagnostics.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1, moduleResolutionName, moduleKindName);
143772
144119
  } else if (ModuleResolutionKind[moduleResolution] && (3 <= moduleResolution && moduleResolution <= 99) && !(100 <= moduleKind && moduleKind <= 199)) {
143773
144120
  const moduleResolutionName = ModuleResolutionKind[moduleResolution];
143774
144121
  createOptionValueDiagnostic("module", Diagnostics.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1, moduleResolutionName, moduleResolutionName);
@@ -143930,95 +144277,8 @@ ${lanes.join("\n")}
143930
144277
  }
143931
144278
  });
143932
144279
  }
143933
- function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
143934
- let seenReasons;
143935
- const reasons = file && fileReasons.get(file.path);
143936
- let fileIncludeReasons;
143937
- let relatedInfo;
143938
- let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
143939
- let fileIncludeReasonDetails;
143940
- let redirectInfo;
143941
- let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
143942
- let chain;
143943
- if (cachedChain) {
143944
- if (cachedChain.fileIncludeReasonDetails) {
143945
- seenReasons = new Set(reasons);
143946
- reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
143947
- } else {
143948
- reasons == null ? void 0 : reasons.forEach(processReason);
143949
- }
143950
- redirectInfo = cachedChain.redirectInfo;
143951
- } else {
143952
- reasons == null ? void 0 : reasons.forEach(processReason);
143953
- redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, getCompilerOptionsForFile(file));
143954
- }
143955
- if (fileProcessingReason)
143956
- processReason(fileProcessingReason);
143957
- const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
143958
- if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1)
143959
- seenReasons = void 0;
143960
- if (seenReasons && cachedChain) {
143961
- if (cachedChain.details && !processedExtraReason) {
143962
- chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args || emptyArray);
143963
- } else if (cachedChain.fileIncludeReasonDetails) {
143964
- if (!processedExtraReason) {
143965
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
143966
- fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
143967
- } else {
143968
- fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
143969
- }
143970
- } else {
143971
- if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
143972
- fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
143973
- } else {
143974
- fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
143975
- }
143976
- }
143977
- }
143978
- }
143979
- if (!chain) {
143980
- if (!fileIncludeReasonDetails)
143981
- fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
143982
- chain = chainDiagnosticMessages(
143983
- redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
143984
- diagnostic,
143985
- ...args || emptyArray
143986
- );
143987
- }
143988
- if (file) {
143989
- if (cachedChain) {
143990
- if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
143991
- cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
143992
- }
143993
- } else {
143994
- (fileReasonsToChain != null ? fileReasonsToChain : fileReasonsToChain = /* @__PURE__ */ new Map()).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
143995
- }
143996
- if (!cachedChain.details && !processedExtraReason)
143997
- cachedChain.details = chain.next;
143998
- }
143999
- const location = locationReason && getReferencedFileLocation(program, locationReason);
144000
- return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
144001
- function processReason(reason) {
144002
- if (seenReasons == null ? void 0 : seenReasons.has(reason))
144003
- return;
144004
- (seenReasons != null ? seenReasons : seenReasons = /* @__PURE__ */ new Set()).add(reason);
144005
- (fileIncludeReasons != null ? fileIncludeReasons : fileIncludeReasons = []).push(fileIncludeReasonToDiagnostics(program, reason));
144006
- populateRelatedInfo(reason);
144007
- }
144008
- function populateRelatedInfo(reason) {
144009
- if (!locationReason && isReferencedFile(reason)) {
144010
- locationReason = reason;
144011
- } else if (locationReason !== reason) {
144012
- relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(reason));
144013
- }
144014
- }
144015
- function cachedFileIncludeDetailsHasProcessedExtraReason() {
144016
- var _a2;
144017
- return ((_a2 = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a2.length) !== (reasons == null ? void 0 : reasons.length);
144018
- }
144019
- }
144020
144280
  function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {
144021
- (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({
144281
+ programDiagnostics.addFileProcessingDiagnostic({
144022
144282
  kind: 1,
144023
144283
  file: file && file.path,
144024
144284
  fileProcessingReason,
@@ -144026,106 +144286,6 @@ ${lanes.join("\n")}
144026
144286
  args
144027
144287
  });
144028
144288
  }
144029
- function addLazyProgramDiagnosticExplainingFile(file, diagnostic, args) {
144030
- lazyProgramDiagnosticExplainingFile.push({ file, diagnostic, args });
144031
- }
144032
- function getFileIncludeReasonToRelatedInformation(reason) {
144033
- var _a2;
144034
- let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
144035
- if (relatedInfo === void 0)
144036
- (reasonToRelatedInfo != null ? reasonToRelatedInfo : reasonToRelatedInfo = /* @__PURE__ */ new Map()).set(reason, relatedInfo = (_a2 = fileIncludeReasonToRelatedInformation(reason)) != null ? _a2 : false);
144037
- return relatedInfo || void 0;
144038
- }
144039
- function fileIncludeReasonToRelatedInformation(reason) {
144040
- if (isReferencedFile(reason)) {
144041
- const referenceLocation = getReferencedFileLocation(program, reason);
144042
- let message2;
144043
- switch (reason.kind) {
144044
- case 3:
144045
- message2 = Diagnostics.File_is_included_via_import_here;
144046
- break;
144047
- case 4:
144048
- message2 = Diagnostics.File_is_included_via_reference_here;
144049
- break;
144050
- case 5:
144051
- message2 = Diagnostics.File_is_included_via_type_library_reference_here;
144052
- break;
144053
- case 7:
144054
- message2 = Diagnostics.File_is_included_via_library_reference_here;
144055
- break;
144056
- default:
144057
- Debug.assertNever(reason);
144058
- }
144059
- return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
144060
- referenceLocation.file,
144061
- referenceLocation.pos,
144062
- referenceLocation.end - referenceLocation.pos,
144063
- message2
144064
- ) : void 0;
144065
- }
144066
- if (!options2.configFile)
144067
- return void 0;
144068
- let configFileNode;
144069
- let message;
144070
- switch (reason.kind) {
144071
- case 0:
144072
- if (!options2.configFile.configFileSpecs)
144073
- return void 0;
144074
- const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
144075
- const matchedByFiles = getMatchedFileSpec(program, fileName);
144076
- if (matchedByFiles) {
144077
- configFileNode = getTsConfigPropArrayElementValue(options2.configFile, "files", matchedByFiles);
144078
- message = Diagnostics.File_is_matched_by_files_list_specified_here;
144079
- break;
144080
- }
144081
- const matchedByInclude = getMatchedIncludeSpec(program, fileName);
144082
- if (!matchedByInclude || !isString(matchedByInclude))
144083
- return void 0;
144084
- configFileNode = getTsConfigPropArrayElementValue(options2.configFile, "include", matchedByInclude);
144085
- message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
144086
- break;
144087
- case 1:
144088
- case 2:
144089
- const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
144090
- const referenceInfo = forEachProjectReference(
144091
- projectReferences,
144092
- resolvedProjectReferences,
144093
- (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options2.configFile, index: index2 } : void 0
144094
- );
144095
- if (!referenceInfo)
144096
- return void 0;
144097
- const { sourceFile, index } = referenceInfo;
144098
- const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
144099
- return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
144100
- sourceFile,
144101
- referencesSyntax.elements[index],
144102
- reason.kind === 2 ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
144103
- ) : void 0;
144104
- case 8:
144105
- if (!options2.types)
144106
- return void 0;
144107
- configFileNode = getOptionsSyntaxByArrayElementValue("types", reason.typeReference);
144108
- message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
144109
- break;
144110
- case 6:
144111
- if (reason.index !== void 0) {
144112
- configFileNode = getOptionsSyntaxByArrayElementValue("lib", options2.lib[reason.index]);
144113
- message = Diagnostics.File_is_library_specified_here;
144114
- break;
144115
- }
144116
- const target = getNameOfScriptTarget(getEmitScriptTarget(options2));
144117
- configFileNode = target ? getOptionsSyntaxByValue("target", target) : void 0;
144118
- message = Diagnostics.File_is_default_library_for_target_specified_here;
144119
- break;
144120
- default:
144121
- Debug.assertNever(reason);
144122
- }
144123
- return configFileNode && createDiagnosticForNodeInSourceFile(
144124
- options2.configFile,
144125
- configFileNode,
144126
- message
144127
- );
144128
- }
144129
144289
  function verifyProjectReferences() {
144130
144290
  const buildInfoPath = !options2.suppressOutputPathCheck ? getTsBuildInfoEmitOutputFilePath(options2) : void 0;
144131
144291
  forEachProjectReference(
@@ -144163,7 +144323,7 @@ ${lanes.join("\n")}
144163
144323
  forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
144164
144324
  const initializer = keyProps.initializer;
144165
144325
  if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
144166
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options2.configFile, initializer.elements[valueIndex], message, ...args));
144326
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options2.configFile, initializer.elements[valueIndex], message, ...args));
144167
144327
  needCompilerDiagnostic = false;
144168
144328
  }
144169
144329
  });
@@ -144192,18 +144352,8 @@ ${lanes.join("\n")}
144192
144352
  createCompilerOptionsDiagnostic(message, ...args);
144193
144353
  }
144194
144354
  }
144195
- function forEachOptionsSyntaxByName(name, callback) {
144196
- return forEachPropertyAssignment(getCompilerOptionsObjectLiteralSyntax(), name, callback);
144197
- }
144198
144355
  function forEachOptionPathsSyntax(callback) {
144199
- return forEachOptionsSyntaxByName("paths", callback);
144200
- }
144201
- function getOptionsSyntaxByValue(name, value) {
144202
- return forEachOptionsSyntaxByName(name, (property) => isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : void 0);
144203
- }
144204
- function getOptionsSyntaxByArrayElementValue(name, value) {
144205
- const compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
144206
- return compilerOptionsObjectLiteralSyntax && getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);
144356
+ return forEachOptionsSyntaxByName(getCompilerOptionsObjectLiteralSyntax(), "paths", callback);
144207
144357
  }
144208
144358
  function createDiagnosticForOptionName(message, option1, option2, option3) {
144209
144359
  createDiagnosticForOption(
@@ -144231,9 +144381,9 @@ ${lanes.join("\n")}
144231
144381
  function createDiagnosticForReference(sourceFile, index, message, ...args) {
144232
144382
  const referencesSyntax = forEachTsConfigPropArray(sourceFile || options2.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
144233
144383
  if (referencesSyntax && referencesSyntax.elements.length > index) {
144234
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options2.configFile, referencesSyntax.elements[index], message, ...args));
144384
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options2.configFile, referencesSyntax.elements[index], message, ...args));
144235
144385
  } else {
144236
- programDiagnostics.add(createCompilerDiagnostic(message, ...args));
144386
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
144237
144387
  }
144238
144388
  }
144239
144389
  function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
@@ -144247,14 +144397,14 @@ ${lanes.join("\n")}
144247
144397
  const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
144248
144398
  if (compilerOptionsProperty) {
144249
144399
  if ("messageText" in message) {
144250
- programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options2.configFile, compilerOptionsProperty.name, message));
144400
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options2.configFile, compilerOptionsProperty.name, message));
144251
144401
  } else {
144252
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options2.configFile, compilerOptionsProperty.name, message, ...args));
144402
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options2.configFile, compilerOptionsProperty.name, message, ...args));
144253
144403
  }
144254
144404
  } else if ("messageText" in message) {
144255
- programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
144405
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
144256
144406
  } else {
144257
- programDiagnostics.add(createCompilerDiagnostic(message, ...args));
144407
+ programDiagnostics.addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
144258
144408
  }
144259
144409
  }
144260
144410
  function getCompilerOptionsObjectLiteralSyntax() {
@@ -144278,9 +144428,9 @@ ${lanes.join("\n")}
144278
144428
  let needsCompilerDiagnostic = false;
144279
144429
  forEachPropertyAssignment(objectLiteral, key1, (prop) => {
144280
144430
  if ("messageText" in message) {
144281
- programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options2.configFile, onKey ? prop.name : prop.initializer, message));
144431
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options2.configFile, onKey ? prop.name : prop.initializer, message));
144282
144432
  } else {
144283
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(options2.configFile, onKey ? prop.name : prop.initializer, message, ...args));
144433
+ programDiagnostics.addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options2.configFile, onKey ? prop.name : prop.initializer, message, ...args));
144284
144434
  }
144285
144435
  needsCompilerDiagnostic = true;
144286
144436
  }, key2);
@@ -144288,7 +144438,7 @@ ${lanes.join("\n")}
144288
144438
  }
144289
144439
  function blockEmittingOfFile(emitFileName, diag2) {
144290
144440
  hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
144291
- programDiagnostics.add(diag2);
144441
+ programDiagnostics.addConfigDiagnostic(diag2);
144292
144442
  }
144293
144443
  function isEmittedFile(file) {
144294
144444
  if (options2.noEmit) {
@@ -144647,6 +144797,303 @@ ${lanes.join("\n")}
144647
144797
  }
144648
144798
  Debug.fail("should never ask for module name at index higher than possible module name");
144649
144799
  }
144800
+ function createProgramDiagnostics(getCompilerOptionsObjectLiteralSyntax) {
144801
+ let computedDiagnostics;
144802
+ let fileReasons = createMultiMap();
144803
+ let fileProcessingDiagnostics;
144804
+ let commonSourceDirectory;
144805
+ let configDiagnostics;
144806
+ let lazyConfigDiagnostics;
144807
+ let fileReasonsToChain;
144808
+ let reasonToRelatedInfo;
144809
+ return {
144810
+ addConfigDiagnostic(diag2) {
144811
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
144812
+ (configDiagnostics != null ? configDiagnostics : configDiagnostics = createDiagnosticCollection()).add(diag2);
144813
+ },
144814
+ addLazyConfigDiagnostic(file, message, ...args) {
144815
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
144816
+ (lazyConfigDiagnostics != null ? lazyConfigDiagnostics : lazyConfigDiagnostics = []).push({ file, diagnostic: message, args });
144817
+ },
144818
+ addFileProcessingDiagnostic(diag2) {
144819
+ Debug.assert(computedDiagnostics === void 0, "Cannot modify program diagnostic state after requesting combined diagnostics");
144820
+ (fileProcessingDiagnostics != null ? fileProcessingDiagnostics : fileProcessingDiagnostics = []).push(diag2);
144821
+ },
144822
+ setCommonSourceDirectory(directory) {
144823
+ commonSourceDirectory = directory;
144824
+ },
144825
+ reuseStateFromOldProgram(oldProgramDiagnostics, isConfigIdentical) {
144826
+ fileReasons = oldProgramDiagnostics.getFileReasons();
144827
+ fileProcessingDiagnostics = oldProgramDiagnostics.getFileProcessingDiagnostics();
144828
+ if (isConfigIdentical) {
144829
+ commonSourceDirectory = oldProgramDiagnostics.getCommonSourceDirectory();
144830
+ configDiagnostics = oldProgramDiagnostics.getConfigDiagnostics();
144831
+ lazyConfigDiagnostics = oldProgramDiagnostics.getLazyConfigDiagnostics();
144832
+ }
144833
+ },
144834
+ getFileProcessingDiagnostics() {
144835
+ return fileProcessingDiagnostics;
144836
+ },
144837
+ getFileReasons() {
144838
+ return fileReasons;
144839
+ },
144840
+ getCommonSourceDirectory() {
144841
+ return commonSourceDirectory;
144842
+ },
144843
+ getConfigDiagnostics() {
144844
+ return configDiagnostics;
144845
+ },
144846
+ getLazyConfigDiagnostics() {
144847
+ return lazyConfigDiagnostics;
144848
+ },
144849
+ getCombinedDiagnostics(program) {
144850
+ if (computedDiagnostics) {
144851
+ return computedDiagnostics;
144852
+ }
144853
+ computedDiagnostics = createDiagnosticCollection();
144854
+ configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => computedDiagnostics.add(d));
144855
+ fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
144856
+ switch (diagnostic.kind) {
144857
+ case 1:
144858
+ return computedDiagnostics.add(
144859
+ createDiagnosticExplainingFile(
144860
+ program,
144861
+ diagnostic.file && program.getSourceFileByPath(diagnostic.file),
144862
+ diagnostic.fileProcessingReason,
144863
+ diagnostic.diagnostic,
144864
+ diagnostic.args || emptyArray
144865
+ )
144866
+ );
144867
+ case 0:
144868
+ return computedDiagnostics.add(filePreprocessingLibreferenceDiagnostic(program, diagnostic));
144869
+ case 2:
144870
+ return diagnostic.diagnostics.forEach((d) => computedDiagnostics.add(d));
144871
+ default:
144872
+ Debug.assertNever(diagnostic);
144873
+ }
144874
+ });
144875
+ lazyConfigDiagnostics == null ? void 0 : lazyConfigDiagnostics.forEach(
144876
+ ({ file, diagnostic, args }) => computedDiagnostics.add(
144877
+ createDiagnosticExplainingFile(
144878
+ program,
144879
+ file,
144880
+ /*fileProcessingReason*/
144881
+ void 0,
144882
+ diagnostic,
144883
+ args
144884
+ )
144885
+ )
144886
+ );
144887
+ fileReasonsToChain = void 0;
144888
+ reasonToRelatedInfo = void 0;
144889
+ return computedDiagnostics;
144890
+ }
144891
+ };
144892
+ function filePreprocessingLibreferenceDiagnostic(program, { reason }) {
144893
+ const { file, pos, end } = getReferencedFileLocation(program, reason);
144894
+ const libReference = file.libReferenceDirectives[reason.index];
144895
+ const libName = getLibNameFromLibReference(libReference);
144896
+ const unqualifiedLibName = removeSuffix(removePrefix(libName, "lib."), ".d.ts");
144897
+ const suggestion = getSpellingSuggestion(unqualifiedLibName, libs, identity);
144898
+ return createFileDiagnostic(
144899
+ file,
144900
+ Debug.checkDefined(pos),
144901
+ Debug.checkDefined(end) - pos,
144902
+ suggestion ? Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : Diagnostics.Cannot_find_lib_definition_for_0,
144903
+ libName,
144904
+ suggestion
144905
+ );
144906
+ }
144907
+ function createDiagnosticExplainingFile(program, file, fileProcessingReason, diagnostic, args) {
144908
+ let seenReasons;
144909
+ let fileIncludeReasons;
144910
+ let relatedInfo;
144911
+ let fileIncludeReasonDetails;
144912
+ let redirectInfo;
144913
+ let chain;
144914
+ const reasons = file && fileReasons.get(file.path);
144915
+ let locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : void 0;
144916
+ let cachedChain = file && (fileReasonsToChain == null ? void 0 : fileReasonsToChain.get(file.path));
144917
+ if (cachedChain) {
144918
+ if (cachedChain.fileIncludeReasonDetails) {
144919
+ seenReasons = new Set(reasons);
144920
+ reasons == null ? void 0 : reasons.forEach(populateRelatedInfo);
144921
+ } else {
144922
+ reasons == null ? void 0 : reasons.forEach(processReason);
144923
+ }
144924
+ redirectInfo = cachedChain.redirectInfo;
144925
+ } else {
144926
+ reasons == null ? void 0 : reasons.forEach(processReason);
144927
+ redirectInfo = file && explainIfFileIsRedirectAndImpliedFormat(file, program.getCompilerOptionsForFile(file));
144928
+ }
144929
+ if (fileProcessingReason)
144930
+ processReason(fileProcessingReason);
144931
+ const processedExtraReason = (seenReasons == null ? void 0 : seenReasons.size) !== (reasons == null ? void 0 : reasons.length);
144932
+ if (locationReason && (seenReasons == null ? void 0 : seenReasons.size) === 1)
144933
+ seenReasons = void 0;
144934
+ if (seenReasons && cachedChain) {
144935
+ if (cachedChain.details && !processedExtraReason) {
144936
+ chain = chainDiagnosticMessages(cachedChain.details, diagnostic, ...args != null ? args : emptyArray);
144937
+ } else if (cachedChain.fileIncludeReasonDetails) {
144938
+ if (!processedExtraReason) {
144939
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
144940
+ fileIncludeReasonDetails = cachedChain.fileIncludeReasonDetails;
144941
+ } else {
144942
+ fileIncludeReasons = cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length);
144943
+ }
144944
+ } else {
144945
+ if (!cachedFileIncludeDetailsHasProcessedExtraReason()) {
144946
+ fileIncludeReasons = [...cachedChain.fileIncludeReasonDetails.next, fileIncludeReasons[0]];
144947
+ } else {
144948
+ fileIncludeReasons = append(cachedChain.fileIncludeReasonDetails.next.slice(0, reasons.length), fileIncludeReasons[0]);
144949
+ }
144950
+ }
144951
+ }
144952
+ }
144953
+ if (!chain) {
144954
+ if (!fileIncludeReasonDetails)
144955
+ fileIncludeReasonDetails = seenReasons && chainDiagnosticMessages(fileIncludeReasons, Diagnostics.The_file_is_in_the_program_because_Colon);
144956
+ chain = chainDiagnosticMessages(
144957
+ redirectInfo ? fileIncludeReasonDetails ? [fileIncludeReasonDetails, ...redirectInfo] : redirectInfo : fileIncludeReasonDetails,
144958
+ diagnostic,
144959
+ ...args || emptyArray
144960
+ );
144961
+ }
144962
+ if (file) {
144963
+ if (cachedChain) {
144964
+ if (!cachedChain.fileIncludeReasonDetails || !processedExtraReason && fileIncludeReasonDetails) {
144965
+ cachedChain.fileIncludeReasonDetails = fileIncludeReasonDetails;
144966
+ }
144967
+ } else {
144968
+ (fileReasonsToChain != null ? fileReasonsToChain : fileReasonsToChain = /* @__PURE__ */ new Map()).set(file.path, cachedChain = { fileIncludeReasonDetails, redirectInfo });
144969
+ }
144970
+ if (!cachedChain.details && !processedExtraReason)
144971
+ cachedChain.details = chain.next;
144972
+ }
144973
+ const location = locationReason && getReferencedFileLocation(program, locationReason);
144974
+ return location && isReferenceFileLocation(location) ? createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) : createCompilerDiagnosticFromMessageChain(chain, relatedInfo);
144975
+ function processReason(reason) {
144976
+ if (seenReasons == null ? void 0 : seenReasons.has(reason))
144977
+ return;
144978
+ (seenReasons != null ? seenReasons : seenReasons = /* @__PURE__ */ new Set()).add(reason);
144979
+ (fileIncludeReasons != null ? fileIncludeReasons : fileIncludeReasons = []).push(fileIncludeReasonToDiagnostics(program, reason));
144980
+ populateRelatedInfo(reason);
144981
+ }
144982
+ function populateRelatedInfo(reason) {
144983
+ if (!locationReason && isReferencedFile(reason)) {
144984
+ locationReason = reason;
144985
+ } else if (locationReason !== reason) {
144986
+ relatedInfo = append(relatedInfo, getFileIncludeReasonToRelatedInformation(program, reason));
144987
+ }
144988
+ }
144989
+ function cachedFileIncludeDetailsHasProcessedExtraReason() {
144990
+ var _a;
144991
+ return ((_a = cachedChain.fileIncludeReasonDetails.next) == null ? void 0 : _a.length) !== (reasons == null ? void 0 : reasons.length);
144992
+ }
144993
+ }
144994
+ function getFileIncludeReasonToRelatedInformation(program, reason) {
144995
+ var _a;
144996
+ let relatedInfo = reasonToRelatedInfo == null ? void 0 : reasonToRelatedInfo.get(reason);
144997
+ if (relatedInfo === void 0)
144998
+ (reasonToRelatedInfo != null ? reasonToRelatedInfo : reasonToRelatedInfo = /* @__PURE__ */ new Map()).set(reason, relatedInfo = (_a = fileIncludeReasonToRelatedInformation(program, reason)) != null ? _a : false);
144999
+ return relatedInfo || void 0;
145000
+ }
145001
+ function fileIncludeReasonToRelatedInformation(program, reason) {
145002
+ if (isReferencedFile(reason)) {
145003
+ const referenceLocation = getReferencedFileLocation(program, reason);
145004
+ let message2;
145005
+ switch (reason.kind) {
145006
+ case 3:
145007
+ message2 = Diagnostics.File_is_included_via_import_here;
145008
+ break;
145009
+ case 4:
145010
+ message2 = Diagnostics.File_is_included_via_reference_here;
145011
+ break;
145012
+ case 5:
145013
+ message2 = Diagnostics.File_is_included_via_type_library_reference_here;
145014
+ break;
145015
+ case 7:
145016
+ message2 = Diagnostics.File_is_included_via_library_reference_here;
145017
+ break;
145018
+ default:
145019
+ Debug.assertNever(reason);
145020
+ }
145021
+ return isReferenceFileLocation(referenceLocation) ? createFileDiagnostic(
145022
+ referenceLocation.file,
145023
+ referenceLocation.pos,
145024
+ referenceLocation.end - referenceLocation.pos,
145025
+ message2
145026
+ ) : void 0;
145027
+ }
145028
+ const currentDirectory = program.getCurrentDirectory();
145029
+ const rootNames = program.getRootFileNames();
145030
+ const options2 = program.getCompilerOptions();
145031
+ if (!options2.configFile)
145032
+ return void 0;
145033
+ let configFileNode;
145034
+ let message;
145035
+ switch (reason.kind) {
145036
+ case 0:
145037
+ if (!options2.configFile.configFileSpecs)
145038
+ return void 0;
145039
+ const fileName = getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);
145040
+ const matchedByFiles = getMatchedFileSpec(program, fileName);
145041
+ if (matchedByFiles) {
145042
+ configFileNode = getTsConfigPropArrayElementValue(options2.configFile, "files", matchedByFiles);
145043
+ message = Diagnostics.File_is_matched_by_files_list_specified_here;
145044
+ break;
145045
+ }
145046
+ const matchedByInclude = getMatchedIncludeSpec(program, fileName);
145047
+ if (!matchedByInclude || !isString(matchedByInclude))
145048
+ return void 0;
145049
+ configFileNode = getTsConfigPropArrayElementValue(options2.configFile, "include", matchedByInclude);
145050
+ message = Diagnostics.File_is_matched_by_include_pattern_specified_here;
145051
+ break;
145052
+ case 1:
145053
+ case 2:
145054
+ const resolvedProjectReferences = program.getResolvedProjectReferences();
145055
+ const projectReferences = program.getProjectReferences();
145056
+ const referencedResolvedRef = Debug.checkDefined(resolvedProjectReferences == null ? void 0 : resolvedProjectReferences[reason.index]);
145057
+ const referenceInfo = forEachProjectReference(
145058
+ projectReferences,
145059
+ resolvedProjectReferences,
145060
+ (resolvedRef, parent2, index2) => resolvedRef === referencedResolvedRef ? { sourceFile: (parent2 == null ? void 0 : parent2.sourceFile) || options2.configFile, index: index2 } : void 0
145061
+ );
145062
+ if (!referenceInfo)
145063
+ return void 0;
145064
+ const { sourceFile, index } = referenceInfo;
145065
+ const referencesSyntax = forEachTsConfigPropArray(sourceFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
145066
+ return referencesSyntax && referencesSyntax.elements.length > index ? createDiagnosticForNodeInSourceFile(
145067
+ sourceFile,
145068
+ referencesSyntax.elements[index],
145069
+ reason.kind === 2 ? Diagnostics.File_is_output_from_referenced_project_specified_here : Diagnostics.File_is_source_from_referenced_project_specified_here
145070
+ ) : void 0;
145071
+ case 8:
145072
+ if (!options2.types)
145073
+ return void 0;
145074
+ configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "types", reason.typeReference);
145075
+ message = Diagnostics.File_is_entry_point_of_type_library_specified_here;
145076
+ break;
145077
+ case 6:
145078
+ if (reason.index !== void 0) {
145079
+ configFileNode = getOptionsSyntaxByArrayElementValue(getCompilerOptionsObjectLiteralSyntax(), "lib", options2.lib[reason.index]);
145080
+ message = Diagnostics.File_is_library_specified_here;
145081
+ break;
145082
+ }
145083
+ const target = getNameOfScriptTarget(getEmitScriptTarget(options2));
145084
+ configFileNode = target ? getOptionsSyntaxByValue(getCompilerOptionsObjectLiteralSyntax(), "target", target) : void 0;
145085
+ message = Diagnostics.File_is_default_library_for_target_specified_here;
145086
+ break;
145087
+ default:
145088
+ Debug.assertNever(reason);
145089
+ }
145090
+ return configFileNode && createDiagnosticForNodeInSourceFile(
145091
+ options2.configFile,
145092
+ configFileNode,
145093
+ message
145094
+ );
145095
+ }
145096
+ }
144650
145097
  function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {
144651
145098
  const outputFiles = [];
144652
145099
  const { emitSkipped, diagnostics } = program.emit(sourceFile, writeFile2, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit);
@@ -152999,9 +153446,9 @@ ${lanes.join("\n")}
152999
153446
  }
153000
153447
  if (!result && node.kind === 303) {
153001
153448
  const initializer = node.initializer;
153002
- const type = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 || initializer.kind === 216 ? initializer.type : void 0;
153003
- if (type && !isConstTypeReference(type)) {
153004
- result = serializeExistingTypeNode(type, context);
153449
+ const assertionNode = isJSDocTypeAssertion(initializer) ? getJSDocTypeAssertionType(initializer) : initializer.kind === 234 || initializer.kind === 216 ? initializer.type : void 0;
153450
+ if (assertionNode && !isConstTypeReference(assertionNode) && resolver.canReuseTypeNodeAnnotation(context, node, assertionNode, symbol)) {
153451
+ result = serializeExistingTypeNode(assertionNode, context);
153005
153452
  }
153006
153453
  }
153007
153454
  return result != null ? result : inferTypeOfDeclaration(
@@ -153324,18 +153771,21 @@ ${lanes.join("\n")}
153324
153771
  return failed;
153325
153772
  }
153326
153773
  function typeFromFunctionLikeExpression(fnNode, context) {
153327
- const oldNoInferenceFallback = context.noInferenceFallback;
153328
- context.noInferenceFallback = true;
153329
- createReturnFromSignature(
153774
+ const returnType = createReturnFromSignature(
153330
153775
  fnNode,
153331
153776
  /*symbol*/
153332
153777
  void 0,
153333
153778
  context
153334
153779
  );
153335
- reuseTypeParameters(fnNode.typeParameters, context);
153336
- fnNode.parameters.map((p) => ensureParameter(p, context));
153337
- context.noInferenceFallback = oldNoInferenceFallback;
153338
- return notImplemented2;
153780
+ const typeParameters = reuseTypeParameters(fnNode.typeParameters, context);
153781
+ const parameters = fnNode.parameters.map((p) => ensureParameter(p, context));
153782
+ return syntacticResult(
153783
+ factory.createFunctionTypeNode(
153784
+ typeParameters,
153785
+ parameters,
153786
+ returnType
153787
+ )
153788
+ );
153339
153789
  }
153340
153790
  function canGetTypeFromArrayLiteral(arrayLiteral, context, isConstContext) {
153341
153791
  if (!isConstContext) {
@@ -157118,7 +157568,7 @@ ${lanes.join("\n")}
157118
157568
  return moduleSpecifierToValidIdentifier(removeFileExtension(stripQuotes(moduleSymbol.name)), target, forceCapitalize);
157119
157569
  }
157120
157570
  function moduleSpecifierToValidIdentifier(moduleSpecifier, target, forceCapitalize) {
157121
- const baseName = getBaseFileName(removeSuffix(moduleSpecifier, "/index"));
157571
+ const baseName = getBaseFileName(removeSuffix(removeFileExtension(moduleSpecifier), "/index"));
157122
157572
  let res = "";
157123
157573
  let lastCharWasValid = true;
157124
157574
  const firstCharCode = baseName.charCodeAt(0);
@@ -163368,7 +163818,7 @@ interface Symbol {
163368
163818
  const unusedImportsFromOldFile = /* @__PURE__ */ new Set();
163369
163819
  for (const statement of toMove) {
163370
163820
  forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => {
163371
- if (!symbol.declarations) {
163821
+ if (!some(symbol.declarations)) {
163372
163822
  return;
163373
163823
  }
163374
163824
  if (existingTargetLocals.has(skipAlias(symbol, checker))) {
@@ -174265,6 +174715,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
174265
174715
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,
174266
174716
  Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,
174267
174717
  Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,
174718
+ Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code,
174268
174719
  Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code
174269
174720
  ];
174270
174721
  registerCodeFix({
@@ -175398,6 +175849,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
175398
175849
  case 200:
175399
175850
  return 2;
175400
175851
  case 100:
175852
+ case 101:
175401
175853
  case 199:
175402
175854
  return getImpliedNodeFormatForEmit(importingFile, program) === 99 ? 2 : 3;
175403
175855
  default:
@@ -176864,7 +177316,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176864
177316
  Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,
176865
177317
  Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,
176866
177318
  Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
176867
- Diagnostics.Cannot_find_name_0.code
177319
+ Diagnostics.Cannot_find_name_0.code,
177320
+ Diagnostics.Type_0_does_not_satisfy_the_expected_type_1.code
176868
177321
  ];
176869
177322
  registerCodeFix({
176870
177323
  errorCodes: errorCodes28,
@@ -176901,9 +177354,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176901
177354
  return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
176902
177355
  eachDiagnostic(context, errorCodes28, (diag2) => {
176903
177356
  const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
176904
- if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier : info.token.text))) {
177357
+ if (info === void 0)
177358
+ return;
177359
+ const nodeId = getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 ? info.identifier || getNodeId(info.token) : info.token.text);
177360
+ if (!addToSeen(seen, nodeId))
176905
177361
  return;
176906
- }
176907
177362
  if (fixId56 === fixMissingFunctionDeclaration && (info.kind === 2 || info.kind === 5)) {
176908
177363
  addFunctionDeclaration(changes, context, info);
176909
177364
  } else if (fixId56 === fixMissingProperties && info.kind === 3) {
@@ -176956,7 +177411,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176956
177411
  }
176957
177412
  });
176958
177413
  function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
176959
- var _a, _b, _c;
177414
+ var _a, _b;
176960
177415
  const token = getTokenAtPosition(sourceFile, tokenPos);
176961
177416
  const parent2 = token.parent;
176962
177417
  if (errorCode === Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code) {
@@ -176983,25 +177438,27 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
176983
177438
  return void 0;
176984
177439
  return { kind: 3, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 };
176985
177440
  }
176986
- if (token.kind === 19 && isObjectLiteralExpression(parent2)) {
176987
- const targetType = (_a = checker.getContextualType(parent2) || checker.getTypeAtLocation(parent2)) == null ? void 0 : _a.getNonNullableType();
176988
- const properties = arrayFrom(checker.getUnmatchedProperties(
176989
- checker.getTypeAtLocation(parent2),
176990
- targetType,
176991
- /*requireOptionalProperties*/
176992
- false,
176993
- /*matchDiscriminantProperties*/
176994
- false
176995
- ));
176996
- if (!length(properties))
176997
- return void 0;
176998
- const identifier = "";
176999
- return { kind: 3, token: parent2, identifier, properties, parentDeclaration: parent2 };
177441
+ if (token.kind === 19 || isSatisfiesExpression(parent2) || isReturnStatement(parent2)) {
177442
+ const expression = (isSatisfiesExpression(parent2) || isReturnStatement(parent2)) && parent2.expression ? parent2.expression : parent2;
177443
+ if (isObjectLiteralExpression(expression)) {
177444
+ const targetType = isSatisfiesExpression(parent2) ? checker.getTypeFromTypeNode(parent2.type) : checker.getContextualType(expression) || checker.getTypeAtLocation(expression);
177445
+ const properties = arrayFrom(checker.getUnmatchedProperties(
177446
+ checker.getTypeAtLocation(parent2),
177447
+ targetType.getNonNullableType(),
177448
+ /*requireOptionalProperties*/
177449
+ false,
177450
+ /*matchDiscriminantProperties*/
177451
+ false
177452
+ ));
177453
+ if (!length(properties))
177454
+ return void 0;
177455
+ return { kind: 3, token: parent2, identifier: void 0, properties, parentDeclaration: expression, indentation: isReturnStatement(expression.parent) || isYieldExpression(expression.parent) ? 0 : void 0 };
177456
+ }
177000
177457
  }
177001
177458
  if (!isMemberName(token))
177002
177459
  return void 0;
177003
177460
  if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {
177004
- const targetType = (_b = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _b.getNonNullableType();
177461
+ const targetType = (_a = checker.getContextualType(token) || checker.getTypeAtLocation(token)) == null ? void 0 : _a.getNonNullableType();
177005
177462
  const properties = arrayFrom(checker.getUnmatchedProperties(
177006
177463
  checker.getTypeAtLocation(parent2.initializer),
177007
177464
  targetType,
@@ -177022,7 +177479,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
177022
177479
  return { kind: 4, token, attributes, parentDeclaration: token.parent };
177023
177480
  }
177024
177481
  if (isIdentifier(token)) {
177025
- const type = (_c = checker.getContextualType(token)) == null ? void 0 : _c.getNonNullableType();
177482
+ const type = (_b = checker.getContextualType(token)) == null ? void 0 : _b.getNonNullableType();
177026
177483
  if (type && getObjectFlags(type) & 16) {
177027
177484
  const signature = firstOrUndefined(checker.getSignaturesOfType(
177028
177485
  type,
@@ -178091,9 +178548,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
178091
178548
  }
178092
178549
  registerCodeFix({
178093
178550
  errorCodes: [
178094
- Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
178095
- Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
178096
- Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code
178551
+ Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
178552
+ Diagnostics.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,
178553
+ Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code
178097
178554
  ],
178098
178555
  getCodeActions: function getCodeActionsToFixModuleAndTarget(context) {
178099
178556
  const compilerOptions = context.program.getCompilerOptions();
@@ -178563,6 +179020,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
178563
179020
  break;
178564
179021
  } else if (canDeleteEntireVariableStatement(sourceFile, token)) {
178565
179022
  deleteEntireVariableStatement(changes, sourceFile, token.parent);
179023
+ } else if (isIdentifier(token) && isFunctionDeclaration(token.parent)) {
179024
+ deleteFunctionLikeDeclaration(changes, sourceFile, token.parent);
178566
179025
  } else {
178567
179026
  tryDeleteDeclaration(
178568
179027
  sourceFile,
@@ -181692,12 +182151,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
181692
182151
  return typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget);
181693
182152
  }
181694
182153
  function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
181695
- if (typeNode && isImportTypeNode(typeNode)) {
181696
- const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
181697
- if (importableReference) {
181698
- importSymbols(importAdder, importableReference.symbols);
181699
- typeNode = importableReference.typeNode;
181700
- }
182154
+ const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
182155
+ if (importableReference) {
182156
+ importSymbols(importAdder, importableReference.symbols);
182157
+ typeNode = importableReference.typeNode;
181701
182158
  }
181702
182159
  return getSynthesizedDeepClone(typeNode);
181703
182160
  }
@@ -190628,7 +191085,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
190628
191085
  } else {
190629
191086
  addIfImplementation(body);
190630
191087
  }
190631
- } else if (isAssertionExpression(typeHavingNode)) {
191088
+ } else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) {
190632
191089
  addIfImplementation(typeHavingNode.expression);
190633
191090
  }
190634
191091
  }
@@ -191102,7 +191559,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191102
191559
  const { parent: parent2 } = node;
191103
191560
  const typeChecker = program.getTypeChecker();
191104
191561
  if (node.kind === 164 || isIdentifier(node) && isJSDocOverrideTag(parent2) && parent2.tagName === node) {
191105
- return getDefinitionFromOverriddenMember(typeChecker, node) || emptyArray;
191562
+ const def = getDefinitionFromOverriddenMember(typeChecker, node);
191563
+ if (def !== void 0 || node.kind !== 164) {
191564
+ return def || emptyArray;
191565
+ }
191106
191566
  }
191107
191567
  if (isJumpStatementTarget(node)) {
191108
191568
  const label = getTargetLabel(node.parent, node.text);
@@ -191116,9 +191576,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191116
191576
  )] : void 0;
191117
191577
  }
191118
191578
  switch (node.kind) {
191119
- case 107:
191120
- const functionDeclaration = findAncestor(node.parent, (n) => isClassStaticBlockDeclaration(n) ? "quit" : isFunctionLikeDeclaration(n));
191121
- return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
191122
191579
  case 90:
191123
191580
  if (!isDefaultClause(node.parent)) {
191124
191581
  break;
@@ -191130,19 +191587,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191130
191587
  }
191131
191588
  break;
191132
191589
  }
191133
- if (node.kind === 135) {
191134
- const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));
191135
- const isAsyncFunction2 = functionDeclaration && some(
191136
- functionDeclaration.modifiers,
191137
- (node2) => node2.kind === 134
191138
- /* AsyncKeyword */
191139
- );
191140
- return isAsyncFunction2 ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
191141
- }
191142
- if (node.kind === 127) {
191143
- const functionDeclaration = findAncestor(node, (n) => isFunctionLikeDeclaration(n));
191144
- const isGeneratorFunction = functionDeclaration && functionDeclaration.asteriskToken;
191145
- return isGeneratorFunction ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
191590
+ let findFunctionDecl;
191591
+ switch (node.kind) {
191592
+ case 107:
191593
+ case 135:
191594
+ case 127:
191595
+ findFunctionDecl = isFunctionLikeDeclaration;
191596
+ const functionDeclaration = findAncestor(node, findFunctionDecl);
191597
+ return functionDeclaration ? [createDefinitionFromSignatureDeclaration(typeChecker, functionDeclaration)] : void 0;
191146
191598
  }
191147
191599
  if (isStaticModifier(node) && isClassStaticBlockDeclaration(node.parent)) {
191148
191600
  const classDecl = node.parent.parent;
@@ -191192,6 +191644,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191192
191644
  }];
191193
191645
  }
191194
191646
  }
191647
+ if (isModifier(node) && (isClassElement(parent2) || isNamedDeclaration(parent2))) {
191648
+ symbol = parent2.symbol;
191649
+ }
191195
191650
  if (!symbol) {
191196
191651
  return concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker));
191197
191652
  }
@@ -191395,12 +191850,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191395
191850
  false
191396
191851
  );
191397
191852
  }
191398
- const { symbol, failedAliasResolution } = getSymbol(
191853
+ let { symbol, failedAliasResolution } = getSymbol(
191399
191854
  node,
191400
191855
  typeChecker,
191401
191856
  /*stopAtAlias*/
191402
191857
  false
191403
191858
  );
191859
+ if (isModifier(node) && (isClassElement(node.parent) || isNamedDeclaration(node.parent))) {
191860
+ symbol = node.parent.symbol;
191861
+ failedAliasResolution = false;
191862
+ }
191404
191863
  if (!symbol)
191405
191864
  return void 0;
191406
191865
  const typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);
@@ -191913,22 +192372,26 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
191913
192372
  if (!signature) {
191914
192373
  return;
191915
192374
  }
191916
- for (let i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) {
191917
- const param = node.parameters[i];
191918
- if (!isHintableDeclaration(param)) {
191919
- continue;
191920
- }
191921
- const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);
191922
- if (effectiveTypeAnnotation) {
191923
- continue;
192375
+ let pos = 0;
192376
+ for (const param of node.parameters) {
192377
+ if (isHintableDeclaration(param)) {
192378
+ addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]);
191924
192379
  }
191925
- const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
191926
- if (!typeHints) {
192380
+ if (parameterIsThisKeyword(param)) {
191927
192381
  continue;
191928
192382
  }
191929
- addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
192383
+ pos++;
191930
192384
  }
191931
192385
  }
192386
+ function addParameterTypeHint(node, symbol) {
192387
+ const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node);
192388
+ if (effectiveTypeAnnotation || symbol === void 0)
192389
+ return;
192390
+ const typeHints = getParameterDeclarationTypeHints(symbol);
192391
+ if (typeHints === void 0)
192392
+ return;
192393
+ addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end);
192394
+ }
191932
192395
  function getParameterDeclarationTypeHints(symbol) {
191933
192396
  const valueDeclaration = symbol.valueDeclaration;
191934
192397
  if (!valueDeclaration || !isParameter(valueDeclaration)) {
@@ -201862,6 +202325,7 @@ ${options2.prefix}` : "\n" : options2.prefix
201862
202325
  createPrinterWithRemoveCommentsNeverAsciiEscape: () => createPrinterWithRemoveCommentsNeverAsciiEscape,
201863
202326
  createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => createPrinterWithRemoveCommentsOmitTrailingSemicolon,
201864
202327
  createProgram: () => createProgram,
202328
+ createProgramDiagnostics: () => createProgramDiagnostics,
201865
202329
  createProgramHost: () => createProgramHost,
201866
202330
  createPropertyNameNodeForIdentifierOrLiteral: () => createPropertyNameNodeForIdentifierOrLiteral,
201867
202331
  createQueue: () => createQueue,
@@ -202031,6 +202495,8 @@ ${options2.prefix}` : "\n" : options2.prefix
202031
202495
  forEachLeadingCommentRange: () => forEachLeadingCommentRange,
202032
202496
  forEachNameInAccessChainWalkingLeft: () => forEachNameInAccessChainWalkingLeft,
202033
202497
  forEachNameOfDefaultExport: () => forEachNameOfDefaultExport,
202498
+ forEachOptionsSyntaxByName: () => forEachOptionsSyntaxByName,
202499
+ forEachProjectReference: () => forEachProjectReference,
202034
202500
  forEachPropertyAssignment: () => forEachPropertyAssignment,
202035
202501
  forEachResolvedProjectReference: () => forEachResolvedProjectReference,
202036
202502
  forEachReturnStatement: () => forEachReturnStatement,
@@ -202270,6 +202736,8 @@ ${options2.prefix}` : "\n" : options2.prefix
202270
202736
  getLeadingCommentRangesOfNode: () => getLeadingCommentRangesOfNode,
202271
202737
  getLeftmostAccessExpression: () => getLeftmostAccessExpression,
202272
202738
  getLeftmostExpression: () => getLeftmostExpression,
202739
+ getLibFileNameFromLibReference: () => getLibFileNameFromLibReference,
202740
+ getLibNameFromLibReference: () => getLibNameFromLibReference,
202273
202741
  getLibraryNameFromLibFileName: () => getLibraryNameFromLibFileName,
202274
202742
  getLineAndCharacterOfPosition: () => getLineAndCharacterOfPosition,
202275
202743
  getLineInfo: () => getLineInfo,
@@ -202342,6 +202810,8 @@ ${options2.prefix}` : "\n" : options2.prefix
202342
202810
  getOptionFromName: () => getOptionFromName,
202343
202811
  getOptionsForLibraryResolution: () => getOptionsForLibraryResolution,
202344
202812
  getOptionsNameMap: () => getOptionsNameMap,
202813
+ getOptionsSyntaxByArrayElementValue: () => getOptionsSyntaxByArrayElementValue,
202814
+ getOptionsSyntaxByValue: () => getOptionsSyntaxByValue,
202345
202815
  getOrCreateEmitNode: () => getOrCreateEmitNode,
202346
202816
  getOrUpdate: () => getOrUpdate,
202347
202817
  getOriginalNode: () => getOriginalNode,
@@ -202378,7 +202848,6 @@ ${options2.prefix}` : "\n" : options2.prefix
202378
202848
  getPrivateIdentifier: () => getPrivateIdentifier,
202379
202849
  getProperties: () => getProperties,
202380
202850
  getProperty: () => getProperty,
202381
- getPropertyArrayElementValue: () => getPropertyArrayElementValue,
202382
202851
  getPropertyAssignmentAliasLikeExpression: () => getPropertyAssignmentAliasLikeExpression,
202383
202852
  getPropertyNameForPropertyNameNode: () => getPropertyNameForPropertyNameNode,
202384
202853
  getPropertyNameFromType: () => getPropertyNameFromType,
@@ -203289,6 +203758,7 @@ ${options2.prefix}` : "\n" : options2.prefix
203289
203758
  moduleResolutionUsesNodeModules: () => moduleResolutionUsesNodeModules,
203290
203759
  moduleSpecifierToValidIdentifier: () => moduleSpecifierToValidIdentifier,
203291
203760
  moduleSpecifiers: () => ts_moduleSpecifiers_exports,
203761
+ moduleSupportsImportAttributes: () => moduleSupportsImportAttributes,
203292
203762
  moduleSymbolToValidIdentifier: () => moduleSymbolToValidIdentifier,
203293
203763
  moveEmitHelpers: () => moveEmitHelpers,
203294
203764
  moveRangeEnd: () => moveRangeEnd,
@@ -204660,6 +205130,7 @@ ${options2.prefix}` : "\n" : options2.prefix
204660
205130
  ModuleKind3["ES2022"] = "es2022";
204661
205131
  ModuleKind3["ESNext"] = "esnext";
204662
205132
  ModuleKind3["Node16"] = "node16";
205133
+ ModuleKind3["Node18"] = "node18";
204663
205134
  ModuleKind3["NodeNext"] = "nodenext";
204664
205135
  ModuleKind3["Preserve"] = "preserve";
204665
205136
  return ModuleKind3;
@@ -215297,20 +215768,19 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
215297
215768
  try {
215298
215769
  codeActions = project.getLanguageService().getCodeFixesAtPosition(file, startPosition, endPosition, args.errorCodes, this.getFormatOptions(file), this.getPreferences(file));
215299
215770
  } catch (e) {
215771
+ const error2 = e instanceof Error ? e : new Error(e);
215300
215772
  const ls = project.getLanguageService();
215301
215773
  const existingDiagCodes = [
215302
215774
  ...ls.getSyntacticDiagnostics(file),
215303
215775
  ...ls.getSemanticDiagnostics(file),
215304
215776
  ...ls.getSuggestionDiagnostics(file)
215305
- ].map(
215306
- (d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length) && d.code
215307
- );
215777
+ ].filter((d) => decodedTextSpanIntersectsWith(startPosition, endPosition - startPosition, d.start, d.length)).map((d) => d.code);
215308
215778
  const badCode = args.errorCodes.find((c) => !existingDiagCodes.includes(c));
215309
215779
  if (badCode !== void 0) {
215310
- e.message = `BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")}); could have caused this error:
215311
- ${e.message}`;
215780
+ error2.message += `
215781
+ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range ${startPosition}..${endPosition} (found: ${existingDiagCodes.join(", ")})`;
215312
215782
  }
215313
- throw e;
215783
+ throw error2;
215314
215784
  }
215315
215785
  return simplifiedResult ? codeActions.map((codeAction) => this.mapCodeFixAction(codeAction)) : codeActions;
215316
215786
  }
@@ -216886,9 +217356,9 @@ ${e.message}`;
216886
217356
  }
216887
217357
  });
216888
217358
 
216889
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/embedded_support.js
217359
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/embedded_support.js
216890
217360
  var require_embedded_support = __commonJS({
216891
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/embedded_support.js"(exports2) {
217361
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/embedded_support.js"(exports2) {
216892
217362
  "use strict";
216893
217363
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
216894
217364
  if (k2 === void 0)
@@ -216986,9 +217456,9 @@ var require_embedded_support = __commonJS({
216986
217456
  }
216987
217457
  });
216988
217458
 
216989
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/initialize.js
217459
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/initialize.js
216990
217460
  var require_initialize = __commonJS({
216991
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/initialize.js"(exports2) {
217461
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/initialize.js"(exports2) {
216992
217462
  "use strict";
216993
217463
  Object.defineProperty(exports2, "__esModule", { value: true });
216994
217464
  exports2.OpenJsDocLinkCommandId = void 0;
@@ -216996,9 +217466,9 @@ var require_initialize = __commonJS({
216996
217466
  }
216997
217467
  });
216998
217468
 
216999
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/text_render.js
217469
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/text_render.js
217000
217470
  var require_text_render = __commonJS({
217001
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/text_render.js"(exports2) {
217471
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/text_render.js"(exports2) {
217002
217472
  "use strict";
217003
217473
  Object.defineProperty(exports2, "__esModule", { value: true });
217004
217474
  exports2.documentationToMarkdown = exports2.tagsToMarkdown = exports2.asPlainTextWithLinks = void 0;
@@ -217196,9 +217666,9 @@ var require_text_render = __commonJS({
217196
217666
  }
217197
217667
  });
217198
217668
 
217199
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/session.js
217669
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/session.js
217200
217670
  var require_session = __commonJS({
217201
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/session.js"(exports2) {
217671
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/session.js"(exports2) {
217202
217672
  "use strict";
217203
217673
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
217204
217674
  if (k2 === void 0)
@@ -218388,9 +218858,9 @@ var require_session = __commonJS({
218388
218858
  }
218389
218859
  });
218390
218860
 
218391
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/resolver.js
218861
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/resolver.js
218392
218862
  var require_resolver = __commonJS({
218393
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/common/resolver.js"(exports2) {
218863
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/common/resolver.js"(exports2) {
218394
218864
  "use strict";
218395
218865
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
218396
218866
  if (k2 === void 0)
@@ -218498,9 +218968,9 @@ var require_resolver = __commonJS({
218498
218968
  }
218499
218969
  });
218500
218970
 
218501
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/version_provider.js
218971
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/version_provider.js
218502
218972
  var require_version_provider = __commonJS({
218503
- "../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/version_provider.js"(exports2) {
218973
+ "../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/version_provider.js"(exports2) {
218504
218974
  "use strict";
218505
218975
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
218506
218976
  if (k2 === void 0)
@@ -218610,7 +219080,7 @@ var require_version_provider = __commonJS({
218610
219080
  }
218611
219081
  });
218612
219082
 
218613
- // ../../../../../../../../execroot/__main__/bazel-out/darwin_arm64-fastbuild/bin/server/src/server.js
219083
+ // ../../../../../../../../execroot/__main__/bazel-out/k8-fastbuild/bin/server/src/server.js
218614
219084
  Object.defineProperty(exports, "__esModule", { value: true });
218615
219085
  var tsserverlibrary_1 = require("typescript/lib/tsserverlibrary");
218616
219086
  var cmdline_utils_1 = require_cmdline_utils();