Sebastian McKenzie
153e81261c
inherit string quotes - fixes #991
2015-03-31 02:09:56 +11:00
Sebastian McKenzie
b8f2a27e90
take export default specifiers into consideration in t.isSpecifierDefault
2015-03-31 01:41:04 +11:00
Sebastian McKenzie
2f25c3bd17
use users home directory to store babel/register cache - fixes #1093
2015-03-31 01:40:53 +11:00
Sebastian McKenzie
80fed5f395
take into consideration default export specifiers in common module formatter - fixes #1071
2015-03-31 01:27:43 +11:00
Sebastian McKenzie
1c7fabdd6d
add runtimeES3 transformer
2015-03-31 01:20:14 +11:00
Sebastian McKenzie
86cc5875cf
re-enable shit safari test #1121
2015-03-30 21:46:01 +11:00
Sebastian McKenzie
9ea999b261
clean up class property initializers, handle scope collisions in constructors
2015-03-30 20:32:14 +11:00
Sebastian McKenzie
f81e841283
don't block hoist in system module formatter when runtime transformer is enabled - #1105
2015-03-30 18:24:44 +11:00
Sebastian McKenzie
c4d68897b3
rename own binding inside constructor if it collides with our class reference - fixes #1077
2015-03-30 18:06:59 +11:00
Sebastian McKenzie
1641caedc4
retain binding values on iteration if reassigned - fixes #1078
2015-03-30 18:02:21 +11:00
Sebastian McKenzie
3d6e722fc7
fix es6.spec.blockScoping transformer reference
2015-03-30 16:58:51 +11:00
Sebastian McKenzie
253493a43f
fix es6.blockScopingTDZ transformer filename
2015-03-30 16:55:20 +11:00
Sebastian McKenzie
66471f044a
add deprecation alais for es6.blockScopingTDZ
2015-03-30 16:53:46 +11:00
Sebastian McKenzie
f3b50f0bb9
rename es6.blockScopingTDZ to es6.spec.blockScoping
2015-03-30 16:52:58 +11:00
Sebastian McKenzie
46462e3e69
add optional scope parameter to TraversalPath#hoist
2015-03-30 16:41:29 +11:00
Sebastian McKenzie
bc155f956c
add es6.spec.templateLiterals transformer and rename es6.symbols to es6.spec.symbols
2015-03-30 16:41:13 +11:00
Sebastian McKenzie
99e274921f
remove experimental option in favor of a stage option
2015-03-30 07:30:37 +11:00
Sebastian McKenzie
46d991e3e9
add nonStandard option - @stefanpenner
2015-03-30 06:41:55 +11:00
Sebastian McKenzie
8e1b6df970
properly handle export default shorthand, also consider export default foo; and export { foo as default } to be equivalent
2015-03-30 06:31:41 +11:00
Sebastian McKenzie
f9c8d7d1fd
fix incorrect interpreation of export default shorthand, update to new ast definitions - #1091
2015-03-30 06:08:37 +11:00
Sebastian McKenzie
42a2430d2c
add support for export extensions https://github.com/leebyron/ecmascript-more-export-from - closes #1091
2015-03-30 03:38:14 +11:00
Sebastian McKenzie
ca5daca5dd
add optimisation.react.constantElements transformer - facebook/react#3228
2015-03-30 01:22:45 +11:00
Sebastian McKenzie
3952eefd01
remove some dead code
2015-03-30 00:18:37 +11:00
Sebastian McKenzie
52c6fe2bc1
add a path hoisting mechanism that will hoist a node to it's highest compatible scope, a compatible scope is considered to be one where all references inside can be resolved to, also adds an optimisation.react.constantElements transformer that uses this to much success facebook/react#3226
2015-03-30 00:16:19 +11:00
Sebastian McKenzie
6a698f7ae4
move class property code gen to classes file
2015-03-29 19:31:02 +11:00
Sebastian McKenzie
2b0c07c2e7
only push the initializer function if required
2015-03-29 19:30:53 +11:00
Sebastian McKenzie
0dd32e7d9c
fix class decorator methods
2015-03-29 19:30:34 +11:00
Sebastian McKenzie
286ae68da2
make constants and module imports synonymous - closes #954
2015-03-29 17:36:23 +11:00
Sebastian McKenzie
e26f994075
add existence check when merging source map - fixes #1111
2015-03-29 17:17:43 +11:00
Sebastian McKenzie
94f005e324
clean up flow object type property semicolons
2015-03-29 17:14:46 +11:00
Sebastian McKenzie
93e37aaaf1
inherit comments from class method
2015-03-29 17:09:03 +11:00
Sebastian McKenzie
c9243e8e97
fixes #1114
...
- The visitor keys for `ObjectTypeAnnotation`s were incorrect so those nodes weren't being traversed so comments weren't attached for them.
- The type parser wasn't eating the semicolons for the nodes so the `end` location of each of the type properties wasn't accurate which threw off the code generation newline algorithm.
- Type properties hadn't been given the `UserWhitespacable` alias.
2015-03-29 16:44:36 +11:00
Sebastian McKenzie
7d95fddbed
add do expression definition to ast-types - fixes #1113
2015-03-29 16:10:07 +11:00
Sebastian McKenzie
22118c0be0
add Immutable alias keys
2015-03-29 01:50:45 +11:00
Sebastian McKenzie
3754f7615f
make insertBefore functionality the same as insertBefore in traversal path and add getStatementParent method
2015-03-29 01:50:36 +11:00
ArrestedDevelopment
4988a27b6c
JSX Transformer: Add 'jsxPragma' option
2015-03-28 01:41:16 -06:00
Sebastian McKenzie
d3971e0874
move es6.arrowFunctions transformer up
2015-03-28 05:38:31 +11:00
Sebastian McKenzie
07646475d9
fix spread binding with the wrong context
2015-03-28 05:37:38 +11:00
Sebastian McKenzie
9bc67c28e3
fix path api usage in es6.forOf
2015-03-28 05:37:15 +11:00
Sebastian McKenzie
c2990d3548
add array cache to es6.destructuring to avoid running toArray multiple times
2015-03-28 05:37:06 +11:00
Sebastian McKenzie
3f144e6e74
ensure that nodes are only traversed once per context
2015-03-28 04:34:05 +11:00
Sebastian McKenzie
afedfe15ae
fix external helper build script to reflect filename schema changes
2015-03-28 04:08:02 +11:00
Sebastian McKenzie
b522294d3c
fix helper slice filename
2015-03-28 04:07:44 +11:00
Sebastian McKenzie
de42a6f796
add existence check for child and parent when inheriting comments
2015-03-28 04:00:02 +11:00
Sebastian McKenzie
06a58f228c
add TraversalPath#replaceInline, fix traversal path not updating sibling keys correctly
2015-03-28 03:59:51 +11:00
Sebastian McKenzie
7a44576c26
cache rc json
2015-03-28 03:59:14 +11:00
Sebastian McKenzie
eaa3865427
remove es7.classProperties check from parser
2015-03-28 03:59:01 +11:00
Sebastian McKenzie
b83907cc67
restructure testing infrastructure to be more modular
2015-03-28 01:21:48 +11:00
Sebastian McKenzie
67a12f03fa
use replaceWithNodes rather than replace in es6.forOf transformer
2015-03-28 00:26:04 +11:00
Sebastian McKenzie
c828688d21
add existence check to t.inherits
2015-03-28 00:23:07 +11:00