1604 Commits

Author SHA1 Message Date
Sebastian McKenzie
0188556b36 forbid function declarations that reference block scoped variables 2014-10-17 21:19:51 +11:00
Sebastian McKenzie
aeac003dc8 add util.ensureExpressionType which will change a node from a declaration to an expression 2014-10-17 11:48:25 +11:00
Sebastian McKenzie
41ab47dde8 allow let scope access within FunctionDeclaration, add _block-hoist helper transformer - fixes #77 2014-10-17 11:09:49 +11:00
Sebastian McKenzie
112932f9ee add jsx elements to traversal visitor keys 2014-10-17 09:18:29 +11:00
Sebastian McKenzie
45c8c29cdf add --ignore and --extensions flag to 6to5-node to compliment require hook options 2014-10-16 10:02:16 +11:00
Sebastian McKenzie
5b08924c02 add customisable extensions to require hook #75 2014-10-16 09:39:52 +11:00
Sebastian McKenzie
5db127e622 source-map support for 6to5/register 2014-10-15 21:52:03 +11:00
Sebastian McKenzie
045fb3e3d8 nicer sourceMapping test code 2014-10-15 14:34:07 +11:00
Sebastian McKenzie
4ea9b9c028 better exec tests 2014-10-15 14:28:51 +11:00
Sebastian McKenzie
32e3948b34 implement custom require ignore regex - closes #72 2014-10-15 11:39:18 +11:00
Markus Wolf
db1dae1024 Fixed regenerator runtime require 2014-10-14 19:48:01 +02:00
Sebastian McKenzie
7f6bf078c0 avoid duplicate let references - fixes #66 2014-10-14 18:14:25 +11:00
Sebastian McKenzie
31dbe2b0b0 add back register method and add polyfill method 2014-10-14 15:22:25 +11:00
Sebastian McKenzie
7fb023c2b0 move util.generate to File::generate 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
c9f56b838f return vanilla object instead of modifying the recast PrintResult 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
04466e3fea move code generation to new method 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
ef9060b0c3 remove unused register method 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
73b8daf370 add generators support via regenerator 2014-10-14 14:58:18 +11:00
Sebastian McKenzie
7db9abb9dd fix jshint errors 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
835cfd2a15 add hasSpread helper to spread transformer 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
e97086f5f7 always slice spread literals 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
3b22cb283b use templates instead of separate declarations logic 2014-10-14 14:58:17 +11:00
Sebastian McKenzie
6af0ffd97e nicer automatic reference variables for comptued property names and property method assignment #54 2014-10-14 08:50:34 +11:00
Sebastian McKenzie
1f61e7675b add file alias declarations so we can alias certain long function calls - resolves #62 2014-10-14 08:49:53 +11:00
Sebastian McKenzie
a9d101e3da support nested arrow functions - fixes #60 2014-10-14 08:07:03 +11:00
Sebastian McKenzie
0056b0fcd6 nicer exec test option 2014-10-13 20:13:20 +11:00
Sebastian McKenzie
d412f46696 rename util.isPattern to traverse.isPattern 2014-10-13 20:13:10 +11:00
Sebastian McKenzie
7bb53314a8 move util.isPattern to traverse.isPattern 2014-10-13 20:12:28 +11:00
ahomu
9f267e54a9 fix typo writable
s/writeable/writable
2014-10-13 17:18:56 +09:00
Sebastian McKenzie
5accf49ebf fix mutatormap property bug 2014-10-13 16:36:07 +11:00
Sebastian McKenzie
9d18905ce9 output shebang in transpiled code - fixes #55 2014-10-13 15:47:22 +11:00
Sebastian McKenzie
0859d0a122 fix uncovered branch in destructuring 2014-10-13 14:55:36 +11:00
Sebastian McKenzie
428d53a50d fix jshint errors 2014-10-13 14:45:22 +11:00
Sebastian McKenzie
453502b4f2 add Transformer class that deals with running a transformer against a File 2014-10-13 14:45:15 +11:00
Sebastian McKenzie
39959e5549 more traverse comments 2014-10-13 14:38:25 +11:00
Sebastian McKenzie
eaf98de962 normalise transformers to improve performance 2014-10-13 14:36:11 +11:00
Sebastian McKenzie
8b7d58fc1f add ignore to dotfile templates 2014-10-13 14:25:19 +11:00
Sebastian McKenzie
8bc182fdb5 use ast-types instead of using a template 2014-10-13 14:25:00 +11:00
Sebastian McKenzie
0ce6f21a14 remove unused templates 2014-10-13 14:24:47 +11:00
Sebastian McKenzie
e00ba1d8bb remove array comprehension if template as it's nastier than using ast-types 2014-10-13 14:11:20 +11:00
Sebastian McKenzie
964f50bdc8 remove ast-types dependency and use the exported recast ast-types 2014-10-13 14:11:08 +11:00
Sebastian McKenzie
0795693d97 nice alias function definitions 2014-10-13 12:45:52 +11:00
Sebastian McKenzie
f7a84c36cd inherit temporary computed property closure name from AssignmentExpressions and VariableDeclarators - #56 2014-10-13 12:25:40 +11:00
Sebastian McKenzie
51db2ee136 support shebangs - fixes #55 2014-10-13 11:55:33 +11:00
Sebastian McKenzie
4f14810321 remove completed todo 2014-10-13 05:35:59 +11:00
Sebastian McKenzie
3d2c41bb5a dry up array comprehension and arrow functions by introducing an alias-functions transformer 2014-10-13 05:35:26 +11:00
Sebastian McKenzie
a6ffde6e9b add traversal node aliases to be dry 2014-10-13 05:34:46 +11:00
Sebastian McKenzie
737c349775 add util.isReferenced to check if a node is directly referenced 2014-10-13 05:34:18 +11:00
Sebastian McKenzie
3bc5373bc2 fix node require 2014-10-13 05:33:52 +11:00
Sebastian McKenzie
79f2dbb8d7 better let scoping CallExpression comments and layout 2014-10-13 04:48:44 +11:00