Fixes to emit / format for codeFix (#18484)

This commit is contained in:
Andy
2017-09-14 14:30:50 -07:00
committed by GitHub
parent 21bbdd33c5
commit 0747b33038
6 changed files with 57 additions and 6 deletions

View File

@@ -2417,6 +2417,12 @@ namespace ts {
const isEmpty = isUndefined || start >= children.length || count === 0;
if (isEmpty && format & ListFormat.OptionalIfEmpty) {
if (onBeforeEmitNodeArray) {
onBeforeEmitNodeArray(children);
}
if (onAfterEmitNodeArray) {
onAfterEmitNodeArray(children);
}
return;
}