Sebastian McKenzie
bc5f2b9be6
add param to list of duplicate declaration kinds - fixes #1084
2015-03-26 00:48:17 +11:00
Sebastian McKenzie
aa1333123c
Merge branch 'master' into experimental
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-03-25 14:17:46 +11:00
Brian Donovan
ed6421876a
Clear bindings immediately inside the TCO loop.
...
We have to ensure that this happens before any potentially-hoisted
declarations from default parameters.
Closes #1080 .
2015-03-24 20:15:54 -07:00
Sebastian McKenzie
e60c9fba6a
better node injection mechanics that handle statement lists
2015-03-24 04:37:56 +11:00
Sebastian McKenzie
902db03e96
add loose mode to template literals
2015-03-24 03:34:42 +11:00
Sebastian McKenzie
de88b28988
add class property initializers, add more TraversalPath flexibility with additional node injection method
2015-03-24 03:34:34 +11:00
Sebastian McKenzie
0ee230d13c
coerce template literal expressions to strings - fixes #1065
2015-03-23 22:04:40 +11:00
Sebastian McKenzie
c12cfe3ed0
make method definitions with expression bodies illegal - fixes #1066
2015-03-23 20:24:32 +11:00
Sebastian McKenzie
1376f2f18f
move helper templates to a separate namespace
2015-03-23 17:26:54 +11:00
Sebastian McKenzie
5c41a33e41
save register cache on tick instead of sigint - fixes #1062
2015-03-23 17:26:08 +11:00
Sebastian McKenzie
01463faf36
remove apply-constructor helper from es6.spread transformer - fixes #1052
2015-03-23 16:51:14 +11:00
Sebastian McKenzie
b234603e24
add callDelegate transformation helper - fixes #1064
2015-03-23 16:47:17 +11:00
Sebastian McKenzie
c9974a42ea
remove legacy react metadata
2015-03-22 04:08:45 +11:00
Sebastian McKenzie
a87f6f6fdd
clean up statement to expression explosion
2015-03-22 04:08:35 +11:00
Sebastian McKenzie
e04ecc79c7
add support for class decorators
2015-03-22 04:07:38 +11:00
Sebastian McKenzie
3e26511fb2
remove ShadowFunctionExpression
2015-03-22 04:07:00 +11:00
Sebastian McKenzie
9c3493e02f
add do expressions
2015-03-22 04:06:15 +11:00
Sebastian McKenzie
a14e979897
use module syntax for strict module formatters
2015-03-21 15:27:32 +11:00
Sebastian McKenzie
70d068226a
add ability to explode a list of statements when trying to replace an expression - damn this is powerful and allows some SUPER cool scenarios
2015-03-21 15:26:55 +11:00
Sebastian McKenzie
30b1c0154d
update to modular acorn
2015-03-21 15:25:32 +11:00
Sebastian McKenzie
a602873281
update to latest acorn, better array shortcuts, don't add code frame to error message
2015-03-20 20:05:29 +11:00
Sebastian McKenzie
64f1c114c1
fix modules generation logic and remove dead node types
2015-03-19 03:17:28 +11:00
Sebastian McKenzie
4ac1a856ae
fix remaining issues in estree port
2015-03-19 02:59:44 +11:00
Sebastian McKenzie
0e68b6ca11
add highlightErrors option to parser options
2015-03-19 02:59:30 +11:00
Sebastian McKenzie
2dccc8c919
more estree updates - finish flow parsing
2015-03-19 01:48:44 +11:00
Sebastian McKenzie
fdea18a289
properly support iterators in sliced-to-array helper...
2015-03-19 01:47:19 +11:00
Sebastian McKenzie
c3bdecbd25
move arrow functions transformer to before function names
2015-03-19 01:46:53 +11:00
Sebastian McKenzie
ee63fb52b7
check whitelist for existence rather than length - #1044
2015-03-19 01:46:10 +11:00
Sebastian McKenzie
b166f35218
add typed arrays to native types list - #1043
2015-03-18 23:34:37 +11:00
Sebastian McKenzie
660d764390
remove loop check when aliasing breaks, continues etc - fixes #1051
2015-03-18 23:31:11 +11:00
Sebastian McKenzie
27206d6b7c
add complete list of native constructors
2015-03-18 23:27:14 +11:00
Sebastian McKenzie
34dc56b435
Merge branch 'master' into experimental
...
# Conflicts:
# src/babel/transformation/transformers/es7/abstract-references.js
# src/babel/transformation/transformers/playground/mallet-operator.js
# src/babel/transformation/transformers/playground/memoization-operator.js
# src/babel/types/index.js
2015-03-18 19:18:25 +11:00
Sebastian McKenzie
e30dd7042b
fix constructor spreading of collections #1043
2015-03-18 19:14:23 +11:00
Sebastian McKenzie
a46313903d
deprecate abstract references and remaining playground features
2015-03-18 19:08:05 +11:00
Sebastian McKenzie
68340b1288
add Promise to the list of native types - fixes #1043
2015-03-18 19:06:34 +11:00
Sebastian McKenzie
6a1b33b443
more updates to estree and new acorn
2015-03-18 19:02:15 +11:00
Sebastian McKenzie
df7524d909
update babel dev dependency and use for-of in sliced-to-array helper - fixes #1047
2015-03-18 19:01:58 +11:00
Sebastian McKenzie
2c39d406d1
move acorn into vendor
2015-03-18 19:01:30 +11:00
Sebastian McKenzie
2ff1a5d98b
Merge branch 'master' into experimental
...
# Conflicts:
# src/babel/transformation/transformers/internal/strict.js
2015-03-17 12:14:32 +11:00
Sebastian McKenzie
9b586c7587
add support for left side patterns in assignment pattern destructuring - fixes #1037
2015-03-17 12:03:13 +11:00
Sebastian McKenzie
67efb1b427
ignore this expressions in Scope#generateTempBasedOnNode - fixes #1033
2015-03-17 11:31:00 +11:00
Sebastian McKenzie
bc9c1ab61e
handle comments and use strict directives better - fixes #1030
2015-03-17 11:30:30 +11:00
Sebastian McKenzie
0e7fd0741d
inject transformer parser plugins
2015-03-17 11:26:06 +11:00
Sebastian McKenzie
4f00de50d6
remove playground code gen, remove react metadata, start update of modules to estree
2015-03-17 02:45:16 +11:00
Sebastian McKenzie
ec526f9224
embed acorn
2015-03-17 02:44:05 +11:00
Sebastian McKenzie
976e8c1cfd
ignore this expressions in Scope#generateTempBasedOnNode - fixes #1033
2015-03-17 02:20:54 +11:00
Sebastian McKenzie
4d965b0f46
consolidate transformer metadata, remove abstract references, make react transformer optional
2015-03-16 19:26:50 +11:00
Sebastian McKenzie
b1c5915ed3
remove playground
2015-03-16 16:56:24 +11:00
Sebastian McKenzie
d94bb2e048
handle comments and use strict directives better - fixes #1030
2015-03-16 13:07:28 +11:00
Sebastian McKenzie
25fa10e592
fix syntax errors
2015-03-16 02:00:19 +11:00