Skip to content

Commit 965b98f

Browse files
author
Arthur Ozga
committed
UseFullyQualifiedType
1 parent e43377d commit 965b98f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,7 @@ namespace ts {
28342834
// Try to get qualified name if the symbol is not a type parameter and there is an enclosing declaration.
28352835
let chain: Symbol[];
28362836
const isTypeParameter = symbol.flags & SymbolFlags.TypeParameter;
2837-
if (!isTypeParameter && context.enclosingDeclaration) {
2837+
if (!isTypeParameter && (context.enclosingDeclaration || context.flags & NodeBuilderFlags.UseFullyQualifiedType)) {
28382838
chain = getSymbolChain(symbol, meaning, /*endOfChain*/ true);
28392839
Debug.assert(chain && chain.length > 0);
28402840
}

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,7 +2571,6 @@ namespace ts {
25712571
WriteOwnNameForAnyLike = 1 << 4, // Write symbol's own name instead of 'any' for any like types (eg. unknown, __resolving__ etc)
25722572
// TODO
25732573
WriteTypeArgumentsOfSignature = 1 << 5, // Write the type arguments instead of type parameters of the signature
2574-
// TODO
25752574
UseFullyQualifiedType = 1 << 6, // Write out the fully qualified type name (eg. Module.Type, instead of Type)
25762575
// TODO
25772576
UseTypeAliasValue = 1 << 7, // Serialize the type instead of using type-alias. This is needed when we emit declaration file.

0 commit comments

Comments
 (0)