Merge pull request #18348 from ubershmekel/no-space-after-comment

Remove trailing space from emitLeadingComment
This commit is contained in:
Ron Buckton
2017-11-08 18:34:51 -08:00
committed by GitHub
31 changed files with 33 additions and 33 deletions

View File

@@ -260,7 +260,7 @@ namespace ts {
}
}
function emitLeadingComment(commentPos: number, commentEnd: number, _kind: SyntaxKind, hasTrailingNewLine: boolean, rangePos: number) {
function emitLeadingComment(commentPos: number, commentEnd: number, kind: SyntaxKind, hasTrailingNewLine: boolean, rangePos: number) {
if (!hasWrittenComment) {
emitNewLineBeforeLeadingCommentOfPosition(currentLineMap, writer, rangePos, commentPos);
hasWrittenComment = true;
@@ -274,7 +274,7 @@ namespace ts {
if (hasTrailingNewLine) {
writer.writeLine();
}
else {
else if (kind === SyntaxKind.MultiLineCommentTrivia) {
writer.write(" ");
}
}