@@ -408,7 +408,7 @@ class Transformer extends Source {
408
408
optional :
409
409
nodeType === 'OptionalCallExpression' ? isOptionalType : undefined ,
410
410
start : getOuterStart ( tReceiver ) ,
411
- end : node . sourceSpan . end , // )
411
+ end : node . sourceSpan . end , // `)`
412
412
} ,
413
413
{ hasParentParens : isInParentParens } ,
414
414
) ;
@@ -421,7 +421,7 @@ class Transformer extends Source {
421
421
type : 'TSNonNullExpression' ,
422
422
expression : expression ,
423
423
start : getOuterStart ( expression ) ,
424
- end : node . sourceSpan . end , // !
424
+ end : node . sourceSpan . end , // `!`
425
425
} ,
426
426
{ hasParentParens : isInParentParens } ,
427
427
) ;
@@ -569,6 +569,8 @@ class Transformer extends Source {
569
569
end = templateLiteral . sourceSpan . end - 1 ;
570
570
} else {
571
571
const nextExpression = templateLiteral . expressions [ elementIndex ] ;
572
+ // TODO: Support search multiple characters in `getCharacterLastIndex()`
573
+ // FIXME: Search `${` instead
572
574
end = this . getCharacterLastIndex ( '$' , nextExpression . sourceSpan . start ) ;
573
575
}
574
576
const raw = this . text . slice ( start , end ) ;
0 commit comments