Skip to content

Commit f9b58e9

Browse files
author
Andy Hanson
committed
Rename flag
1 parent ba1c0d9 commit f9b58e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3230,7 +3230,7 @@ namespace ts {
32303230
buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, SymbolFlags.Type, SymbolFormatFlags.None, nextFlags);
32313231
}
32323232
else if (!(flags & TypeFormatFlags.InTypeAlias) && type.aliasSymbol &&
3233-
((flags & TypeFormatFlags.UseAliasEvenIfNotAccessible) || isTypeSymbolAccessible(type.aliasSymbol, enclosingDeclaration))) {
3233+
((flags & TypeFormatFlags.UseAliasDefinedOutsideCurrentScope) || isTypeSymbolAccessible(type.aliasSymbol, enclosingDeclaration))) {
32343234
const typeArguments = type.aliasTypeArguments;
32353235
writeSymbolTypeReference(type.aliasSymbol, typeArguments, 0, length(typeArguments), nextFlags);
32363236
}

src/compiler/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,8 +2691,8 @@ namespace ts {
26912691
AddUndefined = 1 << 13, // Add undefined to types of initialized, non-optional parameters
26922692
WriteClassExpressionAsTypeLiteral = 1 << 14, // Write a type literal instead of (Anonymous class)
26932693
InArrayType = 1 << 15, // Writing an array element type
2694-
UseAliasEvenIfNotAccessible = 1 << 16, // For a `type T = ... ` defined in a different file, write `T` instead of its value,
2695-
// even though `T` can't be accessed in the current scope.
2694+
UseAliasDefinedOutsideCurrentScope = 1 << 16, // For a `type T = ... ` defined in a different file, write `T` instead of its value,
2695+
// even though `T` can't be accessed in the current scope.
26962696
}
26972697

26982698
export const enum SymbolFormatFlags {

0 commit comments

Comments
 (0)