605 Commits

Author SHA1 Message Date
Sebastian McKenzie
d1c4945a13 clean up visitor verification 2015-11-08 06:03:11 -08:00
Sebastian McKenzie
0869d321b4 clean up _verifyNodeList error messages 2015-11-08 05:33:51 -08:00
Sebastian McKenzie
b5b9794b3f switch to symbols and add matches parent helper function to abstract out matching 2015-11-08 03:41:15 -08:00
Sebastian McKenzie
f1f42164fc add toString to allow reflection of original traversal methods when wrapping for state 2015-11-08 03:41:00 -08:00
phantom10111
22dc8f8323 Fix scope cache returning an item that was just inserted 2015-11-07 23:09:54 +01:00
phantom10111
e0f1bd76cb Fix clearNode clearing all properties instead of just symbols 2015-11-07 23:09:50 +01:00
Sebastian McKenzie
0370402a0d fix lint errors 2015-11-06 20:55:05 -05:00
Sebastian McKenzie
bb1703e1a1 add header comment for scope cache function 2015-11-06 20:53:12 -05:00
Sebastian McKenzie
e80c206591 clear and inherit all symbols and underscore propertes in t.inherits and traverse.removeProperties 2015-11-06 20:52:59 -05:00
Sebastian McKenzie
63cd3008d2 clean up parameter names in Scope constructor 2015-11-06 20:42:16 -05:00
Sebastian McKenzie
8dd292075a clean up scope cache 2015-11-06 20:39:16 -05:00
Sebastian McKenzie
f2215915ff v6.1.2 2015-11-05 11:10:22 +00:00
Sebastian McKenzie
f4fe578a6c add node existence check to NodePath#has - fixes #2800 2015-11-04 23:38:14 +00:00
Sebastian McKenzie
751c53b728 v6.0.20 2015-11-03 04:21:25 +00:00
Sebastian McKenzie
59ecfecb9e fix indentation and skip check for references that are inside the function we're checking execution status against 2015-11-03 04:17:38 +00:00
Sebastian McKenzie
072fffcbdf v6.0.19 2015-11-03 03:14:31 +00:00
Sebastian McKenzie
8ec3e16794 fix remaining outer binding identifier issues 2015-11-03 03:13:39 +00:00
Sebastian McKenzie
64a9a6027e refactor t.getOuterBindingIdentifiers to only return the id if it's a function declaration 2015-11-03 03:05:57 +00:00
Sebastian McKenzie
e72d4508de only use outer bindings when registering a binding to prevent retreiving function params - fixes #2615 2015-11-03 03:00:27 +00:00
Sebastian McKenzie
56e9805657 v6.0.18 2015-11-03 01:23:11 +00:00
Sebastian McKenzie
e62a00df50 rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral 2015-11-03 01:19:35 +00:00
Sebastian McKenzie
9bc95258e6 v6.0.17 2015-11-02 19:53:45 +00:00
Sebastian McKenzie
d1d0ed901e fix export of parameters when renaming the binding of exported functions - fixes #2753 2015-11-02 19:24:23 +00:00
Sebastian McKenzie
d730f349e6 v6.0.16 2015-11-02 07:13:43 +00:00
Sebastian McKenzie
6ccee750e3 check for path existence before checking that it's the correct instance 2015-11-02 06:42:48 +00:00
Sebastian McKenzie
24f5ef50b0 when we encounter a different NodePath instance, ignore it and create a new one. this is going to thrash the tree and memory but npm and node module resolution is atrociously bad 2015-11-02 06:36:07 +00:00
Sebastian McKenzie
34665bdfda v6.0.14 2015-10-30 23:30:40 +00:00
Sebastian McKenzie
37159fbc7d Merge branch 'master' of github.com:babel/babel 2015-10-30 19:17:19 +00:00
Sebastian McKenzie
255288cda5 fix babel-runtime dependencies - fixes #2655 2015-10-30 19:16:42 +00:00
James Kyle
6e3f61747b Update package.json 2015-10-30 11:37:59 -07:00
Sebastian McKenzie
a8cf46d8f4 v6.0.2 2015-10-29 18:06:55 +00:00
Sebastian McKenzie
b2af8af7c8 v6.0.0 2015-10-29 18:02:15 +00:00
Sebastian McKenzie
ae7d5367f1 6.0.0
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
6740561f91 remove comments from old node after inheriting from new one when replacing nodes - closes #2490, closes #2489 2015-10-05 16:27:17 +01:00
Sebastian McKenzie
fa88b1c00d abstract out scope binding rename and handle function/class cases where we can retain the name with some ~magic~ - fixes #2435 2015-09-28 02:45:00 +01:00
Sebastian McKenzie
0708edb927 it's now safe to use path.remove() 2015-09-18 18:41:44 +01:00
Sebastian McKenzie
6898cf83d0 don't allow visitor methods to return a new node to replace 2015-09-15 06:27:37 +01:00
Sebastian McKenzie
13773e3c02 change traversal visitor method signature from (node, parent, scope, state) to (path, state) 2015-09-15 06:27:19 +01:00
Sebastian McKenzie
8eeda9f75f add traverse.cheap and upgrade to new traverse API 2015-09-15 06:26:57 +01:00
Sebastian McKenzie
b91e8699e1 whitespace! 2015-09-15 06:26:30 +01:00
Sebastian McKenzie
f770f337a4 add Scope#buildUndefinedNode method 2015-09-02 18:06:23 +01:00
Sebastian McKenzie
6ff53e35f3 cap uids based on nodes at 20 characters - fixes #2225 2015-09-02 18:05:33 +01:00
Sebastian McKenzie
ac5dcf2884 add support for eslint colons in visitors 2015-09-01 05:00:38 +01:00
Sebastian McKenzie
68e1a442c5 don't deopt _guessExecutionStatusRelativeTo on specific function cases 2015-09-01 05:00:14 +01:00
Sebastian McKenzie
1895ee02b5 add Path#isStatic 2015-09-01 04:59:52 +01:00
Sebastian McKenzie
59f71a3a09 add validation to babel-types - fixes #1858 2015-09-01 04:58:11 +01:00
Sebastian McKenzie
15f73b4fc3 remove noisy comments/documentation 2015-09-01 04:56:03 +01:00
Sebastian McKenzie
8067aa65ab properly register a binding when pushing it to the scope 2015-08-27 16:28:59 -07:00
Sebastian McKenzie
56c2903811 fix duplicate declarations 2015-08-24 15:33:36 -04:00
Sebastian McKenzie
217a05ef9d add the ability to mark node paths 2015-08-24 15:33:27 -04:00