@@ -140,12 +140,12 @@ namespace ts {
140140 function emitLeadingComments ( range : TextRange , leadingComments : CommentRange [ ] = getLeadingCommentsToEmit ( range ) ) {
141141 emitNewLineBeforeLeadingComments ( currentLineMap , writer , range , leadingComments ) ;
142142
143- // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space
143+ // Leading comments are emitted as ` /*leading comment1 */space/*leading comment*/space`
144144 emitComments ( currentText , currentLineMap , writer , leadingComments , /*trailingSeparator*/ true , newLine , writeComment ) ;
145145 }
146146
147147 function emitTrailingComments ( range : TextRange , trailingComments = getTrailingCommentsToEmit ( range ) ) {
148- // trailing comments are emitted at space/*trailing comment1 */space/*trailing comment*/
148+ // Trailing comments are emitted as ` space/*trailing comment1 */space/*trailing comment*/`
149149 emitComments ( currentText , currentLineMap , writer , trailingComments , /*trailingSeparator*/ false , newLine , writeComment ) ;
150150 }
151151
@@ -182,7 +182,7 @@ namespace ts {
182182 // get the leading comments from detachedPos
183183 const pos = lastOrUndefined ( detachedCommentsInfo ) . detachedCommentEndPos ;
184184 const leadingComments = getLeadingCommentRanges ( currentText , pos ) ;
185- if ( detachedCommentsInfo . length - 1 ) {
185+ if ( detachedCommentsInfo . length > 1 ) {
186186 detachedCommentsInfo . pop ( ) ;
187187 }
188188 else {
0 commit comments