@typescript-deploys/pr-build 5.2.0-pr-54278-2 → 5.2.0-pr-54316-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3081,15 +3081,9 @@ declare namespace ts {
3081
3081
  */
3082
3082
  Force = 3
3083
3083
  }
3084
- type PluginConfig = PluginImport | TransformerPluginImport;
3085
3084
  interface PluginImport {
3086
- type?: undefined;
3087
3085
  name: string;
3088
3086
  }
3089
- interface TransformerPluginImport {
3090
- type: "transformer";
3091
- path: string;
3092
- }
3093
3087
  interface ProjectReference {
3094
3088
  /** A normalized path on disk */
3095
3089
  path: string;
@@ -3120,7 +3114,7 @@ declare namespace ts {
3120
3114
  DynamicPriority = 2,
3121
3115
  FixedChunkSize = 3
3122
3116
  }
3123
- type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginConfig[] | ProjectReference[] | null | undefined;
3117
+ type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined;
3124
3118
  interface CompilerOptions {
3125
3119
  allowImportingTsExtensions?: boolean;
3126
3120
  allowJs?: boolean;
@@ -3225,8 +3219,6 @@ declare namespace ts {
3225
3219
  verbatimModuleSyntax?: boolean;
3226
3220
  esModuleInterop?: boolean;
3227
3221
  useDefineForClassFields?: boolean;
3228
- customTransformers?: string[];
3229
- allowPlugins?: boolean;
3230
3222
  [option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
3231
3223
  }
3232
3224
  interface WatchOptions {
@@ -4359,20 +4351,6 @@ declare namespace ts {
4359
4351
  negative: boolean;
4360
4352
  base10Value: string;
4361
4353
  }
4362
- type CustomTransformersModuleFactory = (mod: {
4363
- typescript: typeof ts;
4364
- }) => CustomTransformersModule;
4365
- interface CustomTransformersModuleWithName {
4366
- name: string;
4367
- module: CustomTransformersModule;
4368
- }
4369
- interface CustomTransformersModule {
4370
- create(createInfo: CustomTransformersCreateInfo): CustomTransformers;
4371
- }
4372
- interface CustomTransformersCreateInfo {
4373
- program: Program;
4374
- config: any;
4375
- }
4376
4354
  enum FileWatcherEventKind {
4377
4355
  Created = 0,
4378
4356
  Changed = 1,
@@ -5824,7 +5802,6 @@ declare namespace ts {
5824
5802
  sourceMap?: boolean;
5825
5803
  inlineSourceMap?: boolean;
5826
5804
  traceResolution?: boolean;
5827
- allowPlugins?: boolean;
5828
5805
  [option: string]: CompilerOptionsValue | undefined;
5829
5806
  }
5830
5807
  type ReportEmitErrorSummary = (errorCount: number, filesInError: (ReportFileInError | undefined)[]) => void;
@@ -6540,6 +6517,7 @@ declare namespace ts {
6540
6517
  renameFilename?: string;
6541
6518
  renameLocation?: number;
6542
6519
  commands?: CodeActionCommand[];
6520
+ notApplicableReason?: string;
6543
6521
  }
6544
6522
  type RefactorTriggerReason = "implicit" | "invoked";
6545
6523
  interface TextInsertion {
@@ -6861,6 +6839,7 @@ declare namespace ts {
6861
6839
  kindModifiers?: string;
6862
6840
  sortText: string;
6863
6841
  insertText?: string;
6842
+ filterText?: string;
6864
6843
  isSnippet?: true;
6865
6844
  /**
6866
6845
  * An optional span that indicates the text to be replaced by this completion item.
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-insiders.20230516`;
38
+ version = `${versionMajorMinor}.0-insiders.20230518`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -45,34 +45,6 @@ var ts = (() => {
45
45
  }
46
46
  });
47
47
 
48
- // src/compiler/pluginUtilities.ts
49
- function setTypeScriptNamespace(entrypoint, ts) {
50
- if (currentEntrypoint !== void 0)
51
- throw new Error("ts namespace already set");
52
- currentEntrypoint = entrypoint;
53
- currentTsNamespace = ts;
54
- }
55
- function getTypeScriptNamespace() {
56
- if (currentTsNamespace === void 0)
57
- throw new Error("ts namespace unset");
58
- return currentTsNamespace;
59
- }
60
- function shouldAllowPlugins(options) {
61
- switch (currentEntrypoint) {
62
- case "tsserver":
63
- case "tsserverlibrary":
64
- case "typescript":
65
- return true;
66
- }
67
- return options.allowPlugins ?? false;
68
- }
69
- var currentEntrypoint, currentTsNamespace;
70
- var init_pluginUtilities = __esm({
71
- "src/compiler/pluginUtilities.ts"() {
72
- "use strict";
73
- }
74
- });
75
-
76
48
  // src/compiler/core.ts
77
49
  function length(array) {
78
50
  return array ? array.length : 0;
@@ -8690,7 +8662,6 @@ ${lanes.join("\n")}
8690
8662
  Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
8691
8663
  true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
8692
8664
  List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
8693
- Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present: diag(6932, 1 /* Error */, "Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present_6932", "Option '--allowPlugins' must be specified when compiler plugins are present."),
8694
8665
  Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
8695
8666
  Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
8696
8667
  Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
@@ -9047,6 +9018,7 @@ ${lanes.join("\n")}
9047
9018
  Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."),
9048
9019
  Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."),
9049
9020
  Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"),
9021
+ Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"),
9050
9022
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
9051
9023
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
9052
9024
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -20621,7 +20593,8 @@ ${lanes.join("\n")}
20621
20593
  ensureUseStrict,
20622
20594
  liftToBlock,
20623
20595
  mergeLexicalEnvironment,
20624
- updateModifiers
20596
+ updateModifiers,
20597
+ updateModifierLike
20625
20598
  };
20626
20599
  forEach(nodeFactoryPatchers, (fn) => fn(factory2));
20627
20600
  return factory2;
@@ -24103,6 +24076,9 @@ ${lanes.join("\n")}
24103
24076
  }
24104
24077
  return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
24105
24078
  }
24079
+ function updateModifierLike(node, modifierArray) {
24080
+ return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration2(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node);
24081
+ }
24106
24082
  function asNodeArray(array) {
24107
24083
  return array ? createNodeArray(array) : void 0;
24108
24084
  }
@@ -25545,10 +25521,10 @@ ${lanes.join("\n")}
25545
25521
  if (result === null || typeof result !== "object") throw new TypeError("Object expected");
25546
25522
  if (_ = accept(result.get)) descriptor.get = _;
25547
25523
  if (_ = accept(result.set)) descriptor.set = _;
25548
- if (_ = accept(result.init)) initializers.push(_);
25524
+ if (_ = accept(result.init)) initializers.unshift(_);
25549
25525
  }
25550
25526
  else if (_ = accept(result)) {
25551
- if (kind === "field") initializers.push(_);
25527
+ if (kind === "field") initializers.unshift(_);
25552
25528
  else descriptor[key] = _;
25553
25529
  }
25554
25530
  }
@@ -37585,15 +37561,6 @@ ${lanes.join("\n")}
37585
37561
  isCommandLineOnly: true,
37586
37562
  description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,
37587
37563
  defaultValueDescription: Diagnostics.Platform_specific
37588
- },
37589
- {
37590
- name: "allowPlugins",
37591
- type: "boolean",
37592
- affectsSemanticDiagnostics: true,
37593
- affectsEmit: true,
37594
- affectsBuildInfo: true,
37595
- defaultValueDescription: void 0,
37596
- isCommandLineOnly: true
37597
37564
  }
37598
37565
  ];
37599
37566
  targetOptionDeclaration = {
@@ -72185,8 +72152,9 @@ ${lanes.join("\n")}
72185
72152
  void 0,
72186
72153
  checkMode
72187
72154
  );
72155
+ const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType;
72188
72156
  return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate(
72189
- attributesType,
72157
+ checkAttributesType,
72190
72158
  paramType,
72191
72159
  relation,
72192
72160
  reportErrors2 ? node.tagName : void 0,
@@ -109531,19 +109499,6 @@ ${lanes.join("\n")}
109531
109499
  declarationTransformers: getDeclarationTransformers(customTransformers)
109532
109500
  };
109533
109501
  }
109534
- function mergeCustomTransformers(...customTransformers) {
109535
- if (!some(customTransformers))
109536
- return void 0;
109537
- const result = {};
109538
- for (const transformer of customTransformers) {
109539
- if (!transformer)
109540
- continue;
109541
- result.before = concatenate(result.before, transformer.before);
109542
- result.after = concatenate(result.after, transformer.after);
109543
- result.afterDeclarations = concatenate(result.afterDeclarations, transformer.afterDeclarations);
109544
- }
109545
- return result;
109546
- }
109547
109502
  function getScriptTransformers(compilerOptions, customTransformers, emitOnly) {
109548
109503
  if (emitOnly)
109549
109504
  return emptyArray;
@@ -116064,8 +116019,7 @@ ${lanes.join("\n")}
116064
116019
  realpath,
116065
116020
  readDirectory: (path, extensions, include, exclude, depth) => system.readDirectory(path, extensions, include, exclude, depth),
116066
116021
  createDirectory: (d) => system.createDirectory(d),
116067
- createHash: maybeBind(system, system.createHash),
116068
- require: maybeBind(system, system.require)
116022
+ createHash: maybeBind(system, system.createHash)
116069
116023
  };
116070
116024
  return compilerHost;
116071
116025
  }
@@ -117628,26 +117582,6 @@ ${lanes.join("\n")}
117628
117582
  function isEmitBlocked(emitFileName) {
117629
117583
  return hasEmitBlockingDiagnostics.has(toPath3(emitFileName));
117630
117584
  }
117631
- function getCustomTransformers() {
117632
- if (!host.require) {
117633
- return emptyArray;
117634
- }
117635
- const compilerOptions = program.getCompilerOptions();
117636
- if (!shouldAllowPlugins(compilerOptions)) {
117637
- return emptyArray;
117638
- }
117639
- const customTransformers = mapDefined(compilerOptions.plugins, (config) => {
117640
- if (config.type !== "transformer")
117641
- return void 0;
117642
- const result = host.require(program.getCurrentDirectory(), config.path);
117643
- Debug.assertIsDefined(result.module);
117644
- const factory2 = result.module;
117645
- Debug.assert(typeof factory2 === "function");
117646
- const plugin = factory2({ typescript: getTypeScriptNamespace() });
117647
- return plugin.create({ program, config });
117648
- });
117649
- return customTransformers ?? emptyArray;
117650
- }
117651
117585
  function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit) {
117652
117586
  if (!forceDtsEmit) {
117653
117587
  const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken);
@@ -117656,12 +117590,11 @@ ${lanes.join("\n")}
117656
117590
  }
117657
117591
  const emitResolver = getTypeChecker().getEmitResolver(outFile(options) ? void 0 : sourceFile, cancellationToken);
117658
117592
  mark("beforeEmit");
117659
- const mergedCustomTransformers = mergeCustomTransformers(...getCustomTransformers(), customTransformers);
117660
117593
  const emitResult = emitFiles(
117661
117594
  emitResolver,
117662
117595
  getEmitHost(writeFileCallback),
117663
117596
  sourceFile,
117664
- getTransformers(options, mergedCustomTransformers, emitOnly),
117597
+ getTransformers(options, customTransformers, emitOnly),
117665
117598
  emitOnly,
117666
117599
  /*onlyBuildInfo*/
117667
117600
  false,
@@ -119115,14 +119048,6 @@ ${lanes.join("\n")}
119115
119048
  verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen);
119116
119049
  });
119117
119050
  }
119118
- if (options.plugins && !shouldAllowPlugins(options)) {
119119
- for (const plugin of options.plugins) {
119120
- if (plugin.type === void 0)
119121
- continue;
119122
- programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present));
119123
- break;
119124
- }
119125
- }
119126
119051
  function verifyEmitFilePath(emitFileName, emitFilesSeen) {
119127
119052
  if (emitFileName) {
119128
119053
  const emitFilePath = toPath3(emitFileName);
@@ -121906,7 +121831,7 @@ ${lanes.join("\n")}
121906
121831
  let filesWithChangedSetOfUnresolvedImports;
121907
121832
  let filesWithInvalidatedResolutions;
121908
121833
  let filesWithInvalidatedNonRelativeUnresolvedImports;
121909
- const nonRelativeExternalModuleResolutions = createMultiMap();
121834
+ const nonRelativeExternalModuleResolutions = /* @__PURE__ */ new Set();
121910
121835
  const resolutionsWithFailedLookups = /* @__PURE__ */ new Set();
121911
121836
  const resolutionsWithOnlyAffectingLocations = /* @__PURE__ */ new Set();
121912
121837
  const resolvedFileToResolution = /* @__PURE__ */ new Map();
@@ -122040,8 +121965,7 @@ ${lanes.join("\n")}
122040
121965
  moduleResolutionCache.clearAllExceptPackageJsonInfoCache();
122041
121966
  typeReferenceDirectiveResolutionCache.clearAllExceptPackageJsonInfoCache();
122042
121967
  libraryResolutionCache.clearAllExceptPackageJsonInfoCache();
122043
- nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);
122044
- nonRelativeExternalModuleResolutions.clear();
121968
+ watchFailedLookupLocationOfNonRelativeModuleResolutions();
122045
121969
  }
122046
121970
  function cleanupLibResolutionWatching(newProgram) {
122047
121971
  resolvedLibraries.forEach((resolution, libFileName) => {
@@ -122059,8 +121983,7 @@ ${lanes.join("\n")}
122059
121983
  function finishCachingPerDirectoryResolution(newProgram, oldProgram) {
122060
121984
  filesWithInvalidatedNonRelativeUnresolvedImports = void 0;
122061
121985
  allModuleAndTypeResolutionsAreInvalidated = false;
122062
- nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);
122063
- nonRelativeExternalModuleResolutions.clear();
121986
+ watchFailedLookupLocationOfNonRelativeModuleResolutions();
122064
121987
  if (newProgram !== oldProgram) {
122065
121988
  cleanupLibResolutionWatching(newProgram);
122066
121989
  newProgram == null ? void 0 : newProgram.getSourceFiles().forEach((newFile) => {
@@ -122341,7 +122264,7 @@ ${lanes.join("\n")}
122341
122264
  if (!deferWatchingNonRelativeResolution || isExternalModuleNameRelative(name)) {
122342
122265
  watchFailedLookupLocationOfResolution(resolution);
122343
122266
  } else {
122344
- nonRelativeExternalModuleResolutions.add(name, resolution);
122267
+ nonRelativeExternalModuleResolutions.add(resolution);
122345
122268
  }
122346
122269
  const resolved = getResolutionWithResolvedFileName(resolution);
122347
122270
  if (resolved && resolved.resolvedFileName) {
@@ -122471,17 +122394,9 @@ ${lanes.join("\n")}
122471
122394
  paths.add(affectingLocation);
122472
122395
  }
122473
122396
  }
122474
- function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) {
122475
- const program = resolutionHost.getCurrentProgram();
122476
- if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) {
122477
- resolutions.forEach(watchFailedLookupLocationOfResolution);
122478
- } else {
122479
- resolutions.forEach((resolution) => watchAffectingLocationsOfResolution(
122480
- resolution,
122481
- /*addToResolutionsWithOnlyAffectingLocations*/
122482
- true
122483
- ));
122484
- }
122397
+ function watchFailedLookupLocationOfNonRelativeModuleResolutions() {
122398
+ nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfResolution);
122399
+ nonRelativeExternalModuleResolutions.clear();
122485
122400
  }
122486
122401
  function setDirectoryWatcher(dir, dirPath, nonRecursive) {
122487
122402
  const dirWatcher = directoryWatchesOfFailedLookups.get(dirPath);
@@ -126211,7 +126126,6 @@ ${lanes.join("\n")}
126211
126126
  "src/compiler/_namespaces/ts.ts"() {
126212
126127
  "use strict";
126213
126128
  init_corePublic();
126214
- init_pluginUtilities();
126215
126129
  init_core();
126216
126130
  init_debug();
126217
126131
  init_semver();
@@ -135833,8 +135747,12 @@ ${lanes.join("\n")}
135833
135747
  Debug.assert(actionName2 === refactorNameForMoveToFile, "Wrong refactor invoked");
135834
135748
  const statements = Debug.checkDefined(getStatementsToMove(context));
135835
135749
  Debug.assert(interactiveRefactorArguments, "No interactive refactor arguments available");
135836
- const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences));
135837
- return { edits, renameFilename: void 0, renameLocation: void 0 };
135750
+ const targetFile = interactiveRefactorArguments.targetFile;
135751
+ if (hasJSFileExtension(targetFile) || hasTSFileExtension(targetFile)) {
135752
+ const edits = ts_textChanges_exports.ChangeTracker.with(context, (t) => doChange4(context, context.file, interactiveRefactorArguments.targetFile, context.program, statements, t, context.host, context.preferences));
135753
+ return { edits, renameFilename: void 0, renameLocation: void 0 };
135754
+ }
135755
+ return { edits: [], renameFilename: void 0, renameLocation: void 0, notApplicableReason: getLocaleSpecificMessage(Diagnostics.Cannot_move_to_file_selected_file_is_invalid) };
135838
135756
  }
135839
135757
  });
135840
135758
  }
@@ -152316,7 +152234,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
152316
152234
  false
152317
152235
  );
152318
152236
  const effectiveModifierFlags = declaration ? getEffectiveModifierFlags(declaration) : 0 /* None */;
152319
- let modifierFlags = effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */;
152237
+ let modifierFlags = effectiveModifierFlags & 32 /* Static */;
152238
+ modifierFlags |= effectiveModifierFlags & 4 /* Public */ ? 4 /* Public */ : effectiveModifierFlags & 16 /* Protected */ ? 16 /* Protected */ : 0 /* None */;
152320
152239
  if (declaration && isAutoAccessorPropertyDeclaration(declaration)) {
152321
152240
  modifierFlags |= 128 /* Accessor */;
152322
152241
  }
@@ -155073,6 +154992,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155073
154992
  }
155074
154993
  function createCompletionEntry(symbol, sortText, replacementToken, contextToken, location, position, sourceFile, host, program, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importStatementCompletion, useSemicolons, options, preferences, completionKind, formatContext, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol) {
155075
154994
  let insertText;
154995
+ let filterText;
155076
154996
  let replacementSpan = getReplacementSpanForContextToken(replacementToken);
155077
154997
  let data;
155078
154998
  let isSnippet;
@@ -155131,11 +155051,15 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155131
155051
  }
155132
155052
  if (preferences.includeCompletionsWithClassMemberSnippets && preferences.includeCompletionsWithInsertText && completionKind === 3 /* MemberLike */ && isClassLikeMemberCompletion(symbol, location, sourceFile)) {
155133
155053
  let importAdder;
155134
- ({ insertText, isSnippet, importAdder, replacementSpan } = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext));
155135
- sortText = SortText.ClassMemberSnippets;
155136
- if (importAdder == null ? void 0 : importAdder.hasFixes()) {
155137
- hasAction = true;
155138
- source = "ClassMemberSnippet/" /* ClassMemberSnippet */;
155054
+ const memberCompletionEntry = getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext);
155055
+ if (memberCompletionEntry) {
155056
+ ({ insertText, filterText, isSnippet, importAdder } = memberCompletionEntry);
155057
+ if (importAdder == null ? void 0 : importAdder.hasFixes()) {
155058
+ hasAction = true;
155059
+ source = "ClassMemberSnippet/" /* ClassMemberSnippet */;
155060
+ }
155061
+ } else {
155062
+ return void 0;
155139
155063
  }
155140
155064
  }
155141
155065
  if (origin && originIsObjectLiteralMethod(origin)) {
@@ -155179,6 +155103,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155179
155103
  hasAction: hasAction ? true : void 0,
155180
155104
  isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || void 0,
155181
155105
  insertText,
155106
+ filterText,
155182
155107
  replacementSpan,
155183
155108
  sourceDisplay,
155184
155109
  labelDetails,
@@ -155199,11 +155124,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155199
155124
  function getEntryForMemberCompletion(host, program, options, preferences, name, symbol, location, position, contextToken, formatContext) {
155200
155125
  const classLikeDeclaration = findAncestor(location, isClassLike);
155201
155126
  if (!classLikeDeclaration) {
155202
- return { insertText: name };
155127
+ return void 0;
155203
155128
  }
155204
155129
  let isSnippet;
155205
- let replacementSpan;
155206
155130
  let insertText = name;
155131
+ const filterText = name;
155207
155132
  const checker = program.getTypeChecker();
155208
155133
  const sourceFile = location.getSourceFile();
155209
155134
  const printer = createSnippetPrinter({
@@ -155232,9 +155157,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155232
155157
  );
155233
155158
  }
155234
155159
  let modifiers = 0 /* None */;
155235
- const { modifiers: presentModifiers, span: modifiersSpan } = getPresentModifiers(contextToken, sourceFile, position);
155236
- const isAbstract = !!(presentModifiers & 256 /* Abstract */);
155237
- const completionNodes = [];
155160
+ const { modifiers: presentModifiers, range: eraseRange, decorators: presentDecorators } = getPresentModifiers(contextToken, sourceFile, position);
155161
+ const isAbstract = presentModifiers & 256 /* Abstract */ && classLikeDeclaration.modifierFlagsCache & 256 /* Abstract */;
155162
+ let completionNodes = [];
155238
155163
  ts_codefix_exports.addNewNodeForMemberSymbol(
155239
155164
  symbol,
155240
155165
  classLikeDeclaration,
@@ -155258,18 +155183,42 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155258
155183
  requiredModifiers |= 16384 /* Override */;
155259
155184
  }
155260
155185
  if (!completionNodes.length) {
155261
- modifiers = node.modifierFlagsCache | requiredModifiers | presentModifiers;
155186
+ modifiers = node.modifierFlagsCache | requiredModifiers;
155262
155187
  }
155263
155188
  node = factory.updateModifiers(node, modifiers);
155264
155189
  completionNodes.push(node);
155265
155190
  },
155266
155191
  body,
155267
155192
  ts_codefix_exports.PreserveOptionalFlags.Property,
155268
- isAbstract
155193
+ !!isAbstract
155269
155194
  );
155270
155195
  if (completionNodes.length) {
155196
+ const isMethod = symbol.flags & 8192 /* Method */;
155197
+ let allowedModifiers = modifiers | 16384 /* Override */ | 4 /* Public */;
155198
+ if (!isMethod) {
155199
+ allowedModifiers |= 2 /* Ambient */ | 64 /* Readonly */;
155200
+ } else {
155201
+ allowedModifiers |= 512 /* Async */;
155202
+ }
155203
+ const allowedAndPresent = presentModifiers & allowedModifiers;
155204
+ if (presentModifiers & ~allowedModifiers) {
155205
+ return void 0;
155206
+ }
155207
+ if (modifiers & 16 /* Protected */ && allowedAndPresent & 4 /* Public */) {
155208
+ modifiers &= ~16 /* Protected */;
155209
+ }
155210
+ if (allowedAndPresent !== 0 /* None */ && !(allowedAndPresent & 4 /* Public */)) {
155211
+ modifiers &= ~4 /* Public */;
155212
+ }
155213
+ modifiers |= allowedAndPresent;
155214
+ completionNodes = completionNodes.map((node) => factory.updateModifiers(node, modifiers));
155215
+ if (presentDecorators == null ? void 0 : presentDecorators.length) {
155216
+ const lastNode = completionNodes[completionNodes.length - 1];
155217
+ if (canHaveDecorators(lastNode)) {
155218
+ completionNodes[completionNodes.length - 1] = factory.updateModifierLike(lastNode, presentDecorators.concat(getModifiers(lastNode) || []));
155219
+ }
155220
+ }
155271
155221
  const format = 1 /* MultiLine */ | 131072 /* NoTrailingNewLine */;
155272
- replacementSpan = modifiersSpan;
155273
155222
  if (formatContext) {
155274
155223
  insertText = printer.printAndFormatSnippetList(
155275
155224
  format,
@@ -155285,24 +155234,29 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155285
155234
  );
155286
155235
  }
155287
155236
  }
155288
- return { insertText, isSnippet, importAdder, replacementSpan };
155237
+ return { insertText, filterText, isSnippet, importAdder, eraseRange };
155289
155238
  }
155290
155239
  function getPresentModifiers(contextToken, sourceFile, position) {
155291
155240
  if (!contextToken || getLineAndCharacterOfPosition(sourceFile, position).line > getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line) {
155292
155241
  return { modifiers: 0 /* None */ };
155293
155242
  }
155294
155243
  let modifiers = 0 /* None */;
155295
- let span;
155244
+ let decorators;
155296
155245
  let contextMod;
155297
- if (contextMod = isModifierLike2(contextToken)) {
155298
- modifiers |= modifierToFlag(contextMod);
155299
- span = createTextSpanFromNode(contextToken);
155300
- }
155301
- if (isPropertyDeclaration(contextToken.parent)) {
155246
+ const range = { pos: position, end: position };
155247
+ if (isPropertyDeclaration(contextToken.parent) && contextToken.parent.modifiers) {
155302
155248
  modifiers |= modifiersToFlags(contextToken.parent.modifiers) & 126975 /* Modifier */;
155303
- span = createTextSpanFromNode(contextToken.parent);
155249
+ decorators = contextToken.parent.modifiers.filter(isDecorator) || [];
155250
+ range.pos = Math.min(range.pos, contextToken.parent.modifiers.pos);
155251
+ }
155252
+ if (contextMod = isModifierLike2(contextToken)) {
155253
+ const contextModifierFlag = modifierToFlag(contextMod);
155254
+ if (!(modifiers & contextModifierFlag)) {
155255
+ modifiers |= contextModifierFlag;
155256
+ range.pos = Math.min(range.pos, contextToken.pos);
155257
+ }
155304
155258
  }
155305
- return { modifiers, span };
155259
+ return { modifiers, decorators, range: range.pos !== position ? range : void 0 };
155306
155260
  }
155307
155261
  function isModifierLike2(node) {
155308
155262
  if (isModifier(node)) {
@@ -155925,7 +155879,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155925
155879
  }
155926
155880
  }
155927
155881
  if (source === "ClassMemberSnippet/" /* ClassMemberSnippet */) {
155928
- const { importAdder } = getEntryForMemberCompletion(
155882
+ const { importAdder, eraseRange } = getEntryForMemberCompletion(
155929
155883
  host,
155930
155884
  program,
155931
155885
  compilerOptions,
@@ -155937,10 +155891,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155937
155891
  contextToken,
155938
155892
  formatContext
155939
155893
  );
155940
- if (importAdder) {
155894
+ if (importAdder || eraseRange) {
155941
155895
  const changes = ts_textChanges_exports.ChangeTracker.with(
155942
155896
  { host, formatContext, preferences },
155943
- importAdder.writeFixes
155897
+ (tracker) => {
155898
+ if (importAdder) {
155899
+ importAdder.writeFixes(tracker);
155900
+ }
155901
+ if (eraseRange) {
155902
+ tracker.deleteRange(sourceFile, eraseRange);
155903
+ }
155904
+ }
155944
155905
  );
155945
155906
  return {
155946
155907
  sourceDisplay: void 0,
@@ -170566,7 +170527,6 @@ ${options.prefix}` : "\n" : options.prefix
170566
170527
  getTypeNodeIfAccessible: () => getTypeNodeIfAccessible,
170567
170528
  getTypeParameterFromJsDoc: () => getTypeParameterFromJsDoc,
170568
170529
  getTypeParameterOwner: () => getTypeParameterOwner,
170569
- getTypeScriptNamespace: () => getTypeScriptNamespace,
170570
170530
  getTypesPackageName: () => getTypesPackageName,
170571
170531
  getUILocale: () => getUILocale,
170572
170532
  getUniqueName: () => getUniqueName,
@@ -171350,7 +171310,6 @@ ${options.prefix}` : "\n" : options.prefix
171350
171310
  memoizeCached: () => memoizeCached,
171351
171311
  memoizeOne: () => memoizeOne,
171352
171312
  memoizeWeak: () => memoizeWeak,
171353
- mergeCustomTransformers: () => mergeCustomTransformers,
171354
171313
  metadataHelper: () => metadataHelper,
171355
171314
  min: () => min,
171356
171315
  minAndMax: () => minAndMax,
@@ -171582,11 +171541,9 @@ ${options.prefix}` : "\n" : options.prefix
171582
171541
  setTextRangePosWidth: () => setTextRangePosWidth,
171583
171542
  setTokenSourceMapRange: () => setTokenSourceMapRange,
171584
171543
  setTypeNode: () => setTypeNode,
171585
- setTypeScriptNamespace: () => setTypeScriptNamespace,
171586
171544
  setUILocale: () => setUILocale,
171587
171545
  setValueDeclaration: () => setValueDeclaration,
171588
171546
  shouldAllowImportingTsExtension: () => shouldAllowImportingTsExtension,
171589
- shouldAllowPlugins: () => shouldAllowPlugins,
171590
171547
  shouldPreserveConstEnums: () => shouldPreserveConstEnums,
171591
171548
  shouldResolveJsRequire: () => shouldResolveJsRequire,
171592
171549
  shouldUseUriStyleNodeCoreModules: () => shouldUseUriStyleNodeCoreModules,
@@ -171808,8 +171765,6 @@ ${options.prefix}` : "\n" : options.prefix
171808
171765
  init_ts3();
171809
171766
  init_ts4();
171810
171767
  init_ts5();
171811
- init_ts6();
171812
- setTypeScriptNamespace("typescript", ts_exports2);
171813
171768
  }
171814
171769
  });
171815
171770
 
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.2";
57
- var version = `${versionMajorMinor}.0-insiders.20230516`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230518`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -6722,7 +6722,6 @@ var Diagnostics = {
6722
6722
  Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
6723
6723
  true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
6724
6724
  List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
6725
- Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present: diag(6932, 1 /* Error */, "Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present_6932", "Option '--allowPlugins' must be specified when compiler plugins are present."),
6726
6725
  Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
6727
6726
  Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
6728
6727
  Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
@@ -7079,6 +7078,7 @@ var Diagnostics = {
7079
7078
  Convert_typedef_to_TypeScript_type: diag(95176, 3 /* Message */, "Convert_typedef_to_TypeScript_type_95176", "Convert typedef to TypeScript type."),
7080
7079
  Convert_all_typedef_to_TypeScript_types: diag(95177, 3 /* Message */, "Convert_all_typedef_to_TypeScript_types_95177", "Convert all typedef to TypeScript types."),
7081
7080
  Move_to_file: diag(95178, 3 /* Message */, "Move_to_file_95178", "Move to file"),
7081
+ Cannot_move_to_file_selected_file_is_invalid: diag(95179, 3 /* Message */, "Cannot_move_to_file_selected_file_is_invalid_95179", "Cannot move to file, selected file is invalid"),
7082
7082
  No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
7083
7083
  Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
7084
7084
  JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
@@ -12892,7 +12892,8 @@ function createNodeFactory(flags, baseFactory2) {
12892
12892
  ensureUseStrict,
12893
12893
  liftToBlock,
12894
12894
  mergeLexicalEnvironment,
12895
- updateModifiers
12895
+ updateModifiers,
12896
+ updateModifierLike
12896
12897
  };
12897
12898
  forEach(nodeFactoryPatchers, (fn) => fn(factory2));
12898
12899
  return factory2;
@@ -16374,6 +16375,9 @@ function createNodeFactory(flags, baseFactory2) {
16374
16375
  }
16375
16376
  return isTypeParameterDeclaration(node) ? updateTypeParameterDeclaration(node, modifierArray, node.name, node.constraint, node.default) : isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isConstructorTypeNode(node) ? updateConstructorTypeNode1(node, modifierArray, node.typeParameters, node.parameters, node.type) : isPropertySignature(node) ? updatePropertySignature(node, modifierArray, node.name, node.questionToken, node.type) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodSignature(node) ? updateMethodSignature(node, modifierArray, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isConstructorDeclaration(node) ? updateConstructorDeclaration(node, modifierArray, node.parameters, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isIndexSignatureDeclaration(node) ? updateIndexSignature(node, modifierArray, node.parameters, node.type) : isFunctionExpression(node) ? updateFunctionExpression(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isArrowFunction(node) ? updateArrowFunction(node, modifierArray, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isVariableStatement(node) ? updateVariableStatement(node, modifierArray, node.declarationList) : isFunctionDeclaration(node) ? updateFunctionDeclaration(node, modifierArray, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, modifierArray, node.name, node.typeParameters, node.type) : isEnumDeclaration(node) ? updateEnumDeclaration(node, modifierArray, node.name, node.members) : isModuleDeclaration(node) ? updateModuleDeclaration(node, modifierArray, node.name, node.body) : isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, modifierArray, node.isTypeOnly, node.name, node.moduleReference) : isImportDeclaration(node) ? updateImportDeclaration(node, modifierArray, node.importClause, node.moduleSpecifier, node.assertClause) : isExportAssignment(node) ? updateExportAssignment(node, modifierArray, node.expression) : isExportDeclaration(node) ? updateExportDeclaration(node, modifierArray, node.isTypeOnly, node.exportClause, node.moduleSpecifier, node.assertClause) : Debug.assertNever(node);
16376
16377
  }
16378
+ function updateModifierLike(node, modifierArray) {
16379
+ return isParameter(node) ? updateParameterDeclaration(node, modifierArray, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) : isPropertyDeclaration(node) ? updatePropertyDeclaration(node, modifierArray, node.name, node.questionToken ?? node.exclamationToken, node.type, node.initializer) : isMethodDeclaration(node) ? updateMethodDeclaration(node, modifierArray, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) : isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.type, node.body) : isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, modifierArray, node.name, node.parameters, node.body) : isClassExpression(node) ? updateClassExpression(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : isClassDeclaration(node) ? updateClassDeclaration(node, modifierArray, node.name, node.typeParameters, node.heritageClauses, node.members) : Debug.assertNever(node);
16380
+ }
16377
16381
  function asNodeArray(array) {
16378
16382
  return array ? createNodeArray(array) : void 0;
16379
16383
  }
@@ -25671,15 +25675,6 @@ var commonOptionsWithBuild = [
25671
25675
  isCommandLineOnly: true,
25672
25676
  description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,
25673
25677
  defaultValueDescription: Diagnostics.Platform_specific
25674
- },
25675
- {
25676
- name: "allowPlugins",
25677
- type: "boolean",
25678
- affectsSemanticDiagnostics: true,
25679
- affectsEmit: true,
25680
- affectsBuildInfo: true,
25681
- defaultValueDescription: void 0,
25682
- isCommandLineOnly: true
25683
25678
  }
25684
25679
  ];
25685
25680
  var targetOptionDeclaration = {