Henry Zhu
379be365d6
babel-generator: keep double quotes in StringLiteral for JSX parent (fixes T6859)
2015-12-19 22:12:41 -05:00
Amjad Masad
c889ef4058
Parenthesize arrow function when part of logical or binary expression
2015-12-17 23:18:43 -08:00
voideanvalue
2ac8e836f5
[babel-generator] fix unhandled new-precedence edge case
2015-12-16 12:51:13 -08:00
Amjad Masad
007ef5cdbb
Use the leftMost from the right to check if we need spaces in BinaryExpressions
2015-12-14 13:36:52 -08:00
Amjad Masad
07df8515b9
Parenthesize object expression when it could end up at the start of an expression T6811
2015-12-11 18:04:16 -08:00
Amjad Masad
cb03a98b65
Add minified format option
...
As a follow up from #3145 we agreed to add a new format that is a
superset of the compact format option. Do things that are considered
dangerous. e.g. not printing semicolons, or print literal values
as opposed to raw values.
2015-12-09 17:34:23 -08:00
Amjad Masad
4b99d18ea7
Only reprint in compact mode
2015-12-07 10:59:50 -08:00
Henry Zhu
6082ac8a59
skip nested new expressions
2015-12-05 14:19:31 -05:00
Henry Zhu
21f76655ad
account for parent NewExpression with arguments
2015-12-05 13:37:06 -05:00
Henry Zhu
8a1ad5350c
Merge pull request #3111 from amasad/new
...
No need for parens for new expressions without args
2015-12-05 13:33:23 -05:00
Amjad Masad
9c20ace184
Add support for null literal type
2015-12-03 23:58:25 -08:00
Amjad Masad
2efb677822
Add test cases with spaces
2015-12-01 10:47:25 -08:00
Amjad Masad
54a2a47030
Fix spacing in binary expression when right is a binary expression and has a unary on the left
2015-12-01 10:37:58 -08:00
Amjad Masad
486d781be3
Handle member expressions
2015-11-24 19:20:06 -08:00
Amjad Masad
f1f6c820fe
Handle new X()()
2015-11-24 19:12:24 -08:00
Amjad Masad
d32fae6fcd
No need for parens for new expressions without args
2015-11-24 19:07:03 -08:00
Amjad Masad
e4c5d9dcb3
Respect compact mode in spacing
2015-11-24 19:01:12 -08:00
Amjad Masad
44d5552840
Fix up semicolon omission in compact mode
2015-11-23 21:32:44 -08:00
Sebastian McKenzie
139a61e50d
account for integers with decimal 0 - fixes #3002
2015-11-11 22:11:47 -08:00
Paolo Moretti
f5bbd09b49
add fixtures for #2613
2015-11-03 18:05:22 +00:00
Sebastian McKenzie
7dc1b4e7e9
add ExistentialTypeParam - fixes #2587
2015-11-03 13:48:03 +00:00
Sebastian McKenzie
cdeff2fbb1
simplify parentheses logic and properly parenthesise unaries - fixes #2711
2015-11-03 10:49:24 +00:00
Sebastian McKenzie
ae7d5367f1
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
f88cc9d509
clean up babel-generator - closes #2210
2015-10-05 16:37:37 +01:00