This repository was archived by the owner on Jan 19, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +481
-3
lines changed
fixtures/typescript/basics Expand file tree Collapse file tree 3 files changed +481
-3
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ module.exports = function convert(config) {
112112 const firstTypeArgument = typeArguments [ 0 ] ;
113113 const typeArgumentsParent = firstTypeArgument . parent ;
114114 /**
115- * In the case of the parent being a CallExpression we have to use slightly different
116- * logic to calculate the correct end position
115+ * In the case of the parent being a CallExpression or a TypeReference we have to use
116+ * slightly different logic to calculate the correct end position
117117 */
118- if ( typeArgumentsParent && typeArgumentsParent . kind === SyntaxKind . CallExpression ) {
118+ if ( typeArgumentsParent && ( typeArgumentsParent . kind === SyntaxKind . CallExpression || typeArgumentsParent . kind === SyntaxKind . TypeReference ) ) {
119119 const lastTypeArgument = typeArguments [ typeArguments . length - 1 ] ;
120120 const greaterThanToken = nodeUtils . findNextToken ( lastTypeArgument , ast ) ;
121121 end = greaterThanToken . end ;
Original file line number Diff line number Diff line change 1+ class AudioBufferList {
2+ mBuffers : interop . Reference < any /*AudioBuffer*/ > ;
3+ }
You can’t perform that action at this time.
0 commit comments