File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5274,7 +5274,10 @@ module ts {
5274
5274
break ;
5275
5275
default :
5276
5276
if ( isAnyFunction ( node ) && node . kind !== SyntaxKind . Constructor && ! ( < SignatureDeclaration > node ) . type ) {
5277
- result . push ( signatureDeclarationLikeToInlineInfo ( < SignatureDeclaration > node ) ) ;
5277
+ var signatureInlineInfo = signatureDeclarationLikeToInlineInfo ( < SignatureDeclaration > node ) ;
5278
+ if ( signatureInlineInfo ) {
5279
+ result . push ( signatureInlineInfo ) ;
5280
+ }
5278
5281
}
5279
5282
}
5280
5283
@@ -5302,6 +5305,10 @@ module ts {
5302
5305
var children = node . getChildren ( ) ;
5303
5306
var closeParen = forEach ( children , child => child . kind === SyntaxKind . CloseParenToken && child ) ;
5304
5307
5308
+ if ( ! closeParen ) {
5309
+ return undefined ;
5310
+ }
5311
+
5305
5312
var position = closeParen . getEnd ( ) ;
5306
5313
var signature = typeInfoResolver . getSignatureFromDeclaration ( node ) ;
5307
5314
var returnType = typeInfoResolver . getReturnTypeOfSignature ( signature ) ;
You can’t perform that action at this time.
0 commit comments