File tree 1 file changed +13
-11
lines changed
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -3379,17 +3379,19 @@ module ts {
3379
3379
}
3380
3380
3381
3381
function pushTypePart ( symbolKind : string ) {
3382
- if ( symbolKind === ScriptElementKind . variableElement ||
3383
- symbolKind === ScriptElementKind . functionElement ||
3384
- symbolKind === ScriptElementKind . letElement ||
3385
- symbolKind === ScriptElementKind . constElement ||
3386
- symbolKind === ScriptElementKind . constructorImplementationElement ) {
3387
- displayParts . push ( textOrKeywordPart ( symbolKind ) ) ;
3388
- }
3389
- else {
3390
- displayParts . push ( punctuationPart ( SyntaxKind . OpenParenToken ) ) ;
3391
- displayParts . push ( textOrKeywordPart ( symbolKind ) ) ;
3392
- displayParts . push ( punctuationPart ( SyntaxKind . CloseParenToken ) ) ;
3382
+ switch ( symbolKind ) {
3383
+ case ScriptElementKind . variableElement :
3384
+ case ScriptElementKind . functionElement :
3385
+ case ScriptElementKind . letElement :
3386
+ case ScriptElementKind . constElement :
3387
+ case ScriptElementKind . constructorImplementationElement :
3388
+ displayParts . push ( textOrKeywordPart ( symbolKind ) ) ;
3389
+ return ;
3390
+ default :
3391
+ displayParts . push ( punctuationPart ( SyntaxKind . OpenParenToken ) ) ;
3392
+ displayParts . push ( textOrKeywordPart ( symbolKind ) ) ;
3393
+ displayParts . push ( punctuationPart ( SyntaxKind . CloseParenToken ) ) ;
3394
+ return ;
3393
3395
}
3394
3396
}
3395
3397
You can’t perform that action at this time.
0 commit comments