Sebastian McKenzie
b31c14c52a
Merge branch 'master' into single-pass
2015-05-08 00:24:33 +01:00
Sebastian McKenzie
78b72512cb
better verify the type of the new node before requeueing it and also stop current node traversal on skip
2015-05-08 00:24:04 +01:00
Sebastian McKenzie
2fbb3cad9f
add isUser and isGenerated path methods
2015-05-08 00:23:28 +01:00
Sebastian McKenzie
2621081a13
merge in astVisitor in runtime transformer - unsure why this was separate in the first place
2015-05-08 00:23:00 +01:00
Sebastian McKenzie
8daf95bf59
name additional methods that are now covered since the naming is done in tandem
2015-05-08 00:22:43 +01:00
Sebastian McKenzie
6e8ab16b25
run es6.spec.blockScoping transformer on exit rather than enter
2015-05-08 00:22:23 +01:00
Sebastian McKenzie
a5cda5caa7
hoist param declaration when performing tco - fixes #1478
2015-05-07 23:14:03 +01:00
Sebastian McKenzie
13a6c69668
add node existence check to each visitor call
2015-05-07 23:02:40 +01:00
Sebastian McKenzie
380293d030
add transformer dependencies - fixes #1477
2015-05-07 21:35:12 +01:00
Sebastian McKenzie
77aeebe2a8
add Super node type to ast-types patch
2015-05-07 20:11:37 +01:00
Sebastian McKenzie
c3a08d413f
attach auxiliary comment to function declaration helpers - fixes #1476
2015-05-07 20:11:31 +01:00
Sebastian McKenzie
23ac2319af
add Super node type to ast-types patch
2015-05-07 20:11:14 +01:00
Sebastian McKenzie
a1bc0704ab
attach auxiliary comment to function declaration helpers - fixes #1476
2015-05-07 20:11:02 +01:00
Sebastian McKenzie
0bbfd427af
do module formatter on program exit rather than entrance
2015-05-07 16:23:47 +01:00
Sebastian McKenzie
f17b268a71
do member expression and property literal conversion to computed on exit rather than on entrance
2015-05-07 16:23:33 +01:00
Sebastian McKenzie
9ffc265bea
don't requeue node unless the type has changed
2015-05-07 16:01:00 +01:00
Sebastian McKenzie
6f664ca64e
merge internal transformers into single traversal pass
2015-05-07 15:53:22 +01:00
Sebastian McKenzie
e83daf87d4
add this.stop() to secondary strict transformer #1465
2015-05-07 08:38:46 +01:00
Sebastian McKenzie
8ed90d3af2
ignore parameter bindings in minification.deadCodeElimination transformer - fixes #1464
2015-05-07 01:58:54 +01:00
Sebastian McKenzie
fc8540d88a
inherit destructuring param replacement ref from original param - fixes #1461
2015-05-06 16:29:54 +01:00
Sebastian McKenzie
bf0e4ede00
pass correct function scope to nameMethod.property when naming class methods - fixes #1456
2015-05-06 16:03:15 +01:00
Sebastian McKenzie
3757bc6b9a
reverse method decorators - fixes #1457
2015-05-06 15:57:21 +01:00
Christopher Monsanto
6a82eb5a5c
disallow async constructors -- fixes #1454
2015-05-06 02:50:11 -04:00
Sebastian McKenzie
a241300ff1
force plugins to be ran at all times - fixes #1450
2015-05-06 01:14:17 +01:00
Sebastian McKenzie
235726eee6
remove unnecessary descriptor.initializer check
2015-05-05 15:38:17 +01:00
Sebastian McKenzie
08183ef490
don't add descriptor if we can't find it
2015-05-05 15:37:24 +01:00
Sebastian McKenzie
cc5e4bce52
fix object/property decorator interop
2015-05-05 14:42:41 +01:00
Sebastian McKenzie
f441a7cae8
don't do pretty variable declaration formatting if retainLines is enabled
2015-05-05 14:04:51 +01:00
Sebastian McKenzie
fc2be81c43
expose retainLines option to CLI
2015-05-05 14:04:36 +01:00
Sebastian McKenzie
72e3cb9243
trigger a reference for export declarations
2015-05-05 08:54:51 +01:00
Sebastian McKenzie
5e5ede6058
move down _modules transformer
2015-05-05 08:54:38 +01:00
Sebastian McKenzie
d25944ea1f
move utility transformers to top - fixes #1440
2015-05-05 08:39:46 +01:00
Sebastian McKenzie
fce2aa8fa3
add support for esquery
2015-05-05 03:21:31 +01:00
Sebastian McKenzie
0112c63779
consolidate the concept of "virtual types"
2015-05-05 02:33:49 +01:00
Sebastian McKenzie
6a4e93bf0f
make visitor validation more anal, add node type wrappers, add mixin support to visitor explosion, allow visitor entrance/exit to provide an array of callbacks to use rather than limiting it to a single callback
2015-05-05 01:44:01 +01:00
Sebastian McKenzie
3289b33806
remove no self node replacement error
2015-05-05 00:13:07 +01:00
Sebastian McKenzie
f4b9faa6b3
clean up module declaration based UID generation - fixes #1437
2015-05-04 22:36:18 +01:00
Sebastian McKenzie
c1a6ff7f44
rename getModuleName option to getModuleId
2015-05-04 22:31:34 +01:00
Sebastian McKenzie
12d650e195
checkSelf() for destructuring catch clauses
2015-05-04 22:22:39 +01:00
Sebastian McKenzie
8fb58492df
fix default specifiers not taking into consideration sourced imports
2015-05-04 22:20:52 +01:00
Sebastian McKenzie
2c0c2f12df
avoid trying to replace a node with itself, antipattern!
2015-05-04 22:20:52 +01:00
Sebastian McKenzie
01e5354fd9
disallow replacing a node with itself
2015-05-04 22:20:52 +01:00
Jay Phelps
340e75eb59
Added getModuleName() option as a function, allowing you to manipulate the name as needed
2015-05-04 13:30:57 -07:00
Sebastian McKenzie
e6326332b6
properly coerce input code to string - fixes #1432
2015-05-04 15:08:18 +01:00
pangratz
92dd67856e
Fix bugs in replaceWithSourceString
...
This fixes 2 bugs within `replaceWithSourceString`:
- `code` is undefined as it should be `replacement`
- the expression of the parsed replacement hasn't been accessed correctly
2015-05-04 09:33:32 +02:00
Sebastian McKenzie
a2bb587e24
remove embedded jsx plugin and use acorn-jsx
2015-05-04 04:33:46 +01:00
Sebastian McKenzie
b8b70f2f4a
rejigger around parse mechanics
2015-05-04 03:57:28 +01:00
Sebastian McKenzie
a8a3f6d34d
Merge branch 'master' of github.com:babel/babel
2015-05-04 03:55:25 +01:00
Sebastian McKenzie
9847d226e1
add transform import - closes babel/babel-eslint#83
2015-05-04 03:54:58 +01:00
Sebastian McKenzie
3d48a16305
Merge pull request #1417 from loganfsmyth/fix-phantom-issue-1405
...
Explicitly sort instead of relying on key ordering.
2015-05-04 03:29:30 +01:00