120 Commits

Author SHA1 Message Date
Sebastian McKenzie
d0fdd3bf41 remove comments transformer 2014-10-31 11:36:44 +11:00
Sebastian McKenzie
7c84af2ba8 remove optional computed property in b.memberExpression 2014-10-30 17:38:05 +11:00
Sebastian McKenzie
009d063790 just return constructor if only a constructor exists in classes 2014-10-30 17:37:51 +11:00
Sebastian McKenzie
1a3d306949 Merge branch 'master' into code-generator
Conflicts:
	package.json
2014-10-30 13:29:05 +11:00
Sebastian McKenzie
e797be518f move some util and traverse methods into types 2014-10-30 13:26:06 +11:00
Sebastian McKenzie
ea7ac4cd2d change acorn-ast-types to internal builders 2014-10-30 13:09:12 +11:00
Sebastian McKenzie
6768fc3800 add back regex.flags in unicode regex transformer 2014-10-30 12:15:12 +11:00
Sebastian McKenzie
cc094efe1b modify regex object instead of creating a new literal 2014-10-29 20:52:25 +11:00
Sebastian McKenzie
8f4a3f77a0 remove jsx known-tags and use the latest jsx known tag definition 2014-10-29 20:52:12 +11:00
Sebastian McKenzie
b31f3666c8 yank out acorn-recast and replace it with our own code generator 2014-10-29 20:51:52 +11:00
Brian Donovan
8cbb121e3f Fix typo. 2014-10-27 20:28:08 -07:00
Sebastian McKenzie
2cffad61fa more reliable destructuring building 2014-10-28 13:16:31 +11:00
Sebastian McKenzie
21ed438fd8 alias functions in scope call wrapping - fixes #99 2014-10-28 10:58:20 +11:00
Sebastian McKenzie
dcc5eaa95e support MemberExpressions in destructuring - fixes #100 2014-10-28 10:52:24 +11:00
Sebastian McKenzie
65ba4d35e7 fix jshint errors 2014-10-25 09:09:31 +11:00
Sebastian McKenzie
5f8420f23e move from ast-types and recast to acorn-ast-types and acorn-recast 2014-10-23 09:00:27 +11:00
Sebastian McKenzie
ce4220644d abstract subclassing into declaration #88 2014-10-23 08:59:52 +11:00
Sebastian McKenzie
1e6b8d80bb push to arguments instead of an array literal for jsx children 2014-10-22 21:44:08 +11:00
Sebastian McKenzie
73f65ae634 fix jshint spacing issues 2014-10-20 08:35:02 +11:00
Sebastian McKenzie
b8a80364df Revert "remove jsx and react transformers"
This reverts commit 4241227dbe683a529745ee6eb1107d0e25b3e555.
2014-10-19 19:46:18 +11:00
Sebastian McKenzie
ddefc09510 fix linting errors 2014-10-19 19:23:13 +11:00
Sebastian McKenzie
45bab5709f change require("recast").types to require("ast-types") 2014-10-19 17:52:41 +11:00
Sebastian McKenzie
fceff4b52f add amd module formatter #82 2014-10-19 17:05:24 +11:00
Sebastian McKenzie
209093a3f0 move ImportbatchSpecifier definition to modules transformer 2014-10-19 15:23:37 +11:00
Sebastian McKenzie
42a7973a9d add support for spreads anywhere in list - fixes #73 2014-10-19 14:52:37 +11:00
Sebastian McKenzie
1f274a3b95 monkeypatch in acorn instead of esprima - immediately fixes #38, fixes #67 @thejameskyle 2014-10-19 13:21:56 +11:00
Sebastian McKenzie
4241227dbe remove jsx and react transformers 2014-10-19 13:17:02 +11:00
Sebastian McKenzie
a1adca6b65 add support for custom module formatters - #82 2014-10-19 12:11:12 +11:00
James Kyle
9c784436f0 Fix for spread on computed context 2014-10-18 17:07:23 -07:00
Sebastian McKenzie
cc84b5e1a4 make use-strict a public transformer 2014-10-18 15:47:03 +11:00
Sebastian McKenzie
d3b088cc6d move declaration insertion to a hidden transformer, add tabWidth to recast prettyPrint 2014-10-18 15:45:22 +11:00
Sebastian McKenzie
234d9997c8 add "use strict" declaration - closes #78 2014-10-18 15:44:44 +11:00
Sebastian McKenzie
6c48e6cd66 add createClass displayName to react 2014-10-17 22:00:14 +11:00
Sebastian McKenzie
f06901ac05 add jsx and react transformer 2014-10-17 21:28:01 +11:00
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
7f6bf078c0 avoid duplicate let references - fixes #66 2014-10-14 18:14:25 +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
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
d412f46696 rename util.isPattern to traverse.isPattern 2014-10-13 20:13:10 +11:00
ahomu
9f267e54a9 fix typo writable
s/writeable/writable
2014-10-13 17:18:56 +09: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
8bc182fdb5 use ast-types instead of using a template 2014-10-13 14:25:00 +11:00