@@ -408,7 +408,7 @@ class Transformer extends Source {
408408 optional :
409409 nodeType === 'OptionalCallExpression' ? isOptionalType : undefined ,
410410 start : getOuterStart ( tReceiver ) ,
411- end : node . sourceSpan . end , // )
411+ end : node . sourceSpan . end , // `)`
412412 } ,
413413 { hasParentParens : isInParentParens } ,
414414 ) ;
@@ -421,7 +421,7 @@ class Transformer extends Source {
421421 type : 'TSNonNullExpression' ,
422422 expression : expression ,
423423 start : getOuterStart ( expression ) ,
424- end : node . sourceSpan . end , // !
424+ end : node . sourceSpan . end , // `!`
425425 } ,
426426 { hasParentParens : isInParentParens } ,
427427 ) ;
@@ -569,6 +569,8 @@ class Transformer extends Source {
569569 end = templateLiteral . sourceSpan . end - 1 ;
570570 } else {
571571 const nextExpression = templateLiteral . expressions [ elementIndex ] ;
572+ // TODO: Support search multiple characters in `getCharacterLastIndex()`
573+ // FIXME: Search `${` instead
572574 end = this . getCharacterLastIndex ( '$' , nextExpression . sourceSpan . start ) ;
573575 }
574576 const raw = this . text . slice ( start , end ) ;
0 commit comments