add support for outputting flow types - fixes #665

This commit is contained in:
Sebastian McKenzie
2015-03-01 00:32:36 +11:00
parent fb04b2561f
commit e945f0d10f
61 changed files with 965 additions and 98 deletions

View File

@@ -43,7 +43,7 @@ export default class TraversalConext {
if (this.shouldFlatten) {
node[key] = flatten(node[key]);
if (key === "body") {
if (key === "body" || key === "expressions") {
// we can safely compact this
node[key] = compact(node[key]);
}