babel/packages
Amjad Masad 47b686b6fa Handle nested if statements with alternates in printer
Previously we saw a bug that when we have nested if statements
and an alternate then the generated code may confuse which
if statement the alternate belongs to.

e.g.

```
if (foo) if (bar) bar(); else baz();
```

But this was handled by looking at the consequent
and if it's an if we add a block. However we didn't
handle situations where it's not an if but the last
recursive statement is an if:

```
if (foo) while (bar) if (baz) baz(); else shoosh()
```

This handles it by recurring until we get the last
statement.
2015-12-17 22:41:55 -08:00
..
2015-12-04 22:56:51 +11:00
2015-12-10 17:20:27 -08:00
2015-12-04 22:56:51 +11:00
2015-12-10 17:20:27 -08:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-06 11:31:46 -05:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-13 23:01:37 -08:00
2015-12-04 22:56:51 +11:00
2015-12-14 14:11:36 -08:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 13:52:36 -05:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-04 22:56:51 +11:00
2015-12-14 14:11:36 -08:00
2015-12-04 22:56:51 +11:00
2015-12-14 14:11:36 -08:00
2015-12-16 12:24:45 -08:00
2015-12-16 12:24:45 -08:00
2015-10-29 17:51:24 +00:00

Woah, what's going on here?

A monorepo, muhahahahahaha. See the monorepo design doc for reasoning.