add switch case generated node whitespace

This commit is contained in:
Sebastian McKenzie 2014-11-11 15:24:40 +11:00
parent 59d918ea67
commit 0544e98fb1

View File

@ -80,6 +80,10 @@ Node.prototype.needsWhitespace = function (type) {
if (t.isProperty(node) && parent.properties[0] === node) {
return 1;
}
if (t.isSwitchCase(node) && parent.cases[0] === node) {
return 1;
}
}
if (type === "after") {