You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (links.extendedContainersByFile && (results = links.extendedContainersByFile.get(id))) {
2608
+
return results;
2609
+
}
2610
+
if (containingFile && containingFile.imports) {
2611
+
// Try to make an import using an import already in the enclosing file, if possible
2612
+
for (const importRef of containingFile.imports) {
2613
+
if (nodeIsSynthesized(importRef)) continue; // Synthetic names can't be resolved by `resolveExternalModuleName` - they'll cause a debug assert if they error
if (enclosingDeclaration && getAccessibleSymbolChain(container, enclosingDeclaration, SymbolFlags.Namespace, /*externalOnly*/ false)) {
2611
-
return concatenate([container], additionalContainers); // This order expresses a preference for the real container if it is in scope
2650
+
return concatenate(concatenate([container], additionalContainers), reexportContainers); // This order expresses a preference for the real container if it is in scope
2612
2651
}
2613
-
return append(additionalContainers, container);
2652
+
const res = append(additionalContainers, container);
InTypeAlias=1<<23,// Writing type in type alias declaration
3269
3273
InInitialEntityName=1<<24,// Set when writing the LHS of an entity name or entity name expression
3270
3274
InReverseMappedType=1<<25,
3271
-
3272
-
/* @internal */DoNotIncludeSymbolChain=1<<26,// Skip looking up and printing an accessible symbol chain
3273
3275
}
3274
3276
3275
3277
// Ensure the shared flags between this and `NodeBuilderFlags` stay in alignment
@@ -3650,6 +3652,8 @@ namespace ts {
3650
3652
originatingImport?: ImportDeclaration|ImportCall;// Import declaration which produced the symbol, present if the symbol is marked as uncallable but had call signatures in `resolveESModuleSymbol`
3651
3653
lateSymbol?: Symbol;// Late-bound symbol for a computed property
3652
3654
specifierCache?: Map<string>;// For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings
3655
+
extendedContainers?: Symbol[];// Containers (other than the parent) which this symbol is aliased in
3656
+
extendedContainersByFile?: Map<Symbol[]>;// Containers (other than the parent) which this symbol is aliased in
3653
3657
variances?: Variance[];// Alias symbol type argument variance cache
tests/cases/compiler/r/entry.ts(3,14): error TS2742: The inferred type of 'x' cannot be named without a reference to 'foo/node_modules/nested'. This is likely not portable. A type annotation is necessary.
!!! error TS2742: The inferred type of 'x' cannot be named without a reference to 'foo/node_modules/nested'. This is likely not portable. A type annotation is necessary.
0 commit comments