@@ -2846,7 +2846,7 @@ module ts {
2846
2846
else if ( signatureDeclaration . kind !== SyntaxKind . CallSignature && signatureDeclaration . name ) {
2847
2847
displayParts . push . apply ( displayParts , symbolToDisplayParts ( typeResolver , signatureDeclaration . symbol , sourceFile , /*meaning*/ undefined , SymbolFormatFlags . WriteTypeParametersOrArguments ) )
2848
2848
}
2849
- displayParts . push . apply ( displayParts , signatureToDisplayParts ( typeResolver , signature , sourceFile , TypeFormatFlags . NoTruncation | TypeFormatFlags . WriteTypeArgumentsOfSignature ) ) ;
2849
+ displayParts . push . apply ( displayParts , signatureToDisplayParts ( typeResolver , signature , sourceFile , TypeFormatFlags . WriteTypeArgumentsOfSignature ) ) ;
2850
2850
}
2851
2851
}
2852
2852
if ( symbolFlags & SymbolFlags . EnumMember ) {
@@ -2881,12 +2881,12 @@ module ts {
2881
2881
// If the type is type parameter, format it specially
2882
2882
if ( type . symbol && type . symbol . flags & SymbolFlags . TypeParameter ) {
2883
2883
var typeParameterParts = mapToDisplayParts ( writer => {
2884
- typeResolver . writeTypeParameter ( < TypeParameter > type , writer , enclosingDeclaration , TypeFormatFlags . NoTruncation | TypeFormatFlags . WriteUndefinedAndNullAsAny ) ;
2884
+ typeResolver . writeTypeParameter ( < TypeParameter > type , writer , enclosingDeclaration , TypeFormatFlags . WriteUndefinedAndNullAsAny ) ;
2885
2885
} ) ;
2886
2886
displayParts . push . apply ( displayParts , typeParameterParts ) ;
2887
2887
}
2888
2888
else {
2889
- displayParts . push . apply ( displayParts , typeToDisplayParts ( typeResolver , type , enclosingDeclaration , TypeFormatFlags . NoTruncation ) ) ;
2889
+ displayParts . push . apply ( displayParts , typeToDisplayParts ( typeResolver , type , enclosingDeclaration ) ) ;
2890
2890
}
2891
2891
}
2892
2892
else if ( symbolFlags & SymbolFlags . Function ||
@@ -2929,7 +2929,7 @@ module ts {
2929
2929
}
2930
2930
2931
2931
function addSignatureDisplayParts ( signature : Signature , allSignatures : Signature [ ] , flags ?: TypeFormatFlags ) {
2932
- displayParts . push . apply ( displayParts , signatureToDisplayParts ( typeResolver , signature , enclosingDeclaration , flags | TypeFormatFlags . NoTruncation | TypeFormatFlags . WriteTypeArgumentsOfSignature ) ) ;
2932
+ displayParts . push . apply ( displayParts , signatureToDisplayParts ( typeResolver , signature , enclosingDeclaration , flags | TypeFormatFlags . WriteTypeArgumentsOfSignature ) ) ;
2933
2933
if ( allSignatures . length > 1 ) {
2934
2934
displayParts . push ( spacePart ( ) ) ;
2935
2935
displayParts . push ( punctuationPart ( SyntaxKind . OpenParenToken ) ) ;
@@ -2944,7 +2944,7 @@ module ts {
2944
2944
2945
2945
function writeTypeParametersOfSymbol ( symbol : Symbol , enclosingDeclaration : Node ) {
2946
2946
var typeParameterParts = mapToDisplayParts ( writer => {
2947
- typeResolver . writeTypeParametersOfSymbol ( symbol , writer , enclosingDeclaration , TypeFormatFlags . NoTruncation | TypeFormatFlags . WriteUndefinedAndNullAsAny ) ;
2947
+ typeResolver . writeTypeParametersOfSymbol ( symbol , writer , enclosingDeclaration , TypeFormatFlags . WriteUndefinedAndNullAsAny ) ;
2948
2948
} ) ;
2949
2949
displayParts . push . apply ( displayParts , typeParameterParts ) ;
2950
2950
}
@@ -2978,7 +2978,7 @@ module ts {
2978
2978
kind : ScriptElementKind . unknown ,
2979
2979
kindModifiers : ScriptElementKindModifier . none ,
2980
2980
textSpan : new TypeScript . TextSpan ( node . getStart ( ) , node . getWidth ( ) ) ,
2981
- displayParts : typeToDisplayParts ( typeInfoResolver , type , getContainerNode ( node ) , TypeFormatFlags . NoTruncation ) ,
2981
+ displayParts : typeToDisplayParts ( typeInfoResolver , type , getContainerNode ( node ) ) ,
2982
2982
documentation : type . symbol ? type . symbol . getDocumentationComment ( ) : undefined
2983
2983
} ;
2984
2984
}
0 commit comments