Sebastian McKenzie
7c3572f08c
fix linting errors
2015-06-06 03:38:12 +01:00
Sebastian McKenzie
9dacde6d07
further implement the concept of a "Hub" that all traversal paths get access to, also add in some assertions to confirm path state when performing manipulation
2015-06-06 03:34:08 +01:00
Sebastian McKenzie
8c3aab9a26
add support for async functions to type inferrence
2015-06-06 03:33:32 +01:00
Sebastian McKenzie
ba4550c953
switch some node-parent based stuff to path-based
2015-06-06 03:33:22 +01:00
Sebastian McKenzie
d0ac65a934
add _paths in t.inherits
2015-06-06 03:32:35 +01:00
Sebastian McKenzie
a4c70bb029
this commit makes the following changes to the way paths are handled:
...
- store paths on parents instead of containers
- implement one central hub that all traversal paths and scopes get access to in order to abstract out access to common functions
2015-06-06 03:32:22 +01:00
Sebastian McKenzie
6296f49653
update minification.constantFolding transformer to deopt bindings that are reassigned in a different function scope
2015-06-05 23:01:31 +01:00
Sebastian McKenzie
9f2b739046
improve Scope#dump to print binding info
2015-06-05 23:00:50 +01:00
Sebastian McKenzie
da1d5e5577
simplify unary resolution and move operators to types
2015-06-05 23:00:06 +01:00
Sebastian McKenzie
7333b4e392
move staticPropBody class concat to after className check in es6.classes transformer
2015-06-05 22:44:03 +01:00
Sebastian McKenzie
b0442d0784
add back shouldIgnore check that went missing around 32f19aff99559e36c3d4fbb946af378a8126b8bf - closes #1696 , fixes #1693
2015-06-05 22:43:32 +01:00
Sebastian McKenzie
295e69f8f8
fix auxiliaryComment option name for istanbul interop - fixes #1695
2015-06-05 22:40:28 +01:00
Sebastian McKenzie
cfe844fa39
add boolean type to experimental option
2015-06-05 22:36:16 +01:00
Sebastian McKenzie
0f4ea2d2a6
use file.log.deprecate instead of throwing an error - fixes #1694
2015-06-05 22:35:46 +01:00
Sebastian McKenzie
4b85b05839
use actual parameter reference for non-last default parameters - fixes #1690
2015-06-05 14:08:18 +01:00
Sebastian McKenzie
cd4f83b299
fix linting errors
2015-06-05 12:19:32 +01:00
Sebastian McKenzie
9dc03e0978
traverse over ClassProperty path rather than node
2015-06-05 12:17:55 +01:00
Sebastian McKenzie
bc4258eca9
add type inferrence for template literals
2015-06-05 12:17:45 +01:00
Sebastian McKenzie
9e8f4b25ca
add missing semicolon
2015-06-05 12:02:30 +01:00
Sebastian McKenzie
1cecd24823
make experimental warning more scary
2015-06-05 12:01:52 +01:00
Sebastian McKenzie
ec46eaf224
add scary experimental warning for people who use obscure transformers that are still WIP
2015-06-05 11:55:09 +01:00
Sebastian McKenzie
a102692103
when using babel/register always use the cwd - fixes #1689
2015-06-05 11:54:52 +01:00
Sebastian McKenzie
0376ec8ff0
t.isPure -> this.isPure - fixes #1688
2015-06-05 11:33:25 +01:00
Sebastian McKenzie
365e221d95
fix deoptValue binding boolean - fixes #1687
2015-06-05 09:55:47 +01:00
Sebastian McKenzie
acbc4859c0
only remove ClassProperty in flow transformer when it has no value
2015-06-05 09:53:59 +01:00
Sebastian McKenzie
55750e05e7
Revert "enable es6.spec.symbols by default"
...
This reverts commit f3acedbf08565a7b0b3796f6ef6fb95150359602.
2015-06-05 09:44:22 +01:00
Sebastian McKenzie
ba8a63a69e
remove trailing json comma
2015-06-05 09:42:53 +01:00
Sebastian McKenzie
25581981b5
always remove ClassProperty nodes in flow transformer - fixes #1686
2015-06-05 09:42:46 +01:00
Sebastian McKenzie
02a6feed73
update template literal parsing to properly handle newlines
2015-06-05 09:36:37 +01:00
Sebastian McKenzie
f3acedbf08
enable es6.spec.symbols by default
2015-06-05 08:43:41 +01:00
Sebastian McKenzie
e2ca03f92d
fix linting errors
2015-06-05 08:10:22 +01:00
Sebastian McKenzie
58059a2c48
add deoptValue method to Binding that ignores all subsequent setValue calls
2015-06-05 07:52:57 +01:00
Sebastian McKenzie
4c2936773a
update type inferrence to support unary operators
2015-06-05 07:47:22 +01:00
Sebastian McKenzie
c7c16ad9c1
add control flow support and deopt bindings on assignments that we can't understand
2015-06-05 07:46:32 +01:00
Sebastian McKenzie
7b676d608b
allow NodePaths to be returned in node removal/replacement methods and coerce them to nodes
2015-06-05 07:46:10 +01:00
Sebastian McKenzie
48ecec1e2e
move more transformers to builtin-pre group
2015-06-05 07:45:32 +01:00
Sebastian McKenzie
9dc72e71d4
add skipKey method to skip traversal of subsequent keys
2015-06-05 07:45:19 +01:00
Sebastian McKenzie
4a7a02b9af
rename builtin-setup transformer group to builtin-pre
2015-06-05 07:44:45 +01:00
Sebastian McKenzie
7cb460d2f3
add eval optional transformer
2015-06-05 07:44:29 +01:00
Sebastian McKenzie
0a7dac8744
move flow to builtin-trailing group
2015-06-05 07:44:15 +01:00
Sebastian McKenzie
667d595a73
use type inferrence to work out whether to wrap template literals with the String constructor
2015-06-05 07:43:58 +01:00
Sebastian McKenzie
2d2d957be5
add back ComprehensionBlock binding identifier keys and remove body form ComprehensionBlock visitor keys
2015-06-04 22:50:17 +01:00
Sebastian McKenzie
5aef7afade
fix remaining AssignmentExpression LHS ReferencedIdentifier bugs
2015-06-04 22:43:50 +01:00
Sebastian McKenzie
9aa17a6cc2
don't consider JSXIdentifier HTML tags to be references - fixes #1683
2015-06-04 22:23:24 +01:00
Sebastian McKenzie
0f13097f59
add basic naive constant folding of assignment expressions
2015-06-04 22:08:38 +01:00
Sebastian McKenzie
355ffbdaf8
don't consider the LHS of an AssignmentExpression to be a reference
2015-06-04 22:07:44 +01:00
Sebastian McKenzie
45b0d63d72
copy parent class binding to class in the collection visitor
2015-06-04 22:07:19 +01:00
Sebastian McKenzie
4ecda93147
move deprecated minification.inlineExpressions to aliases
2015-06-03 10:05:56 +01:00
Sebastian McKenzie
41847162b1
check if es7.exportExtensions ie enabled in parser
2015-06-03 10:05:39 +01:00
Sebastian McKenzie
0f7e010e3e
remove isSpecifierDefault check for ExportDefaultSpecifier - fixes #1673
2015-06-03 10:05:19 +01:00