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
Sebastian McKenzie
3878bd812c
remove native super inheritance from classes - fixes #1424
2015-05-03 23:45:26 +01:00
Sebastian McKenzie
0717eaddce
normalise Program replacement nodes
2015-05-03 23:35:39 +01:00
Sebastian McKenzie
102cbbe493
fix up crazy parse argument order
2015-05-03 23:31:37 +01:00
Sebastian McKenzie
d981b30194
clean up file transform pipeline
2015-05-03 23:26:37 +01:00
Sebastian McKenzie
0fc02f2cf0
add support for replacing nodes with expression source strings
2015-05-03 23:02:19 +01:00
Sebastian McKenzie
f0070e4828
ignore _generated FunctionDeclarations too in es6.spec.symbols transformer
2015-05-03 17:40:30 +01:00
Sebastian McKenzie
b30bdf2294
turn inserted helper declarations into function declarations if possible
2015-05-03 17:22:51 +01:00
Logan Smyth
74aaf848ed
Explicitly sort instead of relying on implementation-defined numeric key ordering - fixes #1405 .
2015-05-01 20:00:22 -07:00
Sebastian McKenzie
95de5400e6
remove dead if statement explosion code - fixes #1413
2015-05-01 23:30:26 +01:00
Sebastian McKenzie
fe7079802b
move deadCodeElimination transformer up - fixes #1409 , fixes #1408
2015-05-01 23:24:16 +01:00
Sebastian McKenzie
61ddb14e25
Merge branch 'master' of github.com:babel/babel
2015-05-01 23:14:58 +01:00
Sebastian McKenzie
ca7a93cd64
move utility.deadCodeElimination transformer to minification
2015-05-01 23:13:48 +01:00
Sebastian McKenzie
90a1c81d30
split up es3.xLiterals transformers - fixes #1415
2015-05-01 23:13:30 +01:00
Henry Zhu
1a716943bc
remove old references to jshint
2015-05-01 14:08:47 -04:00
Sebastian McKenzie
c28415c38a
handle shorthand objects properly when renaming bindings, create new ones and refresh the stored binding identifier if necessary - fixes #1406
2015-05-01 15:23:46 +01:00
Sebastian McKenzie
a2b912bc77
add BABEL mention to deprecation message
2015-05-01 13:07:31 +01:00
Sebastian McKenzie
f1bfbe44e2
expose Pipeline as TransformerPipeline
2015-05-01 13:00:34 +01:00
Sebastian McKenzie
dbdd07d0b8
fix addAliases call
2015-05-01 13:00:26 +01:00
Sebastian McKenzie
3353de225d
fix parse API not adding all the correct pipeline transformers
2015-05-01 11:39:38 +01:00
Sebastian McKenzie
16cdb43c67
expose transform pipeline and require node api inside of the browser one to avoid race conditions
2015-05-01 11:27:23 +01:00
Sebastian McKenzie
f155bc249c
fix Program global reference catching for real this time
2015-05-01 09:41:35 +01:00
Sebastian McKenzie
452d0ef30e
fix Program global reference catching
2015-05-01 09:40:03 +01:00
Sebastian McKenzie
005754ba98
Revert "Revert "make dead code elimination smarter and eliminate non-referenced "pure" nodes""
...
This reverts commit c3c4cf17e32c5dcba2034ab08f0c5a58aa20f277.
2015-05-01 09:39:33 +01:00
Sebastian McKenzie
c3c4cf17e3
Revert "make dead code elimination smarter and eliminate non-referenced "pure" nodes"
...
This reverts commit 4e87809ff904f170009418344d11772e6dec0e1b.
2015-05-01 09:39:07 +01:00
Sebastian McKenzie
15f5e658fc
Merge branch 'master' of github.com:babel/babel
2015-05-01 09:32:28 +01:00
Sebastian McKenzie
574e6da132
add Statement and Declaration aliases to flow types - fixes #1401
2015-05-01 09:32:11 +01:00