Sebastian McKenzie
bc79cec15a
add NewExpression support to needsParans
2014-11-03 11:11:07 +11:00
Sebastian McKenzie
85f0f6fb14
add whitespace option and move util.errorWithNode to File
2014-11-03 11:09:58 +11:00
Sebastian McKenzie
bf61c1e85d
remove recast and add ast-types
2014-11-03 11:09:24 +11:00
Sebastian McKenzie
bd2e3d784f
fix source-map transformation tests
2014-11-03 11:09:14 +11:00
Sebastian McKenzie
7e8c5cd20f
Merge pull request #118 from amsul/patch-1
...
Added ability to register 6to5 with a blacklist
2014-11-02 10:39:13 +11:00
amsul
ddbb522392
Updated blacklist option to replace reference
2014-11-01 19:36:10 -04:00
amsul
288cfd1f00
Added ability to register 6to5 with a blacklist
...
Currently, to achieve this, I have to use this workaround:
```js
var to5 = require('6to5')
delete to5.transform.transformers.generators
require('6to5/register')
```
After this simple change, I can make it much nicer:
```js
require('6to5/register')({
blacklist: ['generators']
})
```
Cheers!
2014-11-01 14:15:52 -04:00
Sebastian McKenzie
435b9434ea
don't mess with the indentation of TemplateElements
2014-11-01 23:26:48 +11:00
Sebastian McKenzie
2409b017db
generator: remove parans around ConditionalExpression
2014-11-01 23:08:50 +11:00
Sebastian McKenzie
99f2864048
generator: remove redundant print call
2014-11-01 23:08:33 +11:00
Sebastian McKenzie
5351057557
generator: move BlockStatement to base generator
2014-11-01 23:08:16 +11:00
Sebastian McKenzie
1a5ee7d5da
change acorn-jsx to acorn-6to5
2014-11-01 23:07:53 +11:00
Sebastian McKenzie
ebea86c527
split up types.ensureBlock into types.toBlock
2014-11-01 23:07:34 +11:00
Sebastian McKenzie
bf58004947
generator: add intelligent whitespace based on tokens on nodes in a sequence
2014-11-01 23:07:17 +11:00
Sebastian McKenzie
f0c78102ca
move template literal generators into separate file
2014-11-01 19:37:21 +11:00
Sebastian McKenzie
da1512eeb0
rename generation test names to be more descriptive
2014-11-01 19:34:16 +11:00
Sebastian McKenzie
43ea593677
traverse.removeProperties: remove raw property
2014-11-01 19:29:17 +11:00
Sebastian McKenzie
629cea497f
move keyword method and restyle variable declarations
2014-11-01 19:29:02 +11:00
Sebastian McKenzie
9475dc681f
finish jsx generator
2014-11-01 19:28:42 +11:00
Sebastian McKenzie
6e41309ede
add err.stack test to code frame error capture
2014-11-01 19:28:35 +11:00
Sebastian McKenzie
42322e1ce7
add examples to types.needsParans tests
2014-11-01 19:27:42 +11:00
Sebastian McKenzie
400fa8ed97
remove unused ParenthesizedExpression
2014-11-01 19:27:23 +11:00
Sebastian McKenzie
07e2842226
implement array comprehension generator
2014-11-01 19:27:09 +11:00
Sebastian McKenzie
7d46b7c465
expose generator
2014-11-01 17:56:07 +11:00
Sebastian McKenzie
fcf6c9e066
generator: add isLast helper method
2014-11-01 17:53:01 +11:00
Sebastian McKenzie
a5523664fc
generator: add alternate support to IfStatement
2014-11-01 17:52:48 +11:00
Sebastian McKenzie
1841f5c8a0
v1.10.10
v1.10.10
2014-11-01 16:08:11 +11:00
Sebastian McKenzie
33f8988313
support for numeric literals with recast - fixes #117
2014-11-01 16:06:46 +11:00
Sebastian McKenzie
1d3544eadc
fix function generation spacing
2014-11-01 16:00:17 +11:00
Sebastian McKenzie
646bdfd04c
types.needsParans: add parent ExpressionStatement check for FunctionExpression
2014-11-01 15:58:44 +11:00
Sebastian McKenzie
aba9bba7db
generator: use new keyword method for keywords
2014-11-01 15:56:27 +11:00
Sebastian McKenzie
e77382582f
generator: add keyword method, remove __ident method and implement better position tracking
2014-11-01 15:56:10 +11:00
Sebastian McKenzie
af997b9945
Merge pull request #115 from djindjic/patch-1
...
Just a little info added
2014-11-01 08:39:33 +11:00
Aleksandar Djindjic
a2332f08bc
Just a little info added
...
I needed this and it maybe help to someone else
2014-10-31 14:58:46 +01:00
Sebastian McKenzie
bbffde374e
Merge branch 'master' into code-generator
2014-10-31 21:39:47 +11:00
Sebastian McKenzie
115dca56b6
v1.10.9
v1.10.9
2014-10-31 21:39:17 +11:00
Sebastian McKenzie
251e4d01c8
join together declarations in destructuring to return a single node if possible - fixes #113
2014-10-31 21:38:22 +11:00
Sebastian McKenzie
0fbf0e2a77
generator: add semicolon helper method, add optional printJoin iterator
2014-10-31 21:24:54 +11:00
Sebastian McKenzie
e8628ea1a7
add chai
2014-10-31 21:24:36 +11:00
Sebastian McKenzie
a5a8f08bb8
generator: implement missing node types
2014-10-31 21:23:45 +11:00
Sebastian McKenzie
d376bd3c0e
generator: remove redundant async tests
2014-10-31 21:23:31 +11:00
Sebastian McKenzie
20818b086c
generator: add support for modules
2014-10-31 21:22:56 +11:00
Sebastian McKenzie
f9ef1723a6
generator: add support for ForOfStatement
2014-10-31 21:22:43 +11:00
Sebastian McKenzie
6e7b8a14fe
remove comments in traverse.removeProperties
2014-10-31 21:22:28 +11:00
Sebastian McKenzie
622bb2e962
types: add more tests for optional paranthesis
2014-10-31 21:22:03 +11:00
Sebastian McKenzie
5c5348537d
generator: add support for method properties and computed keys and shorthand
2014-10-31 21:21:50 +11:00
Sebastian McKenzie
0def62b918
replace single quotes with double quotes in generaton tests
2014-10-31 21:21:26 +11:00
Sebastian McKenzie
530ad78428
fix & html entity in travis badge branch url - thanks @davidchambers
2014-10-31 11:51:49 +11:00
Sebastian McKenzie
daced12baa
add base for TemplateLiteral generator
2014-10-31 11:51:00 +11:00
Sebastian McKenzie
51f18a152e
fix test generation actual ast
2014-10-31 11:50:52 +11:00