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-11-15 21:30:22 -08:00
2015-11-09 17:58:36 -08:00
2015-11-15 21:30:22 -08:00
2015-07-16 15:46:31 +01:00
2015-12-16 15:32:32 -05:00
2015-11-09 04:03:59 -08:00
2014-12-16 22:17:35 -08:00
2015-02-16 14:36:57 +11:00
2015-12-06 06:48:40 -08:00
2015-11-11 23:24:39 -08:00
2015-12-06 11:30:07 -05:00
2015-12-16 12:24:45 -08:00

babel

The compiler for writing next generation JavaScript.

Travis Status CircleCI Status Coverage Status

Looking for support?

For questions and support please visit the discussion forum, Slack community, or StackOverflow.

Want to report a bug or request a feature?

Bugs and feature requests should be posted at phabricator.babeljs.io.

Want to report an issue with babeljs.io?

For documentation and website issues please visit the babel.github.io repo.

Description
No description provided
Readme 79 MiB
Languages
JavaScript 99.5%
Makefile 0.3%
HTML 0.1%