Write line after helpers

This commit is contained in:
Andrew Branch 2020-04-08 16:31:24 -07:00
parent 3d04ff490d
commit 926810b704
No known key found for this signature in database
GPG Key ID: 22CCA4B120C427D2

View File

@ -3684,7 +3684,9 @@ namespace ts {
const statements = node.statements;
pushNameGenerationScope(node);
forEach(node.statements, generateNames);
emitHelpers(node);
if (emitHelpers(node)) {
writeLine();
}
const index = findIndex(statements, statement => !isPrologueDirective(statement));
emitTripleSlashDirectivesIfNeeded(node);
emitList(node, statements, ListFormat.MultiLine, index === -1 ? statements.length : index);