@typescript-deploys/pr-build 5.0.0-pr-52710-9 → 5.0.0-pr-52696-39

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.
@@ -10590,6 +10590,7 @@ declare namespace ts {
10590
10590
  * in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
10591
10591
  */
10592
10592
  exportName: string;
10593
+ exportMapKey?: string;
10593
10594
  moduleSpecifier?: string;
10594
10595
  /** The file name declaring the export's module symbol, if it was an external module */
10595
10596
  fileName?: string;
@@ -10599,7 +10600,6 @@ declare namespace ts {
10599
10600
  isPackageJsonImport?: true;
10600
10601
  }
10601
10602
  interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
10602
- /** The key in the `ExportMapCache` where the completion entry's `SymbolExportInfo[]` is found */
10603
10603
  exportMapKey: string;
10604
10604
  }
10605
10605
  interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.0";
38
- version = `${versionMajorMinor}.0-insiders.20230210`;
38
+ version = `${versionMajorMinor}.0-insiders.20230211`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -29518,13 +29518,8 @@ ${lanes.join("\n")}
29518
29518
  return tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;
29519
29519
  case 14 /* JsxChildren */:
29520
29520
  return true;
29521
- case 25 /* StandaloneJSDoc */:
29522
- return true;
29523
- case 26 /* Count */:
29524
- return Debug.fail("ParsingContext.Count used as a context");
29525
- default:
29526
- Debug.assertNever(parsingContext2, "Non-exhaustive case in 'isListElement'.");
29527
29521
  }
29522
+ return Debug.fail("Non-exhaustive case in 'isListElement'.");
29528
29523
  }
29529
29524
  function isValidHeritageClauseObjectLiteral() {
29530
29525
  Debug.assert(token() === 18 /* OpenBraceToken */);
@@ -29618,8 +29613,7 @@ ${lanes.join("\n")}
29618
29613
  return false;
29619
29614
  }
29620
29615
  function isInSomeParsingContext() {
29621
- Debug.assert(parsingContext, "Missing parsing context");
29622
- for (let kind = 0; kind < 26 /* Count */; kind++) {
29616
+ for (let kind = 0; kind < 25 /* Count */; kind++) {
29623
29617
  if (parsingContext & 1 << kind) {
29624
29618
  if (isListElement2(
29625
29619
  kind,
@@ -29698,7 +29692,6 @@ ${lanes.join("\n")}
29698
29692
  case 8 /* VariableDeclarations */:
29699
29693
  case 17 /* JSDocParameters */:
29700
29694
  case 16 /* Parameters */:
29701
- case 25 /* StandaloneJSDoc */:
29702
29695
  return true;
29703
29696
  }
29704
29697
  return false;
@@ -29879,9 +29872,7 @@ ${lanes.join("\n")}
29879
29872
  return parseErrorAtCurrentToken(Diagnostics.Identifier_expected);
29880
29873
  case 24 /* AssertEntries */:
29881
29874
  return parseErrorAtCurrentToken(Diagnostics.Identifier_or_string_literal_expected);
29882
- case 25 /* StandaloneJSDoc */:
29883
- return;
29884
- case 26 /* Count */:
29875
+ case 25 /* Count */:
29885
29876
  return Debug.fail("ParsingContext.Count used as a context");
29886
29877
  default:
29887
29878
  Debug.assertNever(context);
@@ -33981,8 +33972,7 @@ ${lanes.join("\n")}
33981
33972
  ParsingContext2[ParsingContext2["HeritageClauses"] = 22] = "HeritageClauses";
33982
33973
  ParsingContext2[ParsingContext2["ImportOrExportSpecifiers"] = 23] = "ImportOrExportSpecifiers";
33983
33974
  ParsingContext2[ParsingContext2["AssertEntries"] = 24] = "AssertEntries";
33984
- ParsingContext2[ParsingContext2["StandaloneJSDoc"] = 25] = "StandaloneJSDoc";
33985
- ParsingContext2[ParsingContext2["Count"] = 26] = "Count";
33975
+ ParsingContext2[ParsingContext2["Count"] = 25] = "Count";
33986
33976
  })(ParsingContext || (ParsingContext = {}));
33987
33977
  let Tristate;
33988
33978
  ((Tristate2) => {
@@ -34104,13 +34094,6 @@ ${lanes.join("\n")}
34104
34094
  PropertyLikeParse2[PropertyLikeParse2["CallbackParameter"] = 4] = "CallbackParameter";
34105
34095
  })(PropertyLikeParse || (PropertyLikeParse = {}));
34106
34096
  function parseJSDocCommentWorker(start = 0, length2) {
34107
- const saveParsingContext = parsingContext;
34108
- parsingContext |= 1 << 25 /* StandaloneJSDoc */;
34109
- const jsdoc = parseJSDocCommentWorkerWorker(start, length2);
34110
- parsingContext = saveParsingContext;
34111
- return jsdoc;
34112
- }
34113
- function parseJSDocCommentWorkerWorker(start, length2) {
34114
34097
  const content = sourceText;
34115
34098
  const end = length2 === void 0 ? content.length : start + length2;
34116
34099
  length2 = end - start;
@@ -45698,6 +45681,7 @@ ${lanes.join("\n")}
45698
45681
  let flowTypeCache;
45699
45682
  const contextualTypeNodes = [];
45700
45683
  const contextualTypes = [];
45684
+ const contextualIsCache = [];
45701
45685
  let contextualTypeCount = 0;
45702
45686
  const inferenceContextNodes = [];
45703
45687
  const inferenceContexts = [];
@@ -52868,6 +52852,8 @@ ${lanes.join("\n")}
52868
52852
  return !!target.baseTypesResolved;
52869
52853
  case 8 /* WriteType */:
52870
52854
  return !!getSymbolLinks(target).writeType;
52855
+ case 9 /* ParameterInitializerContainsUndefined */:
52856
+ return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
52871
52857
  }
52872
52858
  return Debug.assertNever(propertyName);
52873
52859
  }
@@ -60659,7 +60645,12 @@ ${lanes.join("\n")}
60659
60645
  }
60660
60646
  }
60661
60647
  function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) {
60662
- pushContextualType(next, sourcePropType);
60648
+ pushContextualType(
60649
+ next,
60650
+ sourcePropType,
60651
+ /*isCache*/
60652
+ false
60653
+ );
60663
60654
  const result = checkExpressionForMutableLocation(next, 1 /* Contextual */);
60664
60655
  popContextualType();
60665
60656
  return result;
@@ -60967,7 +60958,12 @@ ${lanes.join("\n")}
60967
60958
  if (isTupleLikeType(source)) {
60968
60959
  return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);
60969
60960
  }
60970
- pushContextualType(node, target);
60961
+ pushContextualType(
60962
+ node,
60963
+ target,
60964
+ /*isCache*/
60965
+ false
60966
+ );
60971
60967
  const tupleizedType = checkArrayLiteral(
60972
60968
  node,
60973
60969
  1 /* Contextual */,
@@ -67690,15 +67686,25 @@ ${lanes.join("\n")}
67690
67686
  function isConstVariable(symbol) {
67691
67687
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
67692
67688
  }
67693
- function removeOptionalityFromDeclaredType(declaredType, declaration) {
67694
- if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
67695
- const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
67696
- popTypeResolution();
67697
- return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67698
- } else {
67699
- reportCircularityError(declaration.symbol);
67700
- return declaredType;
67689
+ function parameterInitializerContainsUndefined(declaration) {
67690
+ const links = getNodeLinks(declaration);
67691
+ if (links.parameterInitializerContainsUndefined === void 0) {
67692
+ if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
67693
+ reportCircularityError(declaration.symbol);
67694
+ return true;
67695
+ }
67696
+ const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
67697
+ if (!popTypeResolution()) {
67698
+ reportCircularityError(declaration.symbol);
67699
+ return true;
67700
+ }
67701
+ links.parameterInitializerContainsUndefined = containsUndefined;
67701
67702
  }
67703
+ return links.parameterInitializerContainsUndefined;
67704
+ }
67705
+ function removeOptionalityFromDeclaredType(declaredType, declaration) {
67706
+ const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
67707
+ return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67702
67708
  }
67703
67709
  function isConstraintPosition(type, node) {
67704
67710
  const parent2 = node.parent;
@@ -69016,11 +69022,13 @@ ${lanes.join("\n")}
69016
69022
  if (node.flags & 33554432 /* InWithStatement */) {
69017
69023
  return void 0;
69018
69024
  }
69019
- const index = findContextualNode(node);
69025
+ const index = findContextualNode(
69026
+ node,
69027
+ /*includeCaches*/
69028
+ !contextFlags
69029
+ );
69020
69030
  if (index >= 0) {
69021
- const cached = contextualTypes[index];
69022
- if (cached || !contextFlags)
69023
- return cached;
69031
+ return contextualTypes[index];
69024
69032
  }
69025
69033
  const { parent: parent2 } = node;
69026
69034
  switch (parent2.kind) {
@@ -69091,17 +69099,30 @@ ${lanes.join("\n")}
69091
69099
  }
69092
69100
  return void 0;
69093
69101
  }
69094
- function pushContextualType(node, type) {
69102
+ function pushCachedContextualType(node) {
69103
+ pushContextualType(
69104
+ node,
69105
+ getContextualType2(
69106
+ node,
69107
+ /*contextFlags*/
69108
+ void 0
69109
+ ),
69110
+ /*isCache*/
69111
+ true
69112
+ );
69113
+ }
69114
+ function pushContextualType(node, type, isCache) {
69095
69115
  contextualTypeNodes[contextualTypeCount] = node;
69096
69116
  contextualTypes[contextualTypeCount] = type;
69117
+ contextualIsCache[contextualTypeCount] = isCache;
69097
69118
  contextualTypeCount++;
69098
69119
  }
69099
69120
  function popContextualType() {
69100
69121
  contextualTypeCount--;
69101
69122
  }
69102
- function findContextualNode(node) {
69123
+ function findContextualNode(node, includeCaches) {
69103
69124
  for (let i = contextualTypeCount - 1; i >= 0; i--) {
69104
- if (node === contextualTypeNodes[i]) {
69125
+ if (node === contextualTypeNodes[i] && (includeCaches || !contextualIsCache[i])) {
69105
69126
  return i;
69106
69127
  }
69107
69128
  }
@@ -69124,7 +69145,11 @@ ${lanes.join("\n")}
69124
69145
  }
69125
69146
  function getContextualJsxElementAttributesType(node, contextFlags) {
69126
69147
  if (isJsxOpeningElement(node) && contextFlags !== 4 /* Completions */) {
69127
- const index = findContextualNode(node.parent);
69148
+ const index = findContextualNode(
69149
+ node.parent,
69150
+ /*includeCaches*/
69151
+ !contextFlags
69152
+ );
69128
69153
  if (index >= 0) {
69129
69154
  return contextualTypes[index];
69130
69155
  }
@@ -69395,11 +69420,7 @@ ${lanes.join("\n")}
69395
69420
  const elementCount = elements.length;
69396
69421
  const elementTypes = [];
69397
69422
  const elementFlags = [];
69398
- pushContextualType(node, getContextualType2(
69399
- node,
69400
- /*contextFlags*/
69401
- void 0
69402
- ));
69423
+ pushCachedContextualType(node);
69403
69424
  const inDestructuringPattern = isAssignmentTarget(node);
69404
69425
  const inConstContext = isConstContext(node);
69405
69426
  const contextualType = getApparentTypeOfContextualType(
@@ -69562,11 +69583,7 @@ ${lanes.join("\n")}
69562
69583
  let propertiesTable = createSymbolTable();
69563
69584
  let propertiesArray = [];
69564
69585
  let spread = emptyObjectType;
69565
- pushContextualType(node, getContextualType2(
69566
- node,
69567
- /*contextFlags*/
69568
- void 0
69569
- ));
69586
+ pushCachedContextualType(node);
69570
69587
  const contextualType = getApparentTypeOfContextualType(
69571
69588
  node,
69572
69589
  /*contextFlags*/
@@ -75577,14 +75594,19 @@ ${lanes.join("\n")}
75577
75594
  return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) || type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */));
75578
75595
  }
75579
75596
  function getContextNode2(node) {
75580
- if (node.kind === 289 /* JsxAttributes */ && !isJsxSelfClosingElement(node.parent)) {
75597
+ if (isJsxAttributes(node) && !isJsxSelfClosingElement(node.parent)) {
75581
75598
  return node.parent.parent;
75582
75599
  }
75583
75600
  return node;
75584
75601
  }
75585
75602
  function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) {
75586
75603
  const contextNode = getContextNode2(node);
75587
- pushContextualType(contextNode, contextualType);
75604
+ pushContextualType(
75605
+ contextNode,
75606
+ contextualType,
75607
+ /*isCache*/
75608
+ false
75609
+ );
75588
75610
  pushInferenceContext(contextNode, inferenceContext);
75589
75611
  const type = checkExpression(node, checkMode | 1 /* Contextual */ | (inferenceContext ? 2 /* Inferential */ : 0));
75590
75612
  if (inferenceContext && inferenceContext.intraExpressionInferenceSites) {
@@ -75925,7 +75947,12 @@ ${lanes.join("\n")}
75925
75947
  if (links.contextFreeType) {
75926
75948
  return links.contextFreeType;
75927
75949
  }
75928
- pushContextualType(node, anyType);
75950
+ pushContextualType(
75951
+ node,
75952
+ anyType,
75953
+ /*isCache*/
75954
+ false
75955
+ );
75929
75956
  const type = links.contextFreeType = checkExpression(node, 4 /* SkipContextSensitive */);
75930
75957
  popContextualType();
75931
75958
  return type;
@@ -139801,6 +139828,7 @@ ${lanes.join("\n")}
139801
139828
  sourceFile,
139802
139829
  symbol,
139803
139830
  symbolName2,
139831
+ moduleSymbol,
139804
139832
  /*isJsxTagName*/
139805
139833
  false,
139806
139834
  program,
@@ -139812,7 +139840,6 @@ ${lanes.join("\n")}
139812
139840
  const fix = getImportFixForSymbol(
139813
139841
  sourceFile,
139814
139842
  Debug.checkDefined(exportInfo),
139815
- moduleSymbol,
139816
139843
  program,
139817
139844
  /*position*/
139818
139845
  void 0,
@@ -139990,13 +140017,19 @@ ${lanes.join("\n")}
139990
140017
  return result && { ...result, computedWithoutCacheCount };
139991
140018
  }
139992
140019
  }
139993
- function getImportCompletionAction(targetSymbol, moduleSymbol, sourceFile, symbolName2, isJsxTagName, host, program, formatContext, position, preferences, cancellationToken) {
140020
+ function getImportCompletionAction(targetSymbol, moduleSymbol, exportMapKey, sourceFile, symbolName2, isJsxTagName, host, program, formatContext, position, preferences, cancellationToken) {
139994
140021
  const compilerOptions = program.getCompilerOptions();
139995
- const exportInfos = pathIsBareSpecifier(stripQuotes(moduleSymbol.name)) ? [getSingleExportInfoForSymbol(targetSymbol, moduleSymbol, program, host)] : getAllExportInfoForSymbol(sourceFile, targetSymbol, symbolName2, isJsxTagName, program, host, preferences, cancellationToken);
139996
- Debug.assertIsDefined(exportInfos);
140022
+ let exportInfos;
140023
+ if (exportMapKey) {
140024
+ exportInfos = getExportInfoMap(sourceFile, host, program, preferences, cancellationToken).get(sourceFile.path, exportMapKey);
140025
+ Debug.assertIsDefined(exportInfos, "Some exportInfo should match the specified exportMapKey");
140026
+ } else {
140027
+ exportInfos = pathIsBareSpecifier(stripQuotes(moduleSymbol.name)) ? [getSingleExportInfoForSymbol(targetSymbol, symbolName2, moduleSymbol, program, host)] : getAllExportInfoForSymbol(sourceFile, targetSymbol, symbolName2, moduleSymbol, isJsxTagName, program, host, preferences, cancellationToken);
140028
+ Debug.assertIsDefined(exportInfos, "Some exportInfo should match the specified symbol / moduleSymbol");
140029
+ }
139997
140030
  const useRequire = shouldUseRequire(sourceFile, program);
139998
140031
  const isValidTypeOnlyUseSite = isValidTypeOnlyAliasUseSite(getTokenAtPosition(sourceFile, position));
139999
- const fix = Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences));
140032
+ const fix = Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences));
140000
140033
  return {
140001
140034
  moduleSpecifier: fix.moduleSpecifier,
140002
140035
  codeAction: codeFixActionToCodeAction(codeActionForFix(
@@ -140018,23 +140051,22 @@ ${lanes.join("\n")}
140018
140051
  const includeSymbolNameInDescription = symbolName2 !== symbolToken.text;
140019
140052
  return fix && codeFixActionToCodeAction(codeActionForFix({ host, formatContext, preferences }, sourceFile, symbolName2, fix, includeSymbolNameInDescription, compilerOptions, preferences));
140020
140053
  }
140021
- function getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences) {
140022
- Debug.assert(exportInfos.some((info) => info.moduleSymbol === moduleSymbol || info.symbol.parent === moduleSymbol), "Some exportInfo should match the specified moduleSymbol");
140054
+ function getImportFixForSymbol(sourceFile, exportInfos, program, position, isValidTypeOnlyUseSite, useRequire, host, preferences) {
140023
140055
  const packageJsonImportFilter = createPackageJsonImportFilter(sourceFile, preferences, host);
140024
140056
  return getBestFix(getImportFixes(exportInfos, position, isValidTypeOnlyUseSite, useRequire, program, sourceFile, host, preferences).fixes, sourceFile, program, packageJsonImportFilter, host);
140025
140057
  }
140026
140058
  function codeFixActionToCodeAction({ description: description2, changes, commands }) {
140027
140059
  return { description: description2, changes, commands };
140028
140060
  }
140029
- function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, preferCapitalized, program, host, preferences, cancellationToken) {
140061
+ function getAllExportInfoForSymbol(importingFile, symbol, symbolName2, moduleSymbol, preferCapitalized, program, host, preferences, cancellationToken) {
140030
140062
  const getChecker = createGetChecker(program, host);
140031
140063
  return getExportInfoMap(importingFile, host, program, preferences, cancellationToken).search(importingFile.path, preferCapitalized, (name) => name === symbolName2, (info) => {
140032
- if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol) {
140064
+ if (skipAlias(info[0].symbol, getChecker(info[0].isFromPackageJson)) === symbol && info.some((i) => i.moduleSymbol === moduleSymbol || i.symbol.parent === moduleSymbol)) {
140033
140065
  return info;
140034
140066
  }
140035
140067
  });
140036
140068
  }
140037
- function getSingleExportInfoForSymbol(symbol, moduleSymbol, program, host) {
140069
+ function getSingleExportInfoForSymbol(symbol, symbolName2, moduleSymbol, program, host) {
140038
140070
  var _a2, _b;
140039
140071
  const compilerOptions = program.getCompilerOptions();
140040
140072
  const mainProgramInfo = getInfoWithChecker(
@@ -140056,7 +140088,7 @@ ${lanes.join("\n")}
140056
140088
  if (defaultInfo && skipAlias(defaultInfo.symbol, checker) === symbol) {
140057
140089
  return { symbol: defaultInfo.symbol, moduleSymbol, moduleFileName: void 0, exportKind: defaultInfo.exportKind, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };
140058
140090
  }
140059
- const named = checker.tryGetMemberInModuleExportsAndProperties(symbol.name, moduleSymbol);
140091
+ const named = checker.tryGetMemberInModuleExportsAndProperties(symbolName2, moduleSymbol);
140060
140092
  if (named && skipAlias(named, checker) === symbol) {
140061
140093
  return { symbol: named, moduleSymbol, moduleFileName: void 0, exportKind: 0 /* Named */, targetFlags: skipAlias(symbol, checker).flags, isFromPackageJson };
140062
140094
  }
@@ -148217,6 +148249,7 @@ ${lanes.join("\n")}
148217
148249
  if (originIsResolvedExport(origin)) {
148218
148250
  const resolvedData = {
148219
148251
  exportName: origin.exportName,
148252
+ exportMapKey: origin.exportMapKey,
148220
148253
  moduleSpecifier: origin.moduleSpecifier,
148221
148254
  ambientModuleName,
148222
148255
  fileName: origin.fileName,
@@ -148240,6 +148273,7 @@ ${lanes.join("\n")}
148240
148273
  const resolvedOrigin = {
148241
148274
  kind: 32 /* ResolvedExport */,
148242
148275
  exportName: data.exportName,
148276
+ exportMapKey: data.exportMapKey,
148243
148277
  moduleSpecifier: data.moduleSpecifier,
148244
148278
  symbolName: completionName,
148245
148279
  fileName: data.fileName,
@@ -148618,6 +148652,7 @@ ${lanes.join("\n")}
148618
148652
  const { moduleSpecifier, codeAction } = ts_codefix_exports.getImportCompletionAction(
148619
148653
  targetSymbol,
148620
148654
  moduleSymbol,
148655
+ data == null ? void 0 : data.exportMapKey,
148621
148656
  sourceFile,
148622
148657
  name,
148623
148658
  isJsxOpeningTagName,
@@ -149307,16 +149342,16 @@ ${lanes.join("\n")}
149307
149342
  if (detailsEntryId && !some(info, (i) => detailsEntryId.source === stripQuotes(i.moduleSymbol.name))) {
149308
149343
  return;
149309
149344
  }
149310
- const firstImportableExportInfo = find(info, isImportableExportInfo);
149311
- if (!firstImportableExportInfo) {
149345
+ info = filter(info, isImportableExportInfo);
149346
+ if (!info.length) {
149312
149347
  return;
149313
149348
  }
149314
149349
  const result = context.tryResolve(info, isFromAmbientModule) || {};
149315
149350
  if (result === "failed")
149316
149351
  return;
149317
- let exportInfo2 = firstImportableExportInfo, moduleSpecifier;
149352
+ let exportInfo2 = info[0], moduleSpecifier;
149318
149353
  if (result !== "skipped") {
149319
- ({ exportInfo: exportInfo2 = firstImportableExportInfo, moduleSpecifier } = result);
149354
+ ({ exportInfo: exportInfo2 = info[0], moduleSpecifier } = result);
149320
149355
  }
149321
149356
  const isDefaultExport = exportInfo2.exportKind === 1 /* Default */;
149322
149357
  const symbol = isDefaultExport && getLocalSymbolForExportDefault(exportInfo2.symbol) || exportInfo2.symbol;
@@ -6688,6 +6688,7 @@ declare namespace ts {
6688
6688
  * in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
6689
6689
  */
6690
6690
  exportName: string;
6691
+ exportMapKey?: string;
6691
6692
  moduleSpecifier?: string;
6692
6693
  /** The file name declaring the export's module symbol, if it was an external module */
6693
6694
  fileName?: string;
@@ -6697,7 +6698,6 @@ declare namespace ts {
6697
6698
  isPackageJsonImport?: true;
6698
6699
  }
6699
6700
  interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
6700
- /** The key in the `ExportMapCache` where the completion entry's `SymbolExportInfo[]` is found */
6701
6701
  exportMapKey: string;
6702
6702
  }
6703
6703
  interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {