File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2834,7 +2834,7 @@ namespace ts {
2834
2834
// Try to get qualified name if the symbol is not a type parameter and there is an enclosing declaration.
2835
2835
let chain: Symbol[];
2836
2836
const isTypeParameter = symbol.flags & SymbolFlags.TypeParameter;
2837
- if (!isTypeParameter && context.enclosingDeclaration) {
2837
+ if (!isTypeParameter && ( context.enclosingDeclaration || context.flags & NodeBuilderFlags.UseFullyQualifiedType) ) {
2838
2838
chain = getSymbolChain(symbol, meaning, /*endOfChain*/ true);
2839
2839
Debug.assert(chain && chain.length > 0);
2840
2840
}
Original file line number Diff line number Diff line change @@ -2571,7 +2571,6 @@ namespace ts {
2571
2571
WriteOwnNameForAnyLike = 1 << 4 , // Write symbol's own name instead of 'any' for any like types (eg. unknown, __resolving__ etc)
2572
2572
// TODO
2573
2573
WriteTypeArgumentsOfSignature = 1 << 5 , // Write the type arguments instead of type parameters of the signature
2574
- // TODO
2575
2574
UseFullyQualifiedType = 1 << 6 , // Write out the fully qualified type name (eg. Module.Type, instead of Type)
2576
2575
// TODO
2577
2576
UseTypeAliasValue = 1 << 7 , // Serialize the type instead of using type-alias. This is needed when we emit declaration file.
You can’t perform that action at this time.
0 commit comments