@typescript-deploys/pr-build 4.9.0-pr-50976-13 → 4.9.0-pr-51026-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.
package/lib/typescript.js CHANGED
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220929");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20221003");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -11368,7 +11368,7 @@ var ts;
11368
11368
  return -1;
11369
11369
  }
11370
11370
  function peekExtendedUnicodeEscape() {
11371
- if (languageVersion >= 2 /* ScriptTarget.ES2015 */ && codePointAt(text, pos + 1) === 117 /* CharacterCodes.u */ && codePointAt(text, pos + 2) === 123 /* CharacterCodes.openBrace */) {
11371
+ if (codePointAt(text, pos + 1) === 117 /* CharacterCodes.u */ && codePointAt(text, pos + 2) === 123 /* CharacterCodes.openBrace */) {
11372
11372
  var start_2 = pos;
11373
11373
  pos += 3;
11374
11374
  var escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false);
@@ -23149,7 +23149,7 @@ var ts;
23149
23149
  return node;
23150
23150
  }
23151
23151
  // @api
23152
- function createIdentifier(text, typeArguments, originalKeywordKind) {
23152
+ function createIdentifier(text, typeArguments, originalKeywordKind, hasExtendedUnicodeEscape) {
23153
23153
  var node = createBaseIdentifier(text, originalKeywordKind);
23154
23154
  if (typeArguments) {
23155
23155
  // NOTE: we do not use `setChildren` here because typeArguments in an identifier do not contribute to transformations
@@ -23158,6 +23158,10 @@ var ts;
23158
23158
  if (node.originalKeywordKind === 133 /* SyntaxKind.AwaitKeyword */) {
23159
23159
  node.transformFlags |= 67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */;
23160
23160
  }
23161
+ if (hasExtendedUnicodeEscape) {
23162
+ node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape;
23163
+ node.transformFlags |= 1024 /* TransformFlags.ContainsES2015 */;
23164
+ }
23161
23165
  return node;
23162
23166
  }
23163
23167
  // @api
@@ -33092,8 +33096,9 @@ var ts;
33092
33096
  // Store original token kind if it is not just an Identifier so we can report appropriate error later in type checker
33093
33097
  var originalKeywordKind = token();
33094
33098
  var text = internIdentifier(scanner.getTokenValue());
33099
+ var hasExtendedUnicodeEscape = scanner.hasExtendedUnicodeEscape();
33095
33100
  nextTokenWithoutCheck();
33096
- return finishNode(factory.createIdentifier(text, /*typeArguments*/ undefined, originalKeywordKind), pos);
33101
+ return finishNode(factory.createIdentifier(text, /*typeArguments*/ undefined, originalKeywordKind, hasExtendedUnicodeEscape), pos);
33097
33102
  }
33098
33103
  if (token() === 80 /* SyntaxKind.PrivateIdentifier */) {
33099
33104
  parseErrorAtCurrentToken(privateIdentifierDiagnosticMessage || ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
@@ -49488,6 +49493,12 @@ var ts;
49488
49493
  getOptionalType: function () { return optionalType; },
49489
49494
  getPromiseType: function () { return getGlobalPromiseType(/*reportErrors*/ false); },
49490
49495
  getPromiseLikeType: function () { return getGlobalPromiseLikeType(/*reportErrors*/ false); },
49496
+ getAsyncIterableType: function () {
49497
+ var type = getGlobalAsyncIterableType(/*reportErrors*/ false);
49498
+ if (type === emptyGenericType)
49499
+ return undefined;
49500
+ return type;
49501
+ },
49491
49502
  isSymbolAccessible: isSymbolAccessible,
49492
49503
  isArrayType: isArrayType,
49493
49504
  isTupleType: isTupleType,
@@ -50325,9 +50336,9 @@ var ts;
50325
50336
  return symbol;
50326
50337
  }
50327
50338
  if (symbol.flags & 2097152 /* SymbolFlags.Alias */) {
50328
- var target = resolveAlias(symbol);
50329
- // Unknown symbol means an error occurred in alias resolution, treat it as positive answer to avoid cascading errors
50330
- if (target === unknownSymbol || target.flags & meaning) {
50339
+ var targetFlags = getAllSymbolFlags(symbol);
50340
+ // `targetFlags` will be `SymbolFlags.All` if an error occurred in alias resolution; this avoids cascading errors
50341
+ if (targetFlags & meaning) {
50331
50342
  return symbol;
50332
50343
  }
50333
50344
  }
@@ -50960,8 +50971,8 @@ var ts;
50960
50971
  !checkAndReportErrorForExtendingInterface(errorLocation) &&
50961
50972
  !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) &&
50962
50973
  !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) &&
50974
+ !checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) &&
50963
50975
  !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) &&
50964
- !checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) &&
50965
50976
  !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) {
50966
50977
  var suggestion = void 0;
50967
50978
  var suggestedLib = void 0;
@@ -51048,7 +51059,7 @@ var ts;
51048
51059
  }
51049
51060
  }
51050
51061
  if (result && errorLocation && meaning & 111551 /* SymbolFlags.Value */ && result.flags & 2097152 /* SymbolFlags.Alias */ && !(result.flags & 111551 /* SymbolFlags.Value */) && !ts.isValidTypeOnlyAliasUseSite(errorLocation)) {
51051
- var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result);
51062
+ var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(result, 111551 /* SymbolFlags.Value */);
51052
51063
  if (typeOnlyDeclaration) {
51053
51064
  var message = typeOnlyDeclaration.kind === 278 /* SyntaxKind.ExportSpecifier */
51054
51065
  ? ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type
@@ -51211,7 +51222,7 @@ var ts;
51211
51222
  return false;
51212
51223
  }
51213
51224
  function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) {
51214
- if (meaning & (111551 /* SymbolFlags.Value */ & ~1024 /* SymbolFlags.NamespaceModule */)) {
51225
+ if (meaning & 111551 /* SymbolFlags.Value */) {
51215
51226
  if (isPrimitiveTypeName(name)) {
51216
51227
  if (isExtendedByInterface(errorLocation)) {
51217
51228
  error(errorLocation, ts.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes, ts.unescapeLeadingUnderscores(name));
@@ -51222,7 +51233,8 @@ var ts;
51222
51233
  return true;
51223
51234
  }
51224
51235
  var symbol = resolveSymbol(resolveName(errorLocation, name, 788968 /* SymbolFlags.Type */ & ~111551 /* SymbolFlags.Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));
51225
- if (symbol && !(symbol.flags & 1024 /* SymbolFlags.NamespaceModule */)) {
51236
+ var allFlags = symbol && getAllSymbolFlags(symbol);
51237
+ if (symbol && allFlags !== undefined && !(allFlags & 111551 /* SymbolFlags.Value */)) {
51226
51238
  var rawName = ts.unescapeLeadingUnderscores(name);
51227
51239
  if (isES2015OrLaterConstructorName(name)) {
51228
51240
  error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName);
@@ -51270,16 +51282,16 @@ var ts;
51270
51282
  }
51271
51283
  return false;
51272
51284
  }
51273
- function checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) {
51274
- if (meaning & (111551 /* SymbolFlags.Value */ & ~1024 /* SymbolFlags.NamespaceModule */ & ~788968 /* SymbolFlags.Type */)) {
51275
- var symbol = resolveSymbol(resolveName(errorLocation, name, 1024 /* SymbolFlags.NamespaceModule */ & ~111551 /* SymbolFlags.Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));
51285
+ function checkAndReportErrorForUsingNamespaceAsTypeOrValue(errorLocation, name, meaning) {
51286
+ if (meaning & (111551 /* SymbolFlags.Value */ & ~788968 /* SymbolFlags.Type */)) {
51287
+ var symbol = resolveSymbol(resolveName(errorLocation, name, 1024 /* SymbolFlags.NamespaceModule */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));
51276
51288
  if (symbol) {
51277
51289
  error(errorLocation, ts.Diagnostics.Cannot_use_namespace_0_as_a_value, ts.unescapeLeadingUnderscores(name));
51278
51290
  return true;
51279
51291
  }
51280
51292
  }
51281
- else if (meaning & (788968 /* SymbolFlags.Type */ & ~1024 /* SymbolFlags.NamespaceModule */ & ~111551 /* SymbolFlags.Value */)) {
51282
- var symbol = resolveSymbol(resolveName(errorLocation, name, (512 /* SymbolFlags.ValueModule */ | 1024 /* SymbolFlags.NamespaceModule */) & ~788968 /* SymbolFlags.Type */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));
51293
+ else if (meaning & (788968 /* SymbolFlags.Type */ & ~111551 /* SymbolFlags.Value */)) {
51294
+ var symbol = resolveSymbol(resolveName(errorLocation, name, 1536 /* SymbolFlags.Module */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));
51283
51295
  if (symbol) {
51284
51296
  error(errorLocation, ts.Diagnostics.Cannot_use_namespace_0_as_a_type, ts.unescapeLeadingUnderscores(name));
51285
51297
  return true;
@@ -51869,6 +51881,52 @@ var ts;
51869
51881
  }
51870
51882
  return undefined;
51871
51883
  }
51884
+ /**
51885
+ * Gets combined flags of a `symbol` and all alias targets it resolves to. `resolveAlias`
51886
+ * is typically recursive over chains of aliases, but stops mid-chain if an alias is merged
51887
+ * with another exported symbol, e.g.
51888
+ * ```ts
51889
+ * // a.ts
51890
+ * export const a = 0;
51891
+ * // b.ts
51892
+ * export { a } from "./a";
51893
+ * export type a = number;
51894
+ * // c.ts
51895
+ * import { a } from "./b";
51896
+ * ```
51897
+ * Calling `resolveAlias` on the `a` in c.ts would stop at the merged symbol exported
51898
+ * from b.ts, even though there is still more alias to resolve. Consequently, if we were
51899
+ * trying to determine if the `a` in c.ts has a value meaning, looking at the flags on
51900
+ * the local symbol and on the symbol returned by `resolveAlias` is not enough.
51901
+ * @returns SymbolFlags.All if `symbol` is an alias that ultimately resolves to `unknown`;
51902
+ * combined flags of all alias targets otherwise.
51903
+ */
51904
+ function getAllSymbolFlags(symbol) {
51905
+ var flags = symbol.flags;
51906
+ var seenSymbols;
51907
+ while (symbol.flags & 2097152 /* SymbolFlags.Alias */) {
51908
+ var target = resolveAlias(symbol);
51909
+ if (target === unknownSymbol) {
51910
+ return 67108863 /* SymbolFlags.All */;
51911
+ }
51912
+ // Optimizations - try to avoid creating or adding to
51913
+ // `seenSymbols` if possible
51914
+ if (target === symbol || (seenSymbols === null || seenSymbols === void 0 ? void 0 : seenSymbols.has(target))) {
51915
+ break;
51916
+ }
51917
+ if (target.flags & 2097152 /* SymbolFlags.Alias */) {
51918
+ if (seenSymbols) {
51919
+ seenSymbols.add(target);
51920
+ }
51921
+ else {
51922
+ seenSymbols = new ts.Set([symbol, target]);
51923
+ }
51924
+ }
51925
+ flags |= target.flags;
51926
+ symbol = target;
51927
+ }
51928
+ return flags;
51929
+ }
51872
51930
  /**
51873
51931
  * Marks a symbol as type-only if its declaration is syntactically type-only.
51874
51932
  * If it is not itself marked type-only, but resolves to a type-only alias
@@ -51914,19 +51972,25 @@ var ts;
51914
51972
  return !!aliasDeclarationLinks.typeOnlyDeclaration;
51915
51973
  }
51916
51974
  /** Indicates that a symbol directly or indirectly resolves to a type-only import or export. */
51917
- function getTypeOnlyAliasDeclaration(symbol) {
51975
+ function getTypeOnlyAliasDeclaration(symbol, include) {
51918
51976
  if (!(symbol.flags & 2097152 /* SymbolFlags.Alias */)) {
51919
51977
  return undefined;
51920
51978
  }
51921
51979
  var links = getSymbolLinks(symbol);
51922
- return links.typeOnlyDeclaration || undefined;
51980
+ if (include === undefined) {
51981
+ return links.typeOnlyDeclaration || undefined;
51982
+ }
51983
+ if (links.typeOnlyDeclaration) {
51984
+ return getAllSymbolFlags(resolveAlias(links.typeOnlyDeclaration.symbol)) & include ? links.typeOnlyDeclaration : undefined;
51985
+ }
51986
+ return undefined;
51923
51987
  }
51924
51988
  function markExportAsReferenced(node) {
51925
51989
  var symbol = getSymbolOfNode(node);
51926
51990
  var target = resolveAlias(symbol);
51927
51991
  if (target) {
51928
51992
  var markAlias = target === unknownSymbol ||
51929
- ((target.flags & 111551 /* SymbolFlags.Value */) && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol));
51993
+ ((getAllSymbolFlags(target) & 111551 /* SymbolFlags.Value */) && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* SymbolFlags.Value */));
51930
51994
  if (markAlias) {
51931
51995
  markAliasSymbolAsReferenced(symbol);
51932
51996
  }
@@ -51946,8 +52010,7 @@ var ts;
51946
52010
  // This way a chain of imports can be elided if ultimately the final input is only used in a type
51947
52011
  // position.
51948
52012
  if (ts.isInternalModuleImportEqualsDeclaration(node)) {
51949
- var target = resolveSymbol(symbol);
51950
- if (target === unknownSymbol || target.flags & 111551 /* SymbolFlags.Value */) {
52013
+ if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* SymbolFlags.Value */) {
51951
52014
  // import foo = <symbol>
51952
52015
  checkExpressionCached(node.moduleReference);
51953
52016
  }
@@ -52769,7 +52832,7 @@ var ts;
52769
52832
  }
52770
52833
  function symbolIsValue(symbol, includeTypeOnlyMembers) {
52771
52834
  return !!(symbol.flags & 111551 /* SymbolFlags.Value */ ||
52772
- symbol.flags & 2097152 /* SymbolFlags.Alias */ && resolveAlias(symbol).flags & 111551 /* SymbolFlags.Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
52835
+ symbol.flags & 2097152 /* SymbolFlags.Alias */ && getAllSymbolFlags(symbol) & 111551 /* SymbolFlags.Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
52773
52836
  }
52774
52837
  function findConstructorDeclaration(node) {
52775
52838
  var members = node.members;
@@ -53038,8 +53101,10 @@ var ts;
53038
53101
  return true;
53039
53102
  }
53040
53103
  // Qualify if the symbol from symbol table has same meaning as expected
53041
- symbolFromSymbolTable = (symbolFromSymbolTable.flags & 2097152 /* SymbolFlags.Alias */ && !ts.getDeclarationOfKind(symbolFromSymbolTable, 278 /* SyntaxKind.ExportSpecifier */)) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable;
53042
- if (symbolFromSymbolTable.flags & meaning) {
53104
+ var shouldResolveAlias = (symbolFromSymbolTable.flags & 2097152 /* SymbolFlags.Alias */ && !ts.getDeclarationOfKind(symbolFromSymbolTable, 278 /* SyntaxKind.ExportSpecifier */));
53105
+ symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable;
53106
+ var flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags;
53107
+ if (flags & meaning) {
53043
53108
  qualify = true;
53044
53109
  return true;
53045
53110
  }
@@ -55696,7 +55761,7 @@ var ts;
55696
55761
  return !symbol.exports ? [] : ts.filter(ts.arrayFrom(symbol.exports.values()), isNamespaceMember);
55697
55762
  }
55698
55763
  function isTypeOnlyNamespace(symbol) {
55699
- return ts.every(getNamespaceMembersForSerialization(symbol), function (m) { return !(resolveSymbol(m).flags & 111551 /* SymbolFlags.Value */); });
55764
+ return ts.every(getNamespaceMembersForSerialization(symbol), function (m) { return !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* SymbolFlags.Value */); });
55700
55765
  }
55701
55766
  function serializeModule(symbol, symbolName, modifierFlags) {
55702
55767
  var members = getNamespaceMembersForSerialization(symbol);
@@ -57610,32 +57675,16 @@ var ts;
57610
57675
  return getTypeFromTypeNode(typeNode);
57611
57676
  }
57612
57677
  }
57613
- function isParameterOfContextSensitiveSignature(symbol) {
57614
- var decl = symbol.valueDeclaration;
57615
- if (!decl) {
57616
- return false;
57617
- }
57618
- if (ts.isBindingElement(decl)) {
57619
- decl = ts.walkUpBindingElementsAndPatterns(decl);
57620
- }
57621
- if (ts.isParameter(decl)) {
57622
- return isContextSensitiveFunctionOrObjectLiteralMethod(decl.parent);
57623
- }
57624
- return false;
57625
- }
57626
57678
  function getTypeOfVariableOrParameterOrProperty(symbol) {
57627
57679
  var links = getSymbolLinks(symbol);
57628
57680
  if (!links.type) {
57629
57681
  var type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
57630
57682
  // For a contextually typed parameter it is possible that a type has already
57631
57683
  // been assigned (in assignTypeToParameterAndFixTypeParameters), and we want
57632
- // to preserve this type. In fact, we need to _prefer_ that type, but it won't
57633
- // be assigned until contextual typing is complete, so we need to defer in
57634
- // cases where contextual typing may take place.
57635
- if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
57684
+ // to preserve this type.
57685
+ if (!links.type) {
57636
57686
  links.type = type;
57637
57687
  }
57638
- return type;
57639
57688
  }
57640
57689
  return links.type;
57641
57690
  }
@@ -57932,7 +57981,7 @@ var ts;
57932
57981
  links.type = (exportSymbol === null || exportSymbol === void 0 ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol)
57933
57982
  : isDuplicatedCommonJSExport(symbol.declarations) ? autoType
57934
57983
  : declaredType ? declaredType
57935
- : targetSymbol.flags & 111551 /* SymbolFlags.Value */ ? getTypeOfSymbol(targetSymbol)
57984
+ : getAllSymbolFlags(targetSymbol) & 111551 /* SymbolFlags.Value */ ? getTypeOfSymbol(targetSymbol)
57936
57985
  : errorType;
57937
57986
  }
57938
57987
  return links.type;
@@ -60285,7 +60334,7 @@ var ts;
60285
60334
  var indexTypes;
60286
60335
  var isUnion = containingType.flags & 1048576 /* TypeFlags.Union */;
60287
60336
  // Flags we want to propagate to the result if they exist in all source symbols
60288
- var optionalFlag = isUnion ? 0 /* SymbolFlags.None */ : 16777216 /* SymbolFlags.Optional */;
60337
+ var optionalFlag;
60289
60338
  var syntheticFlag = 4 /* CheckFlags.SyntheticMethod */;
60290
60339
  var checkFlags = isUnion ? 0 : 8 /* CheckFlags.Readonly */;
60291
60340
  var mergedInstantiations = false;
@@ -60296,11 +60345,14 @@ var ts;
60296
60345
  var prop = getPropertyOfType(type, name, skipObjectFunctionPropertyAugment);
60297
60346
  var modifiers = prop ? ts.getDeclarationModifierFlagsFromSymbol(prop) : 0;
60298
60347
  if (prop) {
60299
- if (isUnion) {
60300
- optionalFlag |= (prop.flags & 16777216 /* SymbolFlags.Optional */);
60301
- }
60302
- else {
60303
- optionalFlag &= prop.flags;
60348
+ if (prop.flags & 106500 /* SymbolFlags.ClassMember */) {
60349
+ optionalFlag !== null && optionalFlag !== void 0 ? optionalFlag : (optionalFlag = isUnion ? 0 /* SymbolFlags.None */ : 16777216 /* SymbolFlags.Optional */);
60350
+ if (isUnion) {
60351
+ optionalFlag |= (prop.flags & 16777216 /* SymbolFlags.Optional */);
60352
+ }
60353
+ else {
60354
+ optionalFlag &= prop.flags;
60355
+ }
60304
60356
  }
60305
60357
  if (!singleProp) {
60306
60358
  singleProp = prop;
@@ -60419,7 +60471,7 @@ var ts;
60419
60471
  propTypes.push(type);
60420
60472
  }
60421
60473
  ts.addRange(propTypes, indexTypes);
60422
- var result = createSymbol(4 /* SymbolFlags.Property */ | optionalFlag, name, syntheticFlag | checkFlags);
60474
+ var result = createSymbol(4 /* SymbolFlags.Property */ | (optionalFlag !== null && optionalFlag !== void 0 ? optionalFlag : 0), name, syntheticFlag | checkFlags);
60423
60475
  result.containingType = containingType;
60424
60476
  if (!hasNonUniformValueDeclaration && firstValueDeclaration) {
60425
60477
  result.valueDeclaration = firstValueDeclaration;
@@ -67686,7 +67738,7 @@ var ts;
67686
67738
  return 0 /* Ternary.False */;
67687
67739
  }
67688
67740
  // When checking for comparability, be more lenient with optional properties.
67689
- if (!skipOptional && sourceProp.flags & 16777216 /* SymbolFlags.Optional */ && !(targetProp.flags & 16777216 /* SymbolFlags.Optional */)) {
67741
+ if (!skipOptional && sourceProp.flags & 16777216 /* SymbolFlags.Optional */ && targetProp.flags & 106500 /* SymbolFlags.ClassMember */ && !(targetProp.flags & 16777216 /* SymbolFlags.Optional */)) {
67690
67742
  // TypeScript 1.0 spec (April 2014): 3.8.3
67691
67743
  // S is a subtype of a type T, and T is a supertype of S if ...
67692
67744
  // S' and T are object types and, for each member M in T..
@@ -72958,9 +73010,9 @@ var ts;
72958
73010
  });
72959
73011
  }
72960
73012
  function markAliasReferenced(symbol, location) {
72961
- if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* SymbolFlags.Value */) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol)) {
73013
+ if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* SymbolFlags.Value */) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* SymbolFlags.Value */)) {
72962
73014
  var target = resolveAlias(symbol);
72963
- if (target.flags & 111551 /* SymbolFlags.Value */) {
73015
+ if (getAllSymbolFlags(target) & 111551 /* SymbolFlags.Value */) {
72964
73016
  // An alias resolving to a const enum cannot be elided if (1) 'isolatedModules' is enabled
72965
73017
  // (because the const enum value will not be inlined), or if (2) the alias is an export
72966
73018
  // of a const enum declaration that will be preserved.
@@ -74376,9 +74428,10 @@ var ts;
74376
74428
  function instantiateContextualType(contextualType, node, contextFlags) {
74377
74429
  if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* TypeFlags.Instantiable */)) {
74378
74430
  var inferenceContext = getInferenceContext(node);
74379
- // If no inferences have been made, nothing is gained from instantiating as type parameters
74380
- // would just be replaced with their defaults similar to the apparent type.
74381
- if (inferenceContext && contextFlags & 1 /* ContextFlags.Signature */ && ts.some(inferenceContext.inferences, hasInferenceCandidates)) {
74431
+ // If no inferences have been made, and none of the type parameters for which we are inferring
74432
+ // specify default types, nothing is gained from instantiating as type parameters would just be
74433
+ // replaced with their constraints similar to the apparent type.
74434
+ if (inferenceContext && contextFlags & 1 /* ContextFlags.Signature */ && ts.some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
74382
74435
  // For contextual signatures we incorporate all inferences made so far, e.g. from return
74383
74436
  // types as well as arguments to the left in a function call.
74384
74437
  return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
@@ -78852,7 +78905,7 @@ var ts;
78852
78905
  if (symbol && symbol.flags & 2097152 /* SymbolFlags.Alias */) {
78853
78906
  symbol = resolveAlias(symbol);
78854
78907
  }
78855
- return !!(symbol && (symbol.flags & 384 /* SymbolFlags.Enum */) && getEnumKind(symbol) === 1 /* EnumKind.Literal */);
78908
+ return !!(symbol && (getAllSymbolFlags(symbol) & 384 /* SymbolFlags.Enum */) && getEnumKind(symbol) === 1 /* EnumKind.Literal */);
78856
78909
  }
78857
78910
  return false;
78858
78911
  }
@@ -81226,6 +81279,9 @@ var ts;
81226
81279
  function hasInferenceCandidates(info) {
81227
81280
  return !!(info.candidates || info.contraCandidates);
81228
81281
  }
81282
+ function hasInferenceCandidatesOrDefault(info) {
81283
+ return !!(info.candidates || info.contraCandidates || hasTypeParameterDefault(info.typeParameter));
81284
+ }
81229
81285
  function hasOverlappingInferences(a, b) {
81230
81286
  for (var i = 0; i < a.length; i++) {
81231
81287
  if (hasInferenceCandidates(a[i]) && hasInferenceCandidates(b[i])) {
@@ -85027,7 +85083,16 @@ var ts;
85027
85083
  var message = allowAsyncIterables
85028
85084
  ? ts.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator
85029
85085
  : ts.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;
85030
- return errorAndMaybeSuggestAwait(errorNode, !!getAwaitedTypeOfPromise(type), message, typeToString(type));
85086
+ var suggestAwait =
85087
+ // for (const x of Promise<...>) or [...Promise<...>]
85088
+ !!getAwaitedTypeOfPromise(type)
85089
+ // for (const x of AsyncIterable<...>)
85090
+ || (!allowAsyncIterables &&
85091
+ ts.isForOfStatement(errorNode.parent) &&
85092
+ errorNode.parent.expression === errorNode &&
85093
+ getGlobalAsyncIterableType(/** reportErrors */ false) !== emptyGenericType &&
85094
+ isTypeAssignableTo(type, getGlobalAsyncIterableType(/** reportErrors */ false)));
85095
+ return errorAndMaybeSuggestAwait(errorNode, suggestAwait, message, typeToString(type));
85031
85096
  }
85032
85097
  /**
85033
85098
  * Gets the *yield*, *return*, and *next* types from an `Iterator`-like or `AsyncIterator`-like type.
@@ -86878,10 +86943,11 @@ var ts;
86878
86943
  }
86879
86944
  return;
86880
86945
  }
86946
+ var targetFlags = getAllSymbolFlags(target);
86881
86947
  var excludedMeanings = (symbol.flags & (111551 /* SymbolFlags.Value */ | 1048576 /* SymbolFlags.ExportValue */) ? 111551 /* SymbolFlags.Value */ : 0) |
86882
86948
  (symbol.flags & 788968 /* SymbolFlags.Type */ ? 788968 /* SymbolFlags.Type */ : 0) |
86883
86949
  (symbol.flags & 1920 /* SymbolFlags.Namespace */ ? 1920 /* SymbolFlags.Namespace */ : 0);
86884
- if (target.flags & excludedMeanings) {
86950
+ if (targetFlags & excludedMeanings) {
86885
86951
  var message = node.kind === 278 /* SyntaxKind.ExportSpecifier */ ?
86886
86952
  ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 :
86887
86953
  ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;
@@ -86891,7 +86957,7 @@ var ts;
86891
86957
  && !ts.isTypeOnlyImportOrExportDeclaration(node)
86892
86958
  && !(node.flags & 16777216 /* NodeFlags.Ambient */)) {
86893
86959
  var typeOnlyAlias = getTypeOnlyAliasDeclaration(symbol);
86894
- var isType = !(target.flags & 111551 /* SymbolFlags.Value */);
86960
+ var isType = !(targetFlags & 111551 /* SymbolFlags.Value */);
86895
86961
  if (isType || typeOnlyAlias) {
86896
86962
  switch (node.kind) {
86897
86963
  case 270 /* SyntaxKind.ImportClause */:
@@ -87051,14 +87117,15 @@ var ts;
87051
87117
  if (node.moduleReference.kind !== 280 /* SyntaxKind.ExternalModuleReference */) {
87052
87118
  var target = resolveAlias(getSymbolOfNode(node));
87053
87119
  if (target !== unknownSymbol) {
87054
- if (target.flags & 111551 /* SymbolFlags.Value */) {
87120
+ var targetFlags = getAllSymbolFlags(target);
87121
+ if (targetFlags & 111551 /* SymbolFlags.Value */) {
87055
87122
  // Target is a value symbol, check that it is not hidden by a local declaration with the same name
87056
87123
  var moduleName = ts.getFirstIdentifier(node.moduleReference);
87057
87124
  if (!(resolveEntityName(moduleName, 111551 /* SymbolFlags.Value */ | 1920 /* SymbolFlags.Namespace */).flags & 1920 /* SymbolFlags.Namespace */)) {
87058
87125
  error(moduleName, ts.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, ts.declarationNameToString(moduleName));
87059
87126
  }
87060
87127
  }
87061
- if (target.flags & 788968 /* SymbolFlags.Type */) {
87128
+ if (targetFlags & 788968 /* SymbolFlags.Type */) {
87062
87129
  checkTypeNameIsReserved(node.name, ts.Diagnostics.Import_name_cannot_be_0);
87063
87130
  }
87064
87131
  }
@@ -87197,7 +87264,7 @@ var ts;
87197
87264
  markExportAsReferenced(node);
87198
87265
  }
87199
87266
  var target = symbol && (symbol.flags & 2097152 /* SymbolFlags.Alias */ ? resolveAlias(symbol) : symbol);
87200
- if (!target || target === unknownSymbol || target.flags & 111551 /* SymbolFlags.Value */) {
87267
+ if (!target || getAllSymbolFlags(target) & 111551 /* SymbolFlags.Value */) {
87201
87268
  checkExpressionCached(node.propertyName || node.name);
87202
87269
  }
87203
87270
  }
@@ -87244,7 +87311,7 @@ var ts;
87244
87311
  markAliasReferenced(sym, id);
87245
87312
  // If not a value, we're interpreting the identifier as a type export, along the lines of (`export { Id as default }`)
87246
87313
  var target = sym.flags & 2097152 /* SymbolFlags.Alias */ ? resolveAlias(sym) : sym;
87247
- if (target === unknownSymbol || target.flags & 111551 /* SymbolFlags.Value */) {
87314
+ if (getAllSymbolFlags(target) & 111551 /* SymbolFlags.Value */) {
87248
87315
  // However if it is a value, we need to check it's being used correctly
87249
87316
  checkExpressionCached(node.expression);
87250
87317
  }
@@ -88566,7 +88633,7 @@ var ts;
88566
88633
  return symbolLinks.exportsSomeValue;
88567
88634
  function isValue(s) {
88568
88635
  s = resolveSymbol(s);
88569
- return s && !!(s.flags & 111551 /* SymbolFlags.Value */);
88636
+ return s && !!(getAllSymbolFlags(s) & 111551 /* SymbolFlags.Value */);
88570
88637
  }
88571
88638
  }
88572
88639
  function isNameOfModuleOrEnumDeclaration(node) {
@@ -88619,7 +88686,7 @@ var ts;
88619
88686
  var symbol = getReferencedValueOrAliasSymbol(node);
88620
88687
  // We should only get the declaration of an alias if there isn't a local value
88621
88688
  // declaration for the symbol
88622
- if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* SymbolFlags.Value */) && !getTypeOnlyAliasDeclaration(symbol)) {
88689
+ if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* SymbolFlags.Value */) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* SymbolFlags.Value */)) {
88623
88690
  return getDeclarationOfAliasSymbol(symbol);
88624
88691
  }
88625
88692
  }
@@ -88707,7 +88774,7 @@ var ts;
88707
88774
  case 273 /* SyntaxKind.ImportSpecifier */:
88708
88775
  case 278 /* SyntaxKind.ExportSpecifier */:
88709
88776
  var symbol = getSymbolOfNode(node);
88710
- return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol);
88777
+ return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* SymbolFlags.Value */);
88711
88778
  case 275 /* SyntaxKind.ExportDeclaration */:
88712
88779
  var exportClause = node.exportClause;
88713
88780
  return !!exportClause && (ts.isNamespaceExport(exportClause) ||
@@ -88729,6 +88796,7 @@ var ts;
88729
88796
  return isValue && node.moduleReference && !ts.nodeIsMissing(node.moduleReference);
88730
88797
  }
88731
88798
  function isAliasResolvedToValue(symbol) {
88799
+ var _a;
88732
88800
  if (!symbol) {
88733
88801
  return false;
88734
88802
  }
@@ -88738,7 +88806,7 @@ var ts;
88738
88806
  }
88739
88807
  // const enums and modules that contain only const enums are not considered values from the emit perspective
88740
88808
  // unless 'preserveConstEnums' option is set to true
88741
- return !!(target.flags & 111551 /* SymbolFlags.Value */) &&
88809
+ return !!(((_a = getAllSymbolFlags(target)) !== null && _a !== void 0 ? _a : -1) & 111551 /* SymbolFlags.Value */) &&
88742
88810
  (ts.shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target));
88743
88811
  }
88744
88812
  function isConstEnumOrConstEnumOnlyModule(s) {
@@ -88753,7 +88821,7 @@ var ts;
88753
88821
  }
88754
88822
  var target = getSymbolLinks(symbol).aliasTarget; // TODO: GH#18217
88755
88823
  if (target && ts.getEffectiveModifierFlags(node) & 1 /* ModifierFlags.Export */ &&
88756
- target.flags & 111551 /* SymbolFlags.Value */ &&
88824
+ getAllSymbolFlags(target) & 111551 /* SymbolFlags.Value */ &&
88757
88825
  (ts.shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) {
88758
88826
  // An `export import ... =` of a value symbol is always considered referenced
88759
88827
  return true;
@@ -101246,11 +101314,13 @@ var ts;
101246
101314
  return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);
101247
101315
  }
101248
101316
  function visitIdentifier(node) {
101249
- if (!convertedLoopState) {
101250
- return node;
101317
+ if (convertedLoopState) {
101318
+ if (resolver.isArgumentsLocalBinding(node)) {
101319
+ return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory.createUniqueName("arguments"));
101320
+ }
101251
101321
  }
101252
- if (resolver.isArgumentsLocalBinding(node)) {
101253
- return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory.createUniqueName("arguments"));
101322
+ if (node.hasExtendedUnicodeEscape) {
101323
+ return ts.setOriginalNode(ts.setTextRange(factory.createIdentifier(ts.unescapeLeadingUnderscores(node.escapedText)), node), node);
101254
101324
  }
101255
101325
  return node;
101256
101326
  }
@@ -129209,6 +129279,12 @@ var ts;
129209
129279
  SemanticClassificationFormat["Original"] = "original";
129210
129280
  SemanticClassificationFormat["TwentyTwenty"] = "2020";
129211
129281
  })(SemanticClassificationFormat = ts.SemanticClassificationFormat || (ts.SemanticClassificationFormat = {}));
129282
+ var OrganizeImportsMode;
129283
+ (function (OrganizeImportsMode) {
129284
+ OrganizeImportsMode["All"] = "All";
129285
+ OrganizeImportsMode["SortAndCombine"] = "SortAndCombine";
129286
+ OrganizeImportsMode["RemoveUnused"] = "RemoveUnused";
129287
+ })(OrganizeImportsMode = ts.OrganizeImportsMode || (ts.OrganizeImportsMode = {}));
129212
129288
  var CompletionTriggerKind;
129213
129289
  (function (CompletionTriggerKind) {
129214
129290
  /** Completion was triggered by typing an identifier, manual invocation (e.g Ctrl+Space) or via API. */
@@ -144964,23 +145040,39 @@ var ts;
144964
145040
  * 2) Coalescing imports from the same module
144965
145041
  * 3) Sorting imports
144966
145042
  */
144967
- function organizeImports(sourceFile, formatContext, host, program, preferences, skipDestructiveCodeActions) {
145043
+ function organizeImports(sourceFile, formatContext, host, program, preferences, mode) {
144968
145044
  var changeTracker = ts.textChanges.ChangeTracker.fromContext({ host: host, formatContext: formatContext, preferences: preferences });
144969
- var coalesceAndOrganizeImports = function (importGroup) { return ts.stableSort(coalesceImports(removeUnusedImports(importGroup, sourceFile, program, skipDestructiveCodeActions)), function (s1, s2) { return compareImportsOrRequireStatements(s1, s2); }); };
145045
+ var shouldSort = mode === "SortAndCombine" /* OrganizeImportsMode.SortAndCombine */ || mode === "All" /* OrganizeImportsMode.All */;
145046
+ var shouldCombine = shouldSort; // These are currently inseparable, but I draw a distinction for clarity and in case we add modes in the future.
145047
+ var shouldRemove = mode === "RemoveUnused" /* OrganizeImportsMode.RemoveUnused */ || mode === "All" /* OrganizeImportsMode.All */;
145048
+ var maybeRemove = shouldRemove ? removeUnusedImports : ts.identity;
145049
+ var maybeCoalesce = shouldCombine ? coalesceImports : ts.identity;
145050
+ var processImportsOfSameModuleSpecifier = function (importGroup) {
145051
+ var processedDeclarations = maybeCoalesce(maybeRemove(importGroup, sourceFile, program));
145052
+ return shouldSort
145053
+ ? ts.stableSort(processedDeclarations, function (s1, s2) { return compareImportsOrRequireStatements(s1, s2); })
145054
+ : processedDeclarations;
145055
+ };
144970
145056
  // All of the old ImportDeclarations in the file, in syntactic order.
144971
145057
  var topLevelImportGroupDecls = groupImportsByNewlineContiguous(sourceFile, sourceFile.statements.filter(ts.isImportDeclaration));
144972
- topLevelImportGroupDecls.forEach(function (importGroupDecl) { return organizeImportsWorker(importGroupDecl, coalesceAndOrganizeImports); });
144973
- // All of the old ExportDeclarations in the file, in syntactic order.
144974
- var topLevelExportDecls = sourceFile.statements.filter(ts.isExportDeclaration);
144975
- organizeImportsWorker(topLevelExportDecls, coalesceExports);
145058
+ topLevelImportGroupDecls.forEach(function (importGroupDecl) { return organizeImportsWorker(importGroupDecl, processImportsOfSameModuleSpecifier); });
145059
+ // Exports are always used
145060
+ if (mode !== "RemoveUnused" /* OrganizeImportsMode.RemoveUnused */) {
145061
+ // All of the old ExportDeclarations in the file, in syntactic order.
145062
+ var topLevelExportDecls = sourceFile.statements.filter(ts.isExportDeclaration);
145063
+ organizeImportsWorker(topLevelExportDecls, coalesceExports);
145064
+ }
144976
145065
  for (var _i = 0, _a = sourceFile.statements.filter(ts.isAmbientModule); _i < _a.length; _i++) {
144977
145066
  var ambientModule = _a[_i];
144978
145067
  if (!ambientModule.body)
144979
145068
  continue;
144980
145069
  var ambientModuleImportGroupDecls = groupImportsByNewlineContiguous(sourceFile, ambientModule.body.statements.filter(ts.isImportDeclaration));
144981
- ambientModuleImportGroupDecls.forEach(function (importGroupDecl) { return organizeImportsWorker(importGroupDecl, coalesceAndOrganizeImports); });
144982
- var ambientModuleExportDecls = ambientModule.body.statements.filter(ts.isExportDeclaration);
144983
- organizeImportsWorker(ambientModuleExportDecls, coalesceExports);
145070
+ ambientModuleImportGroupDecls.forEach(function (importGroupDecl) { return organizeImportsWorker(importGroupDecl, processImportsOfSameModuleSpecifier); });
145071
+ // Exports are always used
145072
+ if (mode !== "RemoveUnused" /* OrganizeImportsMode.RemoveUnused */) {
145073
+ var ambientModuleExportDecls = ambientModule.body.statements.filter(ts.isExportDeclaration);
145074
+ organizeImportsWorker(ambientModuleExportDecls, coalesceExports);
145075
+ }
144984
145076
  }
144985
145077
  return changeTracker.getChanges();
144986
145078
  function organizeImportsWorker(oldImportDecls, coalesce) {
@@ -144993,8 +145085,12 @@ var ts;
144993
145085
  // Consider: we could do a more careful check that this trivia is actually a header,
144994
145086
  // but the consequences of being wrong are very minor.
144995
145087
  ts.suppressLeadingTrivia(oldImportDecls[0]);
144996
- var oldImportGroups = ts.group(oldImportDecls, function (importDecl) { return getExternalModuleName(importDecl.moduleSpecifier); });
144997
- var sortedImportGroups = ts.stableSort(oldImportGroups, function (group1, group2) { return compareModuleSpecifiers(group1[0].moduleSpecifier, group2[0].moduleSpecifier); });
145088
+ var oldImportGroups = shouldCombine
145089
+ ? ts.group(oldImportDecls, function (importDecl) { return getExternalModuleName(importDecl.moduleSpecifier); })
145090
+ : [oldImportDecls];
145091
+ var sortedImportGroups = shouldSort
145092
+ ? ts.stableSort(oldImportGroups, function (group1, group2) { return compareModuleSpecifiers(group1[0].moduleSpecifier, group2[0].moduleSpecifier); })
145093
+ : oldImportGroups;
144998
145094
  var newImportDecls = ts.flatMap(sortedImportGroups, function (importGroup) {
144999
145095
  return getExternalModuleName(importGroup[0].moduleSpecifier)
145000
145096
  ? coalesce(importGroup)
@@ -145058,11 +145154,7 @@ var ts;
145058
145154
  }
145059
145155
  return false;
145060
145156
  }
145061
- function removeUnusedImports(oldImports, sourceFile, program, skipDestructiveCodeActions) {
145062
- // As a precaution, consider unused import detection to be destructive (GH #43051)
145063
- if (skipDestructiveCodeActions) {
145064
- return oldImports;
145065
- }
145157
+ function removeUnusedImports(oldImports, sourceFile, program) {
145066
145158
  var typeChecker = program.getTypeChecker();
145067
145159
  var compilerOptions = program.getCompilerOptions();
145068
145160
  var jsxNamespace = typeChecker.getJsxNamespace(sourceFile);
@@ -154095,6 +154187,15 @@ var ts;
154095
154187
  });
154096
154188
  }
154097
154189
  function makeChange(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {
154190
+ if (ts.isForOfStatement(insertionSite.parent) && !insertionSite.parent.awaitModifier) {
154191
+ var exprType = checker.getTypeAtLocation(insertionSite);
154192
+ var asyncIter = checker.getAsyncIterableType();
154193
+ if (asyncIter && checker.isTypeAssignableTo(exprType, asyncIter)) {
154194
+ var forOf = insertionSite.parent;
154195
+ changeTracker.replaceNode(sourceFile, forOf, ts.factory.updateForOfStatement(forOf, ts.factory.createToken(133 /* SyntaxKind.AwaitKeyword */), forOf.initializer, forOf.expression, forOf.statement));
154196
+ return;
154197
+ }
154198
+ }
154098
154199
  if (ts.isBinaryExpression(insertionSite)) {
154099
154200
  for (var _i = 0, _a = [insertionSite.left, insertionSite.right]; _i < _a.length; _i++) {
154100
154201
  var side = _a[_i];
@@ -169450,12 +169551,14 @@ var ts;
169450
169551
  return ts.codefix.getAllFixes({ fixId: fixId, sourceFile: sourceFile, program: program, host: host, cancellationToken: cancellationToken, formatContext: formatContext, preferences: preferences });
169451
169552
  }
169452
169553
  function organizeImports(args, formatOptions, preferences) {
169554
+ var _a;
169453
169555
  if (preferences === void 0) { preferences = ts.emptyOptions; }
169454
169556
  synchronizeHostData();
169455
169557
  ts.Debug.assert(args.type === "file");
169456
169558
  var sourceFile = getValidSourceFile(args.fileName);
169457
169559
  var formatContext = ts.formatting.getFormatContext(formatOptions, host);
169458
- return ts.OrganizeImports.organizeImports(sourceFile, formatContext, host, program, preferences, args.skipDestructiveCodeActions);
169560
+ var mode = (_a = args.mode) !== null && _a !== void 0 ? _a : (args.skipDestructiveCodeActions ? "SortAndCombine" /* OrganizeImportsMode.SortAndCombine */ : "All" /* OrganizeImportsMode.All */);
169561
+ return ts.OrganizeImports.organizeImports(sourceFile, formatContext, host, program, preferences, mode);
169459
169562
  }
169460
169563
  function getEditsForFileRename(oldFilePath, newFilePath, formatOptions, preferences) {
169461
169564
  if (preferences === void 0) { preferences = ts.emptyOptions; }
@@ -174056,5 +174159,4 @@ var ts;
174056
174159
  }
174057
174160
  })(ts || (ts = {}));
174058
174161
 
174059
-
174060
174162
  //# sourceMappingURL=typescript.js.map