@@ -546,7 +546,7 @@ module.exports = function(ast, extra) {
546
546
typeArgument . end
547
547
] ,
548
548
loc : getLocFor ( typeArgumentStart , typeArgument . end , ast ) ,
549
- id : convertChild ( typeArgument . typeName )
549
+ id : convertChild ( typeArgument . typeName || typeArgument )
550
550
} ;
551
551
} )
552
552
} ;
@@ -1518,6 +1518,7 @@ module.exports = function(ast, extra) {
1518
1518
if ( ! lastClassToken || lastTypeParameter . pos > lastClassToken . pos ) {
1519
1519
lastClassToken = ts . findNextToken ( lastTypeParameter , ast ) ;
1520
1520
}
1521
+ result . typeParameters = convertTSTypeParametersToTypeParametersDeclaration ( node . typeParameters ) ;
1521
1522
}
1522
1523
1523
1524
if ( node . modifiers && node . modifiers . length ) {
@@ -1816,6 +1817,9 @@ module.exports = function(ast, extra) {
1816
1817
callee : convertChild ( node . expression ) ,
1817
1818
arguments : node . arguments . map ( convertChild )
1818
1819
} ) ;
1820
+ if ( node . typeArguments && node . typeArguments . length ) {
1821
+ result . typeParameters = convertTypeArgumentsToTypeParameters ( node . typeArguments ) ;
1822
+ }
1819
1823
break ;
1820
1824
1821
1825
case SyntaxKind . NewExpression :
@@ -1824,6 +1828,9 @@ module.exports = function(ast, extra) {
1824
1828
callee : convertChild ( node . expression ) ,
1825
1829
arguments : ( node . arguments ) ? node . arguments . map ( convertChild ) : [ ]
1826
1830
} ) ;
1831
+ if ( node . typeArguments && node . typeArguments . length ) {
1832
+ result . typeParameters = convertTypeArgumentsToTypeParameters ( node . typeArguments ) ;
1833
+ }
1827
1834
break ;
1828
1835
1829
1836
case SyntaxKind . MetaProperty :
0 commit comments