Commit Graph

  • fb0325a4d8 add support for SpreadElement to types.getIds Sebastian McKenzie 2014-11-04 18:33:48 +11:00
  • 1df25a633c fix code reference on generate Sebastian McKenzie 2014-11-04 18:33:33 +11:00
  • cfbaae456b use _push instead of push on template literals end Sebastian McKenzie 2014-11-04 18:32:51 +11:00
  • 95ace3220d fix indentation on generation comments tests Sebastian McKenzie 2014-11-04 18:32:30 +11:00
  • 2e0f3de72c add missing util require Sebastian McKenzie 2014-11-04 18:07:28 +11:00
  • 732c21d42a clean up some tests Sebastian McKenzie 2014-11-04 18:07:19 +11:00
  • a535007a35 clean up let scoping transformer and add lots of comments Sebastian McKenzie 2014-11-04 18:06:54 +11:00
  • 5ff6f445b2 fix class computed methods Sebastian McKenzie 2014-11-04 15:53:36 +11:00
  • d7ae3b506a fix linting errors Sebastian McKenzie 2014-11-04 15:53:11 +11:00
  • 287cbbb6a1 implement new and improved let scoping - fixes #91, fixes #102, fixes #124 Sebastian McKenzie 2014-11-04 14:59:44 +11:00
  • d1088583ba default generateUid scope to Program Sebastian McKenzie 2014-11-04 12:57:06 +11:00
  • c967cded78 make id optional in t.getIds Sebastian McKenzie 2014-11-04 12:56:53 +11:00
  • 71d87f5b97 cache scope ids and limit id variable declarations to kind Sebastian McKenzie 2014-11-04 12:56:37 +11:00
  • 56271efada pass scope to transformers Sebastian McKenzie 2014-11-04 12:48:08 +11:00
  • 89fbb06658 simplify VariableDeclaration ForStatement check Sebastian McKenzie 2014-11-04 12:47:56 +11:00
  • 43ee3b77f3 add SequenceExpression and UnaryExpression builders Sebastian McKenzie 2014-11-04 12:47:39 +11:00
  • 9ef826b53e move visitor-keys from traverse to types Sebastian McKenzie 2014-11-04 12:47:27 +11:00
  • 6519ceaa63 move util.getIds to types.getIds Sebastian McKenzie 2014-11-04 12:47:03 +11:00
  • d28496006e implement Scope so we can keep track of references to avoid collisions when generating ids Sebastian McKenzie 2014-11-04 12:46:47 +11:00
  • 5f9710e61f add explanation for gross Error.captureStackTrace polyfill Sebastian McKenzie 2014-11-04 12:45:17 +11:00
  • f82896a919 Merge branch 'computed-static-mutator-class-methods' of https://github.com/sebmck/acorn Sebastian McKenzie 2014-11-04 11:41:49 +11:00
  • 4f0c37eb68 Add support for computed static mutator class methods Sebastian McKenzie 2014-11-04 11:40:49 +11:00
  • c4cadd8a64 add text/6to5 to browser compilation script types Sebastian McKenzie 2014-11-04 09:13:50 +11:00
  • d3c5b8ef0b automatic browser <script type="text/ecmascript-6"> compilation - closes #97 Sebastian McKenzie 2014-11-04 08:56:48 +11:00
  • 120df2c611 make browser api backwards compatible Sebastian McKenzie 2014-11-04 08:22:44 +11:00
  • 719d23eb3b add Error.captureStackTrace polyfill so browser build will work in non-v8 environments - fixes #107 Sebastian McKenzie 2014-11-04 08:19:13 +11:00
  • 364abf60ea fix generation test whitespace Sebastian McKenzie 2014-11-04 08:05:09 +11:00
  • 0f5a141c91 change acorn-ast-types to ast-types Sebastian McKenzie 2014-11-04 08:04:41 +11:00
  • fca3a0c56f generator: add ensureSemicolon and printBlock methods Sebastian McKenzie 2014-11-04 08:04:32 +11:00
  • e88505aba6 better ExportDeclaration generation Sebastian McKenzie 2014-11-04 08:04:22 +11:00
  • 500a0bdfb6 better whitespace for blocks and methods Sebastian McKenzie 2014-11-04 08:04:11 +11:00
  • 2a0efceef5 change behaviour of tests and browser testing/build Sebastian McKenzie 2014-11-04 08:03:52 +11:00
  • 7f57741824 fix options.strictMode reference Sebastian McKenzie 2014-11-03 22:39:26 +11:00
  • 225754ae12 Merge branch 'master' into experimental Sebastian McKenzie 2014-11-03 21:18:50 +11:00
  • 6f230de01c fix maybeReplace wrong node callback bug Sebastian McKenzie 2014-11-03 21:17:56 +11:00
  • 3c3746b21f fix transformer alias types key Sebastian McKenzie 2014-11-03 21:17:42 +11:00
  • f49f057b33 generator: add trim option to isLast Sebastian McKenzie 2014-11-03 21:17:17 +11:00
  • e3b9a0dd38 update alias-functions transformer to use types Sebastian McKenzie 2014-11-03 21:16:15 +11:00
  • f540c3f4b7 fix test newlines Sebastian McKenzie 2014-11-03 21:15:58 +11:00
  • 6e5917e537 make array comprehensions use for-of unless using an array literal - fixes #98 Sebastian McKenzie 2014-11-03 21:15:49 +11:00
  • 816c1d304b remove builders and move them to automatially generated types Sebastian McKenzie 2014-11-03 21:13:35 +11:00
  • 5deeae1aa2 travis: ignore experimental branch Sebastian McKenzie 2014-11-03 18:26:50 +11:00
  • 718e342e86 fix classes supername transformer inference Sebastian McKenzie 2014-11-03 18:22:57 +11:00
  • cb98605520 add example usage for custom module formatters Sebastian McKenzie 2014-11-03 18:20:01 +11:00
  • 600513bcab add ignore module formatter - closes #119 Sebastian McKenzie 2014-11-03 18:18:51 +11:00
  • 620e5791af use t.is* methods to nicen up code Sebastian McKenzie 2014-11-03 18:10:52 +11:00
  • 47ee2cc99f simplify err.loc references Sebastian McKenzie 2014-11-03 17:53:08 +11:00
  • 6cc70f7465 compare code instead of ast for transformation tests Sebastian McKenzie 2014-11-03 17:52:59 +11:00
  • 20484c66c5 add types.inherits method that inherits loc, range, start, end etc Sebastian McKenzie 2014-11-03 17:52:50 +11:00
  • 171bcad870 make transformation tests compare output instead of ast Sebastian McKenzie 2014-11-03 17:52:15 +11:00
  • c963c30107 fix errorWithNode line mapping Sebastian McKenzie 2014-11-03 17:50:25 +11:00
  • 795183569d fix export default assignment bug Sebastian McKenzie 2014-11-03 14:40:47 +11:00
  • 9a3c973280 add removeLastNewline to generator and add newlines to generated nodes Sebastian McKenzie 2014-11-03 14:40:33 +11:00
  • 95f3ca6348 Merge branch 'master' into code-generator Sebastian McKenzie 2014-11-03 13:38:44 +11:00
  • c17878913b add classProps declaration to simplify/nicen up class property defining - closes #88 Sebastian McKenzie 2014-11-03 13:36:23 +11:00
  • c8139317ee add static property inherit warning for IE <= 9 to README - closes #116 Sebastian McKenzie 2014-11-03 13:09:36 +11:00
  • 6d6039aeb6 Merge branch 'master' into code-generator Sebastian McKenzie 2014-11-03 12:36:11 +11:00
  • 74f11dfddf add chai to devDependencies Sebastian McKenzie 2014-11-03 12:35:59 +11:00
  • 4c63b4ea1e Merge branch 'master' into code-generator Sebastian McKenzie 2014-11-03 12:34:15 +11:00
  • 6332e725fe update bin tests to match updated use strict behaviour Sebastian McKenzie 2014-11-03 12:34:00 +11:00
  • f3d371869d Merge branch 'master' into code-generator Sebastian McKenzie 2014-11-03 12:22:07 +11:00
  • 89ecd46b77 move _moduleFormatter transformer before useStrict transformer and remove duplicate use strict removing - fixes #114 Sebastian McKenzie 2014-11-03 12:20:29 +11:00
  • 9f8e8d96a8 simplify hasParans for NewExpression Sebastian McKenzie 2014-11-03 12:15:57 +11:00
  • a7bbd1dd3e generator: fix comments in harmony-edgecase tests Sebastian McKenzie 2014-11-03 12:15:44 +11:00
  • 6d961c1857 faster traverse.hasType with array of nodes Sebastian McKenzie 2014-11-03 12:15:27 +11:00
  • e13a650d05 remove IfStatement making consequent and alternate blocks Sebastian McKenzie 2014-11-03 11:17:36 +11:00
  • 3cd7ed69a3 remove useless blank template Sebastian McKenzie 2014-11-03 11:16:48 +11:00
  • 93c6d69e21 make transformation tests ignore whitespace Sebastian McKenzie 2014-11-03 11:15:06 +11:00
  • 57d3c836bd register: add additional blacklistTests Sebastian McKenzie 2014-11-03 11:14:52 +11:00
  • 115282d57b generator: add _push method to simplify buffer pushing and location tracking Sebastian McKenzie 2014-11-03 11:13:37 +11:00
  • 72d924d85b generator: fix NewExpression arguments Sebastian McKenzie 2014-11-03 11:12:30 +11:00
  • 6838062279 move util.errorWithNode to File Sebastian McKenzie 2014-11-03 11:11:37 +11:00
  • bc79cec15a add NewExpression support to needsParans Sebastian McKenzie 2014-11-03 11:11:07 +11:00
  • 85f0f6fb14 add whitespace option and move util.errorWithNode to File Sebastian McKenzie 2014-11-03 11:09:58 +11:00
  • bf61c1e85d remove recast and add ast-types Sebastian McKenzie 2014-11-03 11:09:24 +11:00
  • bd2e3d784f fix source-map transformation tests Sebastian McKenzie 2014-11-03 11:09:14 +11:00
  • 16063dd8b3 add strictMode option Sebastian McKenzie 2014-11-02 14:18:40 +11:00
  • 7e8c5cd20f Merge pull request #118 from amsul/patch-1 Sebastian McKenzie 2014-11-02 10:39:13 +11:00
  • ddbb522392 Updated blacklist option to replace reference amsul 2014-11-01 19:36:10 -04:00
  • 288cfd1f00 Added ability to register 6to5 with a blacklist amsul 2014-11-01 14:15:52 -04:00
  • 435b9434ea don't mess with the indentation of TemplateElements Sebastian McKenzie 2014-11-01 23:26:48 +11:00
  • 21900ae2b0 add acorn-jsx shoutout to readme Sebastian McKenzie 2014-11-01 23:18:01 +11:00
  • d6771b1cef update package.json Sebastian McKenzie 2014-11-01 23:17:32 +11:00
  • 62670e74cb remove readme Sebastian McKenzie 2014-11-01 23:17:25 +11:00
  • 2409b017db generator: remove parans around ConditionalExpression Sebastian McKenzie 2014-11-01 23:08:50 +11:00
  • 99f2864048 generator: remove redundant print call Sebastian McKenzie 2014-11-01 23:08:33 +11:00
  • 5351057557 generator: move BlockStatement to base generator Sebastian McKenzie 2014-11-01 23:08:16 +11:00
  • 1a5ee7d5da change acorn-jsx to acorn-6to5 Sebastian McKenzie 2014-11-01 23:07:53 +11:00
  • ebea86c527 split up types.ensureBlock into types.toBlock Sebastian McKenzie 2014-11-01 23:07:34 +11:00
  • bf58004947 generator: add intelligent whitespace based on tokens on nodes in a sequence Sebastian McKenzie 2014-11-01 23:07:17 +11:00
  • f0c78102ca move template literal generators into separate file Sebastian McKenzie 2014-11-01 19:37:21 +11:00
  • da1512eeb0 rename generation test names to be more descriptive Sebastian McKenzie 2014-11-01 19:34:16 +11:00
  • 43ea593677 traverse.removeProperties: remove raw property Sebastian McKenzie 2014-11-01 19:29:17 +11:00
  • 629cea497f move keyword method and restyle variable declarations Sebastian McKenzie 2014-11-01 19:29:02 +11:00
  • 9475dc681f finish jsx generator Sebastian McKenzie 2014-11-01 19:28:42 +11:00
  • 6e41309ede add err.stack test to code frame error capture Sebastian McKenzie 2014-11-01 19:28:35 +11:00
  • 42322e1ce7 add examples to types.needsParans tests Sebastian McKenzie 2014-11-01 19:27:42 +11:00
  • 400fa8ed97 remove unused ParenthesizedExpression Sebastian McKenzie 2014-11-01 19:27:23 +11:00
  • 07e2842226 implement array comprehension generator Sebastian McKenzie 2014-11-01 19:27:09 +11:00
  • 7d46b7c465 expose generator Sebastian McKenzie 2014-11-01 17:56:07 +11:00