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
Sebastian McKenzie
8201ea0aa2
Merge branch 'master' of github.com:babel/babel
...
# Conflicts:
# src/babel/api/register/node.js
2015-06-03 07:26:46 +01:00
Sebastian McKenzie
a7848c1822
Merge branch 'jmm-node_modules-robust'
2015-06-03 07:26:19 +01:00
Sebastian McKenzie
d4abaeeecf
Merge branch 'node_modules-robust' of https://github.com/jmm/babel into jmm-node_modules-robust
2015-06-03 07:26:12 +01:00
Sebastian McKenzie
871a82df0a
Merge pull request #1665 from Jabher/master
...
Making babel able to run in node_modules directory
2015-06-03 07:25:22 +01:00
Sebastian McKenzie
ffbf5b0b47
convert property key to computed before checking if it's a displayName property in the react transformer builder - closes #1671
2015-06-02 23:08:46 +01:00
Sebastian McKenzie
9dcceaeb40
move minification.deadCodeElimination back to the builtin-setup transformer group
2015-06-02 17:08:49 +01:00
Sebastian McKenzie
556e58a4ab
register function declarations anyway as we may not have hit them
2015-06-02 17:08:31 +01:00
Sebastian McKenzie
b6c35743e6
add import types
2015-06-02 16:24:32 +01:00
Sebastian McKenzie
0abd34f7e6
Merge branch 'master' of github.com:babel/babel
2015-06-02 16:18:13 +01:00
Sebastian McKenzie
cafd7f8e39
add Infinity/NaN, string/number member expressions/calls and Math calls static evaluation
2015-06-02 16:18:08 +01:00
Sebastian McKenzie
43c0a0e65f
remove all non-function statements after completion statements in blocks
2015-06-02 16:16:36 +01:00
Sebastian McKenzie
7b359f46fd
rename minification.inlineExpressions to minification.constantFolding
2015-06-02 16:16:10 +01:00
Sebastian McKenzie
880827f6ce
Merge pull request #1669 from wincent/mixed-type
...
Add "mixed" Flow type
2015-06-02 16:15:23 +01:00
Greg Hurrell
0c300058a3
Add "mixed" Flow type
...
"mixed" is one of the base types listed here:
http://flowtype.org/docs/base-types.html
So this commit adds support for it.
2015-06-02 07:15:06 -07:00
Sebastian McKenzie
d35be22f7d
add support for resolving array expression elements
2015-06-02 00:32:18 +01:00
Sebastian McKenzie
ff8d90061f
add "istanbul ignore next" auxiliary comment when using istanbul compat mode for babel/register
2015-06-02 00:32:07 +01:00
Vsevolod Rodionov
e66109f9d0
Making babel able to run in node_modules directory (while still ignoring node_modules packages)
...
In case if app is installed by npm install <git tarball url> which is very comfortable thing (postinstall hooks, automatic package installation and so on) babel is unable to run over packages, e.g.
```
~/node_modules/some_app$ node-babel app.js
```
is crashing as babel do not want in node_modules directory.
relative path gives ability to check whether lib is in node_modules _relative_ to current app, so that if app is ran in node_modules by itself it will not be captured.
2015-06-01 14:55:51 -07:00
Sebastian McKenzie
1934c16f0f
don't use initializer property for decorators on concise methods in object literals
2015-06-01 22:32:04 +01:00
Sebastian McKenzie
012ac7d9ec
remove accidental console.log introduced in 80a7f1346090d1fc236b7eb6120a8236d0a0e6b9
2015-06-01 22:01:27 +01:00
Jesse McCarthy
efb3b04225
Make node_modules path check robust.
2015-06-01 16:54:56 -04:00
Jesse McCarthy
1488d88c81
Add test for require-hook node_modules check.
...
(Failing.)
2015-06-01 16:54:52 -04:00
Sebastian McKenzie
80a7f13460
register named method id as a reference to avoid collisions - fixes #1664
2015-06-01 21:53:34 +01:00
Sebastian McKenzie
8919fc22b1
only infer single identifier new expression callees
2015-06-01 21:52:54 +01:00
Sebastian McKenzie
b1273cb774
Merge pull request #1663 from pangratz/fix_for_referencesImport
...
Minor fix for `referencesImport`
2015-06-01 18:13:49 +01:00
pangratz
0843b8355e
Minor fix for referencesImport
2015-06-01 19:09:33 +02:00
Sebastian McKenzie
6457677fb4
add support for NewExpression and reference plain node
2015-06-01 17:29:02 +01:00
Sebastian McKenzie
f8a860bf21
remove unused import
2015-06-01 14:32:58 +01:00
Sebastian McKenzie
f2bed33db8
add type inference for ConditionalExpression, SequenceExpression, AssignmentExpression and add support for base type aliases in isTypeAnnotationGeneric method
2015-06-01 14:25:06 +01:00
Sebastian McKenzie
7d2c6525d8
flesh out type inferrence some more, rename some of the NodePath methods to be less ambiguous, remove dead Binding type methods
2015-06-01 14:01:14 +01:00
Sebastian McKenzie
de652dc747
change getBindingIdentifier keys to be just a string instead of an array
2015-06-01 12:06:36 +01:00
Sebastian McKenzie
9f1053212b
add EmptyStatement to t.toSequenceExpression
2015-06-01 12:06:16 +01:00
Sebastian McKenzie
76690a3deb
renamed Path#isPreviousType to isType
2015-06-01 12:05:42 +01:00
Sebastian McKenzie
50f2f2fc98
remove DoExpression statement parsing and clear labels and set inFunction to false when parsing DoExpression body - fixes #1658
2015-06-01 03:36:14 +01:00
Sebastian McKenzie
5c27234d19
change TCO BlockStatement visitor back to enter
2015-06-01 00:17:44 +01:00
Sebastian McKenzie
6f5d16f397
remove TCOable check
2015-06-01 00:14:12 +01:00
Sebastian McKenzie
e42a43e3d1
remove unnecessary strict helper
2015-05-31 23:40:59 +01:00
Sebastian McKenzie
bfd307cd57
move some visitors out of deoptimising enter method
2015-05-31 23:40:42 +01:00
Sebastian McKenzie
beb5ee1333
remove useless generator test helpers
2015-05-31 21:26:22 +01:00
Sebastian McKenzie
cde871555d
don't pass comments in tokens to estraverse
2015-05-31 21:26:12 +01:00
Sebastian McKenzie
51b0ffa7bf
prepend Comment to comment node types
2015-05-31 20:25:26 +01:00
Sebastian McKenzie
255c819727
optimise ES6 tail call transformer to only try TOC on functions that include a call to themselves
2015-05-31 15:40:41 +01:00
Sebastian McKenzie
152ccb2ce8
check if ObjectExpression has any gets/sets before filtering
2015-05-31 15:40:07 +01:00
Sebastian McKenzie
bdb3adfeea
revert parts of 07a992e
2015-05-31 09:47:27 +01:00
Sebastian McKenzie
236086bee5
ignore trailing commas when inferring newlines - fixes #1304
2015-05-31 09:46:05 +01:00
Sebastian McKenzie
1436753e6d
fix linting errors
2015-05-31 09:24:12 +01:00
Sebastian McKenzie
eadf8ef799
fix syntax error in helpers/parse
2015-05-31 09:20:16 +01:00
Sebastian McKenzie
f1e20cf6ff
remove useless comment
2015-05-31 09:16:34 +01:00
Sebastian McKenzie
82a0851526
push comments to token stream to avoid having to re-sort - #1486
2015-05-31 09:16:27 +01:00