1620 Commits

Author SHA1 Message Date
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
Sebastian McKenzie
da4a5d48ad much better let scoping without wrapping functions #52 #49 #24 2014-10-13 04:37:28 +11:00
Sebastian McKenzie
b937db2121 generate sourcemap for register and save it 2014-10-13 03:28:56 +11:00
Sebastian McKenzie
184e82f718 add jshint and change root file from node.js to index.js 2014-10-13 03:28:36 +11:00
Sebastian McKenzie
252e9eea39 remove id from class template 2014-10-13 03:27:42 +11:00
Sebastian McKenzie
aa7c9488b0 hardcode aliasArguments 2014-10-13 03:27:27 +11:00
Sebastian McKenzie
fae60291b3 remove unused path variable 2014-10-13 03:27:01 +11:00
Sebastian McKenzie
99d626d23f add file class to simplify transforming 2014-10-13 03:26:49 +11:00
Sebastian McKenzie
8f587fa833 rename block binding to let scoping 2014-10-13 03:26:13 +11:00
Sebastian McKenzie
38fc5159a3 add support for ClassDeclaration and FunctionDeclaration read-only checking - fixes #53 2014-10-13 03:25:48 +11:00
Sebastian McKenzie
52d4d73f0b remove block binding because the current implementation is flaky and will have to be rewritten from scratch without the issue of wrapping functions 2014-10-12 16:18:18 +11:00
Sebastian McKenzie
73c491ecb4 better arguments aliasing for arrow functions, add it to block binding - fixes #52 2014-10-12 15:32:40 +11:00
Sebastian McKenzie
4a1496ee05 remove traversal and removal of EmptyStatements and add source map testing support 2014-10-12 13:42:27 +11:00
Sebastian McKenzie
86903f1087 remove unused formatJSON method, more reliable parse errors 2014-10-12 13:41:52 +11:00
Sebastian McKenzie
c3541a65cc remove null supername hack 2014-10-12 13:41:22 +11:00
Sebastian McKenzie
2e404c92c8 better support for Identifier in ForOfStatement 2014-10-12 13:39:59 +11:00
Sebastian McKenzie
bb697c6436 fix static member expression calls, make classes more spec-compliant 2014-10-12 13:39:10 +11:00
Sebastian McKenzie
5edbb63f9a more reliable super parsing in classes - fixes #51 2014-10-12 09:39:29 +11:00
Sebastian McKenzie
27cb0f6f87 fix blacklist traversal bug - fixes #49 2014-10-12 09:34:01 +11:00
Sebastian McKenzie
0f7da020e3 change obj references to a unique identifier 2014-10-12 00:23:13 +11:00
Sebastian McKenzie
16010575b5 add missing util tests and remove dead util methods 2014-10-11 23:39:56 +11:00
Sebastian McKenzie
2dbdb9e3a5 support patterns in constants 2014-10-11 23:31:53 +11:00
Sebastian McKenzie
01413e5153 recapture stack trace in case the stack was built prior 2014-10-11 22:40:09 +11:00
Sebastian McKenzie
9a8dfd105e add jsx to canCompile 2014-10-11 22:00:22 +11:00
Sebastian McKenzie
1571ba2045 add sourceMapName and sourceFileName options, make them default to the filename option - resolves #44 2014-10-11 15:01:42 +11:00
Sebastian McKenzie
298184763a remove ast option and always return it 2014-10-11 14:28:41 +11:00
Sebastian McKenzie
ab46a26508 treat arrow functions as another function type when transforming 2014-10-11 14:08:53 +11:00
Sebastian McKenzie
a40cbc2cee make class methods unenumerable - fixes #41 2014-10-11 11:49:03 +11:00
Sebastian McKenzie
3fb17b00a6 fix spread and super resolution - fixes #42 2014-10-11 10:44:51 +11:00
Sebastian McKenzie
603ae290cd check for absolute path before joining cwd in 6to5-node - fixes #43 2014-10-11 09:30:58 +11:00
Sebastian McKenzie
9b82c5b99c refer to parent arguments inside arrow functions - fixes #39 2014-10-11 09:29:00 +11:00
Sebastian McKenzie
35522c2ef3 static method class super references - fixes #40 2014-10-11 08:58:54 +11:00
Sebastian McKenzie
58da989164 fix super constructor call - fixes #34 2014-10-10 20:37:15 +11:00
Sebastian McKenzie
db490b4be7 fix getSpecifierName 2014-10-10 16:38:22 +11:00
Sebastian McKenzie
5534f99a96 add comments to display what module syntax each part handles 2014-10-10 16:05:41 +11:00