@typescript-deploys/pr-build 5.2.0-pr-53356-21 → 5.2.0-pr-48838-5

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.
@@ -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.20230615`;
38
+ version = `${versionMajorMinor}.0-insiders.20230617`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -2942,7 +2942,7 @@ ${lanes.join("\n")}
2942
2942
  buildRegExp = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i;
2943
2943
  buildPartRegExp = /^[a-z0-9-]+$/i;
2944
2944
  numericIdentifierRegExp = /^(0|[1-9]\d*)$/;
2945
- _Version = class {
2945
+ _Version = class _Version {
2946
2946
  constructor(major, minor = 0, patch = 0, prerelease = "", build2 = "") {
2947
2947
  if (typeof major === "string") {
2948
2948
  const result = Debug.checkDefined(tryParseComponents(major), "Invalid version");
@@ -3006,16 +3006,16 @@ ${lanes.join("\n")}
3006
3006
  return result;
3007
3007
  }
3008
3008
  };
3009
+ _Version.zero = new _Version(0, 0, 0, ["0"]);
3009
3010
  Version = _Version;
3010
- Version.zero = new _Version(0, 0, 0, ["0"]);
3011
- VersionRange = class {
3011
+ VersionRange = class _VersionRange {
3012
3012
  constructor(spec) {
3013
3013
  this._alternatives = spec ? Debug.checkDefined(parseRange(spec), "Invalid range spec.") : emptyArray;
3014
3014
  }
3015
3015
  static tryParse(text) {
3016
3016
  const sets = parseRange(text);
3017
3017
  if (sets) {
3018
- const range = new VersionRange("");
3018
+ const range = new _VersionRange("");
3019
3019
  range._alternatives = sets;
3020
3020
  return range;
3021
3021
  }
@@ -8111,6 +8111,7 @@ ${lanes.join("\n")}
8111
8111
  Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, 1 /* Error */, "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081", "Cannot find a tsconfig.json file at the current directory: {0}."),
8112
8112
  _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, 1 /* Error */, "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082", "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),
8113
8113
  Cannot_read_file_0: diag(5083, 1 /* Error */, "Cannot_read_file_0_5083", "Cannot read file '{0}'."),
8114
+ Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, 1 /* Error */, "Tuple_members_must_all_have_names_or_all_not_have_names_5084", "Tuple members must all have names or all not have names."),
8114
8115
  A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, 1 /* Error */, "A_tuple_member_cannot_be_both_optional_and_rest_5085", "A tuple member cannot be both optional and rest."),
8115
8116
  A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086", "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),
8116
8117
  A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, 1 /* Error */, "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087", "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),
@@ -50136,18 +50137,19 @@ ${lanes.join("\n")}
50136
50137
  const arity = getTypeReferenceArity(type2);
50137
50138
  const tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context);
50138
50139
  if (tupleConstituentNodes) {
50139
- const { labeledElementDeclarations } = type2.target;
50140
- for (let i = 0; i < tupleConstituentNodes.length; i++) {
50141
- const flags = type2.target.elementFlags[i];
50142
- const labeledElementDeclaration = labeledElementDeclarations == null ? void 0 : labeledElementDeclarations[i];
50143
- if (labeledElementDeclaration) {
50140
+ if (type2.target.labeledElementDeclarations) {
50141
+ for (let i = 0; i < tupleConstituentNodes.length; i++) {
50142
+ const flags = type2.target.elementFlags[i];
50144
50143
  tupleConstituentNodes[i] = factory.createNamedTupleMember(
50145
50144
  flags & 12 /* Variable */ ? factory.createToken(26 /* DotDotDotToken */) : void 0,
50146
- factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(labeledElementDeclaration))),
50145
+ factory.createIdentifier(unescapeLeadingUnderscores(getTupleElementLabel(type2.target.labeledElementDeclarations[i]))),
50147
50146
  flags & 2 /* Optional */ ? factory.createToken(58 /* QuestionToken */) : void 0,
50148
50147
  flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]
50149
50148
  );
50150
- } else {
50149
+ }
50150
+ } else {
50151
+ for (let i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) {
50152
+ const flags = type2.target.elementFlags[i];
50151
50153
  tupleConstituentNodes[i] = flags & 12 /* Variable */ ? factory.createRestTypeNode(flags & 4 /* Rest */ ? factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) : flags & 2 /* Optional */ ? factory.createOptionalTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i];
50152
50154
  }
50153
50155
  }
@@ -55254,18 +55256,17 @@ ${lanes.join("\n")}
55254
55256
  function getExpandedParameters(sig, skipUnionExpanding) {
55255
55257
  if (signatureHasRestParameter(sig)) {
55256
55258
  const restIndex = sig.parameters.length - 1;
55257
- const restName = sig.parameters[restIndex].escapedName;
55258
55259
  const restType = getTypeOfSymbol(sig.parameters[restIndex]);
55259
55260
  if (isTupleType(restType)) {
55260
- return [expandSignatureParametersWithTupleMembers(restType, restIndex, restName)];
55261
+ return [expandSignatureParametersWithTupleMembers(restType, restIndex)];
55261
55262
  } else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && every(restType.types, isTupleType)) {
55262
- return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex, restName));
55263
+ return map(restType.types, (t) => expandSignatureParametersWithTupleMembers(t, restIndex));
55263
55264
  }
55264
55265
  }
55265
55266
  return [sig.parameters];
55266
- function expandSignatureParametersWithTupleMembers(restType, restIndex, restName) {
55267
- const elementTypes = getTypeArguments(restType);
55268
- const associatedNames = getUniqAssociatedNamesFromTupleType(restType, restName);
55267
+ function expandSignatureParametersWithTupleMembers(restType, restIndex) {
55268
+ const elementTypes = getElementTypes(restType);
55269
+ const associatedNames = getUniqAssociatedNamesFromTupleType(restType);
55269
55270
  const restParams = map(elementTypes, (t, i) => {
55270
55271
  const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType);
55271
55272
  const flags = restType.target.elementFlags[i];
@@ -55276,10 +55277,10 @@ ${lanes.join("\n")}
55276
55277
  });
55277
55278
  return concatenate(sig.parameters.slice(0, restIndex), restParams);
55278
55279
  }
55279
- function getUniqAssociatedNamesFromTupleType(type, restName) {
55280
+ function getUniqAssociatedNamesFromTupleType(type) {
55280
55281
  const associatedNamesMap = /* @__PURE__ */ new Map();
55281
- return map(type.target.labeledElementDeclarations, (labeledElement, i) => {
55282
- const name = getTupleElementLabel(labeledElement, i, restName);
55282
+ return map(type.target.labeledElementDeclarations, (labeledElement) => {
55283
+ const name = getTupleElementLabel(labeledElement);
55283
55284
  const prevCounter = associatedNamesMap.get(name);
55284
55285
  if (prevCounter === void 0) {
55285
55286
  associatedNamesMap.set(name, 1);
@@ -56078,9 +56079,9 @@ ${lanes.join("\n")}
56078
56079
  function getConstraintOfTypeParameter(typeParameter) {
56079
56080
  return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : void 0;
56080
56081
  }
56081
- function isConstTypeVariable(type) {
56082
+ function isConstTypeVariable(type, depth = 0) {
56082
56083
  var _a;
56083
- return !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, isConstTypeVariable) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type)) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t)) >= 0));
56084
+ return depth < 5 && !!(type && (type.flags & 262144 /* TypeParameter */ && some((_a = type.symbol) == null ? void 0 : _a.declarations, (d) => hasSyntacticModifier(d, 2048 /* Const */)) || type.flags & 1048576 /* Union */ && some(type.types, (t) => isConstTypeVariable(t, depth)) || type.flags & 8388608 /* IndexedAccess */ && isConstTypeVariable(type.objectType, depth + 1) || type.flags & 16777216 /* Conditional */ && isConstTypeVariable(getConstraintOfConditionalType(type), depth + 1) || type.flags & 33554432 /* Substitution */ && isConstTypeVariable(type.baseType, depth) || isGenericTupleType(type) && findIndex(getElementTypes(type), (t, i) => !!(type.target.elementFlags[i] & 8 /* Variadic */) && isConstTypeVariable(t, depth)) >= 0));
56084
56085
  }
56085
56086
  function getConstraintOfIndexedAccess(type) {
56086
56087
  return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : void 0;
@@ -58197,10 +58198,13 @@ ${lanes.join("\n")}
58197
58198
  return readonly ? globalReadonlyArrayType : globalArrayType;
58198
58199
  }
58199
58200
  const elementFlags = map(node.elements, getTupleElementFlags);
58200
- return getTupleTargetType(elementFlags, readonly, map(node.elements, memberIfLabeledElementDeclaration));
58201
- }
58202
- function memberIfLabeledElementDeclaration(member) {
58203
- return isNamedTupleMember(member) || isParameter(member) ? member : void 0;
58201
+ const missingName = some(node.elements, (e) => e.kind !== 201 /* NamedTupleMember */);
58202
+ return getTupleTargetType(
58203
+ elementFlags,
58204
+ readonly,
58205
+ /*associatedNames*/
58206
+ missingName ? void 0 : node.elements
58207
+ );
58204
58208
  }
58205
58209
  function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) {
58206
58210
  return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 187 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) : node.kind === 188 /* TupleType */ ? some(node.elements, mayResolveTypeAlias) : hasDefaultTypeArguments || some(node.typeArguments, mayResolveTypeAlias));
@@ -58275,7 +58279,7 @@ ${lanes.join("\n")}
58275
58279
  function isReadonlyTypeOperator(node) {
58276
58280
  return isTypeOperatorNode(node) && node.operator === 148 /* ReadonlyKeyword */;
58277
58281
  }
58278
- function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations = []) {
58282
+ function createTupleType(elementTypes, elementFlags, readonly = false, namedMemberDeclarations) {
58279
58283
  const tupleTarget = getTupleTargetType(elementFlags || map(elementTypes, (_) => 1 /* Required */), readonly, namedMemberDeclarations);
58280
58284
  return tupleTarget === emptyGenericType ? emptyObjectType : elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) : tupleTarget;
58281
58285
  }
@@ -58283,8 +58287,7 @@ ${lanes.join("\n")}
58283
58287
  if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) {
58284
58288
  return readonly ? globalReadonlyArrayType : globalArrayType;
58285
58289
  }
58286
- const memberIds = mapDefined(namedMemberDeclarations, (node) => node ? getNodeId(node) : void 0);
58287
- const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (memberIds.length ? "," + memberIds.join(",") : "");
58290
+ const key = map(elementFlags, (f) => f & 1 /* Required */ ? "#" : f & 2 /* Optional */ ? "?" : f & 4 /* Rest */ ? "." : "*").join() + (readonly ? "R" : "") + (namedMemberDeclarations && namedMemberDeclarations.length ? "," + map(namedMemberDeclarations, getNodeId).join(",") : "");
58288
58291
  let type = tupleTypes.get(key);
58289
58292
  if (!type) {
58290
58293
  tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations));
@@ -58366,7 +58369,7 @@ ${lanes.join("\n")}
58366
58369
  }
58367
58370
  const expandedTypes = [];
58368
58371
  const expandedFlags = [];
58369
- const expandedDeclarations = [];
58372
+ let expandedDeclarations = [];
58370
58373
  let lastRequiredIndex = -1;
58371
58374
  let firstRestIndex = -1;
58372
58375
  let lastOptionalOrRestIndex = -1;
@@ -58404,7 +58407,7 @@ ${lanes.join("\n")}
58404
58407
  ));
58405
58408
  expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);
58406
58409
  expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);
58407
- expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);
58410
+ expandedDeclarations == null ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);
58408
58411
  }
58409
58412
  const tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations);
58410
58413
  return tupleTarget === emptyGenericType ? emptyObjectType : expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) : tupleTarget;
@@ -58424,7 +58427,11 @@ ${lanes.join("\n")}
58424
58427
  true
58425
58428
  ) : type);
58426
58429
  expandedFlags.push(flags);
58427
- expandedDeclarations.push(declaration);
58430
+ if (expandedDeclarations && declaration) {
58431
+ expandedDeclarations.push(declaration);
58432
+ } else {
58433
+ expandedDeclarations = void 0;
58434
+ }
58428
58435
  }
58429
58436
  }
58430
58437
  function sliceTupleType(type, index, endSkipCount = 0) {
@@ -69625,7 +69632,7 @@ ${lanes.join("\n")}
69625
69632
  function instantiateContextualType(contextualType, node, contextFlags) {
69626
69633
  if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
69627
69634
  const inferenceContext = getInferenceContext(node);
69628
- if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
69635
+ if (inferenceContext && (contextFlags & 1 /* Signature */ || maybeTypeOfKind(contextualType, 25165824 /* Simplifiable */)) && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
69629
69636
  return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
69630
69637
  }
69631
69638
  if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
@@ -74156,10 +74163,7 @@ ${lanes.join("\n")}
74156
74163
  }
74157
74164
  return type;
74158
74165
  }
74159
- function getTupleElementLabel(d, index, restParameterName = "arg") {
74160
- if (!d) {
74161
- return `${restParameterName}_${index}`;
74162
- }
74166
+ function getTupleElementLabel(d) {
74163
74167
  Debug.assert(isIdentifier(d.name));
74164
74168
  return d.name.escapedText;
74165
74169
  }
@@ -74173,7 +74177,7 @@ ${lanes.join("\n")}
74173
74177
  if (isTupleType(restType)) {
74174
74178
  const associatedNames = restType.target.labeledElementDeclarations;
74175
74179
  const index = pos - paramCount;
74176
- return getTupleElementLabel(associatedNames == null ? void 0 : associatedNames[index], index, restParameter.escapedName);
74180
+ return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + "_" + index;
74177
74181
  }
74178
74182
  return restParameter.escapedName;
74179
74183
  }
@@ -77528,7 +77532,12 @@ ${lanes.join("\n")}
77528
77532
  const elementTypes = node.elements;
77529
77533
  let seenOptionalElement = false;
77530
77534
  let seenRestElement = false;
77535
+ const hasNamedElement = some(elementTypes, isNamedTupleMember);
77531
77536
  for (const e of elementTypes) {
77537
+ if (e.kind !== 201 /* NamedTupleMember */ && hasNamedElement) {
77538
+ grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);
77539
+ break;
77540
+ }
77532
77541
  const flags = getTupleElementFlags(e);
77533
77542
  if (flags & 8 /* Variadic */) {
77534
77543
  const type = getTypeFromTypeNode(e.type);
@@ -85911,13 +85920,13 @@ ${lanes.join("\n")}
85911
85920
  JsxNames2.IntrinsicClassAttributes = "IntrinsicClassAttributes";
85912
85921
  JsxNames2.LibraryManagedAttributes = "LibraryManagedAttributes";
85913
85922
  })(JsxNames || (JsxNames = {}));
85914
- SymbolTrackerImpl = class {
85923
+ SymbolTrackerImpl = class _SymbolTrackerImpl {
85915
85924
  constructor(context, tracker, moduleResolverHost) {
85916
85925
  this.moduleResolverHost = void 0;
85917
85926
  this.inner = void 0;
85918
85927
  this.disableTrackSymbol = false;
85919
85928
  var _a;
85920
- while (tracker instanceof SymbolTrackerImpl) {
85929
+ while (tracker instanceof _SymbolTrackerImpl) {
85921
85930
  tracker = tracker.inner;
85922
85931
  }
85923
85932
  this.inner = tracker;
@@ -166112,7 +166121,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166112
166121
  leadingTriviaOption: 0 /* Exclude */,
166113
166122
  trailingTriviaOption: 0 /* Exclude */
166114
166123
  };
166115
- ChangeTracker = class {
166124
+ ChangeTracker = class _ChangeTracker {
166116
166125
  /** Public for tests only. Other callers should use `ChangeTracker.with`. */
166117
166126
  constructor(newLineCharacter, formatContext) {
166118
166127
  this.newLineCharacter = newLineCharacter;
@@ -166123,10 +166132,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
166123
166132
  this.deletedNodes = [];
166124
166133
  }
166125
166134
  static fromContext(context) {
166126
- return new ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext);
166135
+ return new _ChangeTracker(getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext);
166127
166136
  }
166128
166137
  static with(context, cb) {
166129
- const tracker = ChangeTracker.fromContext(context);
166138
+ const tracker = _ChangeTracker.fromContext(context);
166130
166139
  cb(tracker);
166131
166140
  return tracker.getChanges();
166132
166141
  }
@@ -170385,7 +170394,7 @@ ${options.prefix}` : "\n" : options.prefix
170385
170394
  "use strict";
170386
170395
  init_ts7();
170387
170396
  init_ts_server3();
170388
- ThrottledOperations = class {
170397
+ ThrottledOperations = class _ThrottledOperations {
170389
170398
  constructor(host, logger) {
170390
170399
  this.host = host;
170391
170400
  this.pendingTimeouts = /* @__PURE__ */ new Map();
@@ -170402,7 +170411,7 @@ ${options.prefix}` : "\n" : options.prefix
170402
170411
  if (pendingTimeout) {
170403
170412
  this.host.clearTimeout(pendingTimeout);
170404
170413
  }
170405
- this.pendingTimeouts.set(operationId, this.host.setTimeout(ThrottledOperations.run, delay, operationId, this, cb));
170414
+ this.pendingTimeouts.set(operationId, this.host.setTimeout(_ThrottledOperations.run, delay, operationId, this, cb));
170406
170415
  if (this.logger) {
170407
170416
  this.logger.info(`Scheduled: ${operationId}${pendingTimeout ? ", Cancelled earlier one" : ""}`);
170408
170417
  }
@@ -170425,7 +170434,7 @@ ${options.prefix}` : "\n" : options.prefix
170425
170434
  (_b = perfLogger) == null ? void 0 : _b.logStopScheduledOperation();
170426
170435
  }
170427
170436
  };
170428
- GcTimer = class {
170437
+ GcTimer = class _GcTimer {
170429
170438
  constructor(host, delay, logger) {
170430
170439
  this.host = host;
170431
170440
  this.delay = delay;
@@ -170435,7 +170444,7 @@ ${options.prefix}` : "\n" : options.prefix
170435
170444
  if (!this.host.gc || this.timerId !== void 0) {
170436
170445
  return;
170437
170446
  }
170438
- this.timerId = this.host.setTimeout(GcTimer.run, this.delay, this);
170447
+ this.timerId = this.host.setTimeout(_GcTimer.run, this.delay, this);
170439
170448
  }
170440
170449
  static run(self) {
170441
170450
  var _a, _b;
@@ -171431,7 +171440,7 @@ ${options.prefix}` : "\n" : options.prefix
171431
171440
  ProjectKind2[ProjectKind2["Auxiliary"] = 4] = "Auxiliary";
171432
171441
  return ProjectKind2;
171433
171442
  })(ProjectKind || {});
171434
- Project3 = class {
171443
+ Project3 = class _Project {
171435
171444
  /** @internal */
171436
171445
  constructor(projectName, projectKind, projectService, documentRegistry, hasExplicitListOfFiles, lastFileExceededProgramSize, compilerOptions, compileOnSaveEnabled, watchOptions, directoryStructureHost, currentDirectory) {
171437
171446
  this.projectKind = projectKind;
@@ -171548,7 +171557,7 @@ ${options.prefix}` : "\n" : options.prefix
171548
171557
  return hasOneOrMoreJsAndNoTsFiles(this);
171549
171558
  }
171550
171559
  static resolveModule(moduleName, initialDir, host, log) {
171551
- return Project3.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule;
171560
+ return _Project.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule;
171552
171561
  }
171553
171562
  /** @internal */
171554
171563
  static importServicePluginSync(pluginConfigEntry, searchPaths, host, log) {
@@ -173131,7 +173140,7 @@ ${options.prefix}` : "\n" : options.prefix
173131
173140
  return;
173132
173141
  }
173133
173142
  };
173134
- _AutoImportProviderProject = class extends Project3 {
173143
+ _AutoImportProviderProject = class _AutoImportProviderProject extends Project3 {
173135
173144
  /** @internal */
173136
173145
  constructor(hostProject, initialRootNames, documentRegistry, compilerOptions) {
173137
173146
  super(
@@ -173355,11 +173364,10 @@ ${options.prefix}` : "\n" : options.prefix
173355
173364
  return (_a = this.hostProject.getCurrentProgram()) == null ? void 0 : _a.getModuleResolutionCache();
173356
173365
  }
173357
173366
  };
173358
- AutoImportProviderProject = _AutoImportProviderProject;
173359
173367
  /** @internal */
173360
- AutoImportProviderProject.maxDependencies = 10;
173368
+ _AutoImportProviderProject.maxDependencies = 10;
173361
173369
  /** @internal */
173362
- AutoImportProviderProject.compilerOptionsOverrides = {
173370
+ _AutoImportProviderProject.compilerOptionsOverrides = {
173363
173371
  diagnostics: false,
173364
173372
  skipLibCheck: true,
173365
173373
  sourceMap: false,
@@ -173367,6 +173375,7 @@ ${options.prefix}` : "\n" : options.prefix
173367
173375
  lib: emptyArray,
173368
173376
  noLib: true
173369
173377
  };
173378
+ AutoImportProviderProject = _AutoImportProviderProject;
173370
173379
  ConfiguredProject2 = class extends Project3 {
173371
173380
  /** @internal */
173372
173381
  constructor(configFileName, canonicalConfigFilePath, projectService, documentRegistry, cachedDirectoryStructureHost) {
@@ -173954,7 +173963,7 @@ ${options.prefix}` : "\n" : options.prefix
173954
173963
  ProjectReferenceProjectLoadKind2[ProjectReferenceProjectLoadKind2["FindCreateLoad"] = 2] = "FindCreateLoad";
173955
173964
  return ProjectReferenceProjectLoadKind2;
173956
173965
  })(ProjectReferenceProjectLoadKind || {});
173957
- _ProjectService = class {
173966
+ _ProjectService = class _ProjectService {
173958
173967
  constructor(opts) {
173959
173968
  /**
173960
173969
  * Container of all known scripts
@@ -176937,9 +176946,9 @@ Dynamic files must always be opened with service's current directory or service
176937
176946
  return this.incompleteCompletionsCache || (this.incompleteCompletionsCache = createIncompleteCompletionsCache());
176938
176947
  }
176939
176948
  };
176940
- ProjectService3 = _ProjectService;
176941
176949
  /** Makes a filename safe to insert in a RegExp */
176942
- ProjectService3.filenameEscapeRegexp = /[-\/\\^$*+?.()|[\]{}]/g;
176950
+ _ProjectService.filenameEscapeRegexp = /[-\/\\^$*+?.()|[\]{}]/g;
176951
+ ProjectService3 = _ProjectService;
176943
176952
  }
176944
176953
  });
176945
176954
 
@@ -177675,7 +177684,7 @@ ${json}${newLine}`;
177675
177684
  "documentHighlights" /* DocumentHighlights */,
177676
177685
  "documentHighlights-full" /* DocumentHighlightsFull */
177677
177686
  ];
177678
- Session3 = class {
177687
+ Session3 = class _Session {
177679
177688
  constructor(opts) {
177680
177689
  this.changeSeq = 0;
177681
177690
  this.handlers = new Map(Object.entries({
@@ -178778,7 +178787,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
178778
178787
  const { file, project } = this.getFileAndProject(args);
178779
178788
  const position = this.getPositionInFile(args, file);
178780
178789
  const definitions = this.mapDefinitionInfoLocations(project.getLanguageService().getDefinitionAtPosition(file, position) || emptyArray2, project);
178781
- return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(Session3.mapToOriginalLocation);
178790
+ return simplifiedResult ? this.mapDefinitionInfo(definitions, project) : definitions.map(_Session.mapToOriginalLocation);
178782
178791
  }
178783
178792
  mapDefinitionInfoLocations(definitions, project) {
178784
178793
  return definitions.map((info) => {
@@ -178815,7 +178824,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
178815
178824
  };
178816
178825
  }
178817
178826
  return {
178818
- definitions: definitions.map(Session3.mapToOriginalLocation),
178827
+ definitions: definitions.map(_Session.mapToOriginalLocation),
178819
178828
  textSpan
178820
178829
  };
178821
178830
  }
@@ -179072,7 +179081,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
179072
179081
  const { file, project } = this.getFileAndProject(args);
179073
179082
  const position = this.getPositionInFile(args, file);
179074
179083
  const implementations = this.mapImplementationLocations(project.getLanguageService().getImplementationAtPosition(file, position) || emptyArray2, project);
179075
- return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(Session3.mapToOriginalLocation);
179084
+ return simplifiedResult ? implementations.map(({ fileName, textSpan, contextSpan }) => this.toFileSpanWithContext(fileName, textSpan, contextSpan, project)) : implementations.map(_Session.mapToOriginalLocation);
179076
179085
  }
179077
179086
  getSyntacticDiagnosticsSync(args) {
179078
179087
  const { configFile } = this.getConfigFileAndProject(args);
@@ -180629,7 +180638,7 @@ ${e.message}`;
180629
180638
  );
180630
180639
  }
180631
180640
  };
180632
- _ScriptVersionCache = class {
180641
+ _ScriptVersionCache = class _ScriptVersionCache {
180633
180642
  constructor() {
180634
180643
  this.changes = [];
180635
180644
  this.versions = new Array(_ScriptVersionCache.maxVersions);
@@ -180721,11 +180730,11 @@ ${e.message}`;
180721
180730
  return svc;
180722
180731
  }
180723
180732
  };
180733
+ _ScriptVersionCache.changeNumberThreshold = 8;
180734
+ _ScriptVersionCache.changeLengthThreshold = 256;
180735
+ _ScriptVersionCache.maxVersions = 8;
180724
180736
  ScriptVersionCache = _ScriptVersionCache;
180725
- ScriptVersionCache.changeNumberThreshold = 8;
180726
- ScriptVersionCache.changeLengthThreshold = 256;
180727
- ScriptVersionCache.maxVersions = 8;
180728
- LineIndexSnapshot = class {
180737
+ LineIndexSnapshot = class _LineIndexSnapshot {
180729
180738
  constructor(version2, cache, index, changesSincePreviousVersion = emptyArray2) {
180730
180739
  this.version = version2;
180731
180740
  this.cache = cache;
@@ -180739,7 +180748,7 @@ ${e.message}`;
180739
180748
  return this.index.getLength();
180740
180749
  }
180741
180750
  getChangeRange(oldSnapshot) {
180742
- if (oldSnapshot instanceof LineIndexSnapshot && this.cache === oldSnapshot.cache) {
180751
+ if (oldSnapshot instanceof _LineIndexSnapshot && this.cache === oldSnapshot.cache) {
180743
180752
  if (this.version <= oldSnapshot.version) {
180744
180753
  return unchangedTextChangeRange;
180745
180754
  } else {
@@ -180748,7 +180757,7 @@ ${e.message}`;
180748
180757
  }
180749
180758
  }
180750
180759
  };
180751
- LineIndex = class {
180760
+ LineIndex = class _LineIndex {
180752
180761
  constructor() {
180753
180762
  // set this to true to check each edit for accuracy
180754
180763
  this.checkEdits = false;
@@ -180781,7 +180790,7 @@ ${e.message}`;
180781
180790
  for (let i = 0; i < lines.length; i++) {
180782
180791
  leaves[i] = new LineLeaf(lines[i]);
180783
180792
  }
180784
- this.root = LineIndex.buildTreeFromBottom(leaves);
180793
+ this.root = _LineIndex.buildTreeFromBottom(leaves);
180785
180794
  } else {
180786
180795
  this.root = new LineNode();
180787
180796
  }
@@ -180825,7 +180834,7 @@ ${e.message}`;
180825
180834
  if (this.root.charCount() === 0) {
180826
180835
  Debug.assert(deleteLength === 0);
180827
180836
  if (newText !== void 0) {
180828
- this.load(LineIndex.linesFromText(newText).lines);
180837
+ this.load(_LineIndex.linesFromText(newText).lines);
180829
180838
  return this;
180830
180839
  }
180831
180840
  return void 0;
@@ -180896,7 +180905,7 @@ ${e.message}`;
180896
180905
  return { lines, lineMap };
180897
180906
  }
180898
180907
  };
180899
- LineNode = class {
180908
+ LineNode = class _LineNode {
180900
180909
  constructor(children = []) {
180901
180910
  this.children = children;
180902
180911
  this.totalChars = 0;
@@ -181028,7 +181037,7 @@ ${e.message}`;
181028
181037
  childIndex++;
181029
181038
  const endLength = childIndex;
181030
181039
  if (childIndex < clen) {
181031
- splitNode = new LineNode();
181040
+ splitNode = new _LineNode();
181032
181041
  while (childIndex < clen) {
181033
181042
  splitNode.add(this.children[childIndex]);
181034
181043
  childIndex++;
@@ -181077,7 +181086,7 @@ ${e.message}`;
181077
181086
  splitNodes = new Array(splitNodeCount);
181078
181087
  let splitNodeIndex = 0;
181079
181088
  for (let i = 0; i < splitNodeCount; i++) {
181080
- splitNodes[i] = new LineNode();
181089
+ splitNodes[i] = new _LineNode();
181081
181090
  }
181082
181091
  let splitNode = splitNodes[0];
181083
181092
  while (nodeIndex < nodeCount) {
@@ -2895,7 +2895,7 @@ declare namespace ts {
2895
2895
  hasRestElement: boolean;
2896
2896
  combinedFlags: ElementFlags;
2897
2897
  readonly: boolean;
2898
- labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[];
2898
+ labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[];
2899
2899
  }
2900
2900
  interface TupleTypeReference extends TypeReference {
2901
2901
  target: TupleType;