@@ -2232,39 +2232,24 @@ namespace ts {
22322232
22332233 function typeFormatFlagsToNodeBuilderFlags(flags: TypeFormatFlags): NodeBuilderFlags {
22342234 let result = NodeBuilderFlags.None;
2235- if (flags & TypeFormatFlags.WriteArrayAsGenericType) {
2236- result |= NodeBuilderFlags.WriteArrayAsGenericType;
2237- }
2238- if (flags & TypeFormatFlags.UseTypeOfFunction) {
2239- result |= NodeBuilderFlags.UseTypeOfFunction;
2235+ if (flags === TypeFormatFlags.None) {
2236+ return result;
22402237 }
22412238 if (flags & TypeFormatFlags.NoTruncation) {
22422239 result |= NodeBuilderFlags.NoTruncation;
22432240 }
2244- if (flags & TypeFormatFlags.WriteArrowStyleSignature ) {
2245- result |= NodeBuilderFlags.WriteArrowStyleSignature ;
2241+ if (flags & TypeFormatFlags.UseFullyQualifiedType ) {
2242+ result |= NodeBuilderFlags.UseFullyQualifiedType ;
22462243 }
2247- if (flags & TypeFormatFlags.WriteOwnNameForAnyLike ) {
2248- result |= NodeBuilderFlags.WriteOwnNameForAnyLike ;
2244+ if (flags & TypeFormatFlags.SuppressAnyReturnType ) {
2245+ result |= NodeBuilderFlags.SuppressAnyReturnType ;
22492246 }
22502247 if (flags & TypeFormatFlags.WriteArrayAsGenericType) {
22512248 result |= NodeBuilderFlags.WriteArrayAsGenericType;
22522249 }
22532250 if (flags & TypeFormatFlags.WriteTypeArgumentsOfSignature) {
22542251 result |= NodeBuilderFlags.WriteTypeArgumentsOfSignature;
22552252 }
2256- if (flags & TypeFormatFlags.UseFullyQualifiedType) {
2257- result |= NodeBuilderFlags.UseFullyQualifiedType;
2258- }
2259- if (flags & TypeFormatFlags.UseTypeAliasValue) {
2260- result |= NodeBuilderFlags.UseTypeAliasValue;
2261- }
2262- if (flags & TypeFormatFlags.SuppressAnyReturnType) {
2263- result |= NodeBuilderFlags.SuppressAnyReturnType;
2264- }
2265- if (flags & TypeFormatFlags.AddUndefined) {
2266- result |= NodeBuilderFlags.AddUndefined;
2267- }
22682253
22692254 return result;
22702255 }
@@ -2893,7 +2878,6 @@ namespace ts {
28932878
28942879 function createEntityNameFromSymbolChain(chain: Symbol[], index: number): EntityName {
28952880 Debug.assert(chain && 0 <= index && index < chain.length);
2896- // const parentIndex = index - 1;
28972881 const symbol = chain[index];
28982882 let typeParameterNodes: TypeNode[] | undefined;
28992883 if (index > 0) {
0 commit comments