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
d5e7b5616c
Merge branch 'master' of github.com:babel/babel
2015-06-04 22:23:42 +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
c515271fbd
Merge pull request #1677 from jmm/node_modules-robust3
...
Complete "Fix flawed require hook node_modules check" properly
2015-06-03 19:23:41 +01:00
Jesse McCarthy
6f3501876a
Add test for require-hook node_modules check.
2015-06-03 09:04:59 -04:00
Jesse McCarthy
f8afc5fa17
Revert "Add test for require-hook node_modules check."
...
This reverts commit 1488d88c81c4b8a31f96c0fb1045f3328302b2e2.
Wrong branch was accidentally merged. There is a better test.
2015-06-03 09:04:59 -04: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
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