Sebastian McKenzie
0e4bb5ee3f
clean up verifyConstructor classes visitor and disallow super.* before super() in derived class constructors - fixes #1921
2015-07-04 21:38:22 +02:00
Sebastian McKenzie
bd1bd38556
add undeclared type variable
2015-07-03 00:14:40 +02:00
Sebastian McKenzie
1f39114126
Merge branch 'master' into development
2015-07-03 00:07:53 +02:00
Sebastian McKenzie
4c0b8599f1
add optional context parameter to NodePath#get
2015-07-03 00:07:37 +02:00
Sebastian McKenzie
848909620c
add more comments to path methods
2015-07-03 00:07:23 +02:00
Sebastian McKenzie
c40215497d
Merge pull request #1900 from samccone/sjs/opt2
...
rework findCommonStringDelimiter
2015-07-02 23:54:52 +02:00
Sebastian McKenzie
6450f5263e
Merge pull request #1901 from loganfsmyth/constructor-scope-fix
...
Properly regenerate scope for replaced nodes - fixes #1773
2015-07-02 23:54:28 +02:00
Sam Saccone
74c59c94ce
⛳
2015-07-02 16:57:12 -04:00
Logan Smyth
3f38a83600
Properly regenerate scope for replaced nodes - fixes #1773
2015-07-01 22:06:05 -07:00
Sam Saccone
1945f849c3
Move ✅ into for block
...
https://www.youtube.com/watch?v=FHDwRECFL8M
2015-07-01 20:36:24 -07:00
Sam Saccone
5b0b7ba226
🍴 Switch to ternary for return
...
https://www.youtube.com/watch?v=XAbY2cmEsS0
2015-07-01 20:36:17 -07:00
James Kyle
42de6bc716
Merge pull request #1894 from samccone/patch-4
...
🐳
2015-07-02 01:06:50 +01:00
Sam Saccone
4a27b10e8a
👶
2015-07-01 15:56:11 -07:00
Sam Saccone
c3b5ed5b3d
💄 Fix grammatical issue
2015-07-01 15:51:56 -07:00
Sam Saccone
70c739250b
📝 better english
2015-07-01 15:48:00 -07:00
Sebastian McKenzie
910622e66e
fix linting errors
2015-06-30 15:17:26 +01:00
Sebastian McKenzie
c5a8702021
clean up derived classes, fixes super path referencing user constructor instead of our new function - #1877
2015-06-30 14:55:11 +01:00
Sebastian McKenzie
336c65fe2c
restructure classes transformer, fix class name inference - #1877
2015-06-30 14:49:04 +01:00
Sebastian McKenzie
092d98fb27
add constructor to body in order that it was supplied in - fixes #1877
2015-06-30 10:10:52 +01:00
Sebastian McKenzie
e55ce575cd
move up template literal simplification logic - fixes #1874
2015-06-29 23:36:06 +01:00
Sebastian McKenzie
d63ae5fce8
remove loose console.log
2015-06-29 22:59:23 +01:00
Sebastian McKenzie
541309c4bb
fix collisions for getBindingIdentifiers
2015-06-29 22:04:17 +01:00
Sebastian McKenzie
0044100e3d
perform function name inference on functions in properties before they're properly visited - fixes #1860
2015-06-29 00:20:47 +01:00
Sebastian McKenzie
54819b94e9
skip flow types when finding rest parameter references
2015-06-26 23:29:09 +01:00
Sebastian McKenzie
50ca6b1018
clean up inType tracking in flow parser plugin
2015-06-26 23:26:32 +01:00
Sebastian McKenzie
571b6a4cd7
check parent node alongside path in shadow functions
2015-06-26 11:39:10 +01:00
Sebastian McKenzie
41cf942391
clean up shadow functions findParent logic - fixes #1846
2015-06-26 11:34:13 +01:00
Sebastian McKenzie
6359675a4f
make shadowed function findParent target finder more reliable
2015-06-26 02:38:14 +01:00
Sebastian McKenzie
a265c3f25c
add missing semi
2015-06-26 02:25:46 +01:00
Sebastian McKenzie
29eb99ee93
rejigger shadowd function findParent logic
2015-06-26 02:24:42 +01:00
Sebastian McKenzie
0c5c1ff989
remove unused variable
2015-06-26 02:22:10 +01:00
Sebastian McKenzie
c0fd4c1f9e
merge es6.parameters.rest and es6.parameters.default transformers
...
This is necessary in order to retain correct function arity and to have
completely correct semantics. Sometimes features are tied together so much
that they would require so much desugaring to retain the correct semantics
that they'd be equivalent to... the normal transpiled output.
2015-06-26 02:20:16 +01:00
Sebastian McKenzie
e4083fbbd7
add support for trailing commas in arrow function parameter lists - fixes #1841
2015-06-26 00:37:33 +01:00
Sebastian McKenzie
19adcfae4d
add type import
2015-06-25 23:22:42 +01:00
Sebastian McKenzie
bbcb889a49
Merge branch 'master' of github.com:babel/babel
2015-06-25 23:04:24 +01:00
Sebastian McKenzie
c87f85815b
used filter rather than setting init properties to null in properties.computed transformer - fixes #1831
2015-06-25 23:04:17 +01:00
Sebastian McKenzie
48d0df17d0
Merge pull request #1832 from Mark-Simulacrum/path-exists
...
Use path-exists module instead of fs.exists.
2015-06-25 22:57:27 +01:00
Sebastian McKenzie
01b243347f
add NodePath#baseTypeStrictlyMatches method
2015-06-25 22:55:46 +01:00
Sebastian McKenzie
45a5cbf72f
use capitalised builder method
2015-06-25 22:55:35 +01:00
Sebastian McKenzie
05efae1c58
complete t.createTypeAnnotationBasedOnTypeof
2015-06-25 22:55:25 +01:00
Sebastian McKenzie
c08fff4b44
add node builder for normal AST node type
2015-06-25 22:55:12 +01:00
Sebastian McKenzie
13e910ea83
force spaces for binary expressions - fixes #1835
2015-06-25 22:55:00 +01:00
Mark-Simulacrum
b308602098
Use path-exists instead of fs.exists.
...
fs.exists is being deprecated, see: https://github.com/nodejs/io.js/issues/103 .
2015-06-25 12:39:39 -06:00
Sebastian McKenzie
560a044d8f
Merge pull request #1821 from kpdecker/destructure-performance
...
Avoid deopt in iterable destructure template
2015-06-25 15:23:53 +01:00
Sebastian McKenzie
619fbe4c3b
Merge pull request #1830 from kpdecker/avoid-define-property
...
Avoid defineProperty when not needed
2015-06-25 15:23:39 +01:00
kpdecker
1d83ad6cce
Avoid defineProperty when not needed
...
This lets us use the fast path for most object literal assignments and then utilizes the defineProperty path when there is a chance that we could hit the setter issue described in #357 .
10x performance boosts seen for the six-speed test case, going from 200k operations/sec to 2M ops/sec.
2015-06-25 09:22:03 -05:00
kpdecker
5353ccd773
Move slice iterator helper out of primary call
...
Avoids overhead of instantiating the helper on each call to the slice to array helper.
2015-06-25 09:18:12 -05:00
Sebastian McKenzie
95d830fde0
don't output comma separator for decorator list and output Property decorators - fixes #1811
2015-06-25 12:23:45 +01:00
Sebastian McKenzie
31c1286a3c
protect internal files from hotlinking
2015-06-25 12:10:22 +01:00
kpdecker
1b0e5b3ed1
Avoid deopt in iterable destructure template
...
The try/catch was forcing deoptimization under most engines. This roughly doubles throughput under V8 and 7x increases were seen under Firefox.
Performance numbers based on https://github.com/kpdecker/six-speed/tree/master/tests/destructuring
2015-06-24 22:42:13 -05:00