Ethan Han
f5ad86c5c6
Fix newlines before the update suffix operator in babel-generator ( #6259 )
2017-09-17 11:22:05 -07:00
Brian Ng
7f390b0282
Make terminator paren comment check more strict ( #5651 )
2017-09-15 11:06:24 -07:00
Henry Zhu
1c13250807
v7.0.0-beta.0
2017-09-11 23:01:41 -04:00
Daniel Tschinder
ca117e08cb
fix(requeue): Always requeue implicitely created BlockStatements ( #6193 )
...
This reverts the former fix done in #5743 and always requeues
BlockStatements when they get created.
This also fixes a bug in babel-generator which would indent code
even though no comments are present.
2017-09-02 01:02:21 -04:00
Henry Zhu
b82b65a31e
v7.0.0-alpha.20
2017-08-30 15:02:49 -04:00
Henry Zhu
0a4f1b0a6e
update babylon beta.22 ( #6167 )
2017-08-29 17:53:29 -04:00
Mateusz Burzyński
3c4f19a28d
Adjusted Object Rest/Spread tests to use only allowed syntax from the latest spec ( #6102 )
2017-08-24 15:50:43 -04:00
Andy
68d2f8d161
Add "classProperties" plugin to babel-generator typescript tests ( #6074 )
2017-08-08 17:38:39 -04:00
Henry Zhu
79f4956948
v7.0.0-alpha.19
2017-08-07 18:21:08 -04:00
Henry Zhu
a1debae8f0
babylon beta.19 ( #6053 )
2017-08-04 14:46:12 -04:00
Henry Zhu
79c6814d65
v7.0.0-alpha.18
2017-08-03 18:20:36 -04:00
jbrown215
4e9a25e34a
Flow opaque type aliases ( #5990 )
2017-08-02 16:30:19 -05:00
Henry Zhu
0f823beeb1
Newlines in fixtures ( #6044 )
...
* write newlines for fixtures
* rerun fixtures
2017-08-02 15:35:29 -04:00
Andy
e32042f353
babel-generator: Comment TypeScript-specific code ( #6026 )
2017-07-28 18:03:38 -04:00
Andy
c1d07fd6db
babel-generator: Add TypeScript support ( #5896 )
...
* babel-generator: Add TypeScript support
* Remove type declarations; not published from babylon
* Remove TODOs
* Consistently use `this.word` for tokens that are words
2017-07-28 16:07:05 -04:00
Andy
b242e0d946
babel-generator: Make plugins list explicit for test cases ( #6018 )
2017-07-26 15:46:47 -04:00
Henry Zhu
9322fd0458
v7.0.0-alpha.17
2017-07-26 08:38:44 -04:00
Henry Zhu
f01438e9b1
update devdeps to latest, update babylon ( #6012 )
...
* temporary flow strip measure
2017-07-26 07:57:49 -04:00
Henry Zhu
7f1cd44d60
v7.0.0-alpha.16
2017-07-25 17:35:35 -04:00
Andy
248743e6c5
babel-types: Add TypeScript definitions ( #5856 )
...
* babel-types: Add TypeScript definitions
* Add missing builders
* Allow arrow function to have "generator"
* Replace link to resolved issue with comment
* Re-add 'generator' to functionCommon
2017-07-25 11:42:25 -04:00
Brian Ng
9a1b8ea443
Add support for flow predicates in babel-generator ( #5984 )
2017-07-25 11:38:17 -04:00
Brian Ng
55aea26f13
Add support for export type star in babel-generator ( #5985 )
...
* Add support for export type star in babel-generator
* Bump babylon
2017-07-25 11:37:27 -04:00
MarckK
9fc910d8c0
Add optionality to catch bindings ( #5956 )
2017-07-25 09:38:48 -05:00
Daniel Tschinder
c9ed159a18
Update jsesc to the latest version ( #5995 )
2017-07-23 09:21:22 -04:00
Ryan Gaus
0b890ced19
Code generator tests ( #5847 )
2017-07-20 18:22:18 -04:00
Naveen jain
245c78dcdc
Added test cases for babel-generator ( #5934 )
...
* edited .gitignore to ignore all package-lock.json files
2017-07-20 11:39:26 -04:00
Justin Ridgewell
28ae47a174
Stop mutating nodes ( #5963 )
...
* Stop mutating nodes
* Update tests
* linting
2017-07-18 13:24:07 -04:00
Sarup Banskota
213ad1ed7a
[generator] remove parens from break & continue ( #5950 )
...
* Remove parens around break and continue
Fixes #5742
* Fix space in doc comment
* Add some tests
* Remove newlines within CommentBlock
* Prevent newline before/after label
* Remove reference to node
* Check for label within startTerminatorless
* Print block instead of single line comment
* Clean up
2017-07-17 09:30:28 -07:00
Sven SAULEAU
d82afb407e
Merge pull request #5949 from babel/unused-eslint-rule
...
remove unused ESLint rule
2017-07-14 11:51:36 +02:00
Sven SAULEAU
b858d7ce5e
chore: remove unused ESLint rule
2017-07-14 11:25:09 +02:00
Henry Zhu
a0f0411abf
v7.0.0-alpha.15
2017-07-11 23:35:22 -04:00
Henry Zhu
03f249430a
v7.0.0-alpha.14
2017-07-11 22:53:09 -04:00
Henry Zhu
8460b4c62f
v7.0.0-alpha.13
2017-07-11 22:27:56 -04:00
Brian Ng
58ec149c52
Fix some unneeded semis in test fixtures ( #5892 )
2017-06-27 22:15:10 -05:00
Daniel Tschinder
b3372a572d
Remove whitespace generation ( #5833 )
...
* Remove whitespace generation and rely on default printing
Changes to printing:
* Add newline after last empty SwitchCase
* Add newlines around block comments if they are non-flow comments or contain newlines
* Fix a few more fixtures
2017-06-27 21:57:02 -05:00
Henry Zhu
a4080dc095
update babylon
2017-06-27 17:17:41 -04:00
Brian Ng
e4b35f680d
Run prettier
2017-06-27 12:15:00 -05:00
Henry Zhu
89d8f70fcd
Merge pull request #5813 from jridgewell/pr/5786
...
Optional Chaining Operator (Stage 1)
2017-06-27 11:10:47 -04:00
Henry Zhu
ba671d0a66
update babel-eslint, try out numeric separators ( #5866 )
...
* update babel-eslint, try out numeric separators
* update version
2017-06-17 23:31:47 -04:00
Ryan Gaus
070662e381
Add tests for babel-generator ( #5845 )
...
Added two tests for src/generators/flow.js that check if a value is of
type `empty` or `mixed`.
2017-06-10 09:28:37 -04:00
Brian Ng
cce83a0cea
Fix parens issues with exponentiation in generator ( #5830 )
2017-06-09 11:10:16 -04:00
Daniel Tschinder
36ab72f095
Support declare export statements ( #5589 )
...
* Add definition of declare export statements
* Add more codecoverage
2017-06-08 23:15:54 +02:00
Justin Ridgewell
97d0ab78cb
Update babylon
2017-06-07 03:52:42 -04:00
Justin Ridgewell
f537fc7da7
Add babel-generator tests
2017-06-07 03:22:52 -04:00
Justin Ridgewell
d92309f0db
PR comments
2017-06-07 03:22:52 -04:00
Justin Ridgewell
85b6b4b1b2
Print optional chain operator
2017-06-07 03:22:51 -04:00
Henry Zhu
123dce5fcd
Hardcode to double quotes, indent to 2 spaces ( #5824 )
2017-06-05 22:14:37 -05:00
Nicolò Ribaudo
b0524427c1
Wrap an arrow function in parentheses if it the test of a conditional expression ( #5820 )
...
* Wrap an arrow function in parentheses if it the test of a conditional expression
Fixes #5819
* Use ConditionalExpresion to check if () => {} should be wrapped
* Move `t.isTaggedTemplateExpression()` from ArrowFunctionExpression to
ConditionalExpresion
* [test] `await (() => {})` needs the parentheses
* [test] (a ? b : c)`` needs the parentheses
2017-06-05 12:39:28 -04:00
Henry Zhu
c5bad22767
v7.0.0-alpha.12
2017-05-31 17:11:39 -04:00
Henry Zhu
ce976bba2a
v7.0.0-alpha.11
2017-05-31 16:43:30 -04:00