Sebastian McKenzie
1912d1b26a
remove ExportSpecifier from t.getBindingIdentifiers as it has none
2015-02-13 18:19:27 +11:00
Sebastian McKenzie
ce332b3384
fix module binding resolution - fixes #762
2015-02-13 17:37:35 +11:00
Brian Donovan
14267a788d
Fix a typo.
2015-02-12 19:12:09 -08:00
Brian Donovan
9ec9e13aeb
Update the jsdoc to indicate that key is optional.
2015-02-12 18:36:36 -08:00
Sebastian McKenzie
e7f6572a3b
track arrays to avoid turning something into an array multiple times - closes #757
2015-02-12 21:30:48 +11:00
Sebastian McKenzie
32316ad942
clean up t.is
2015-02-12 07:45:55 +11:00
Sebastian McKenzie
77fa8bf01c
fix isReferenced on AssignmentPattern
2015-02-11 20:14:21 +11:00
Sebastian McKenzie
56a953df64
add basic support for class property initializers - #619
2015-02-11 10:59:44 +11:00
chico
146835e0f1
fix broken code, lint and codestyle fixes
2015-02-10 18:16:54 +03:00
Sebastian McKenzie
897566ccb3
more reliable scope construction
2015-02-11 00:38:59 +11:00
Sebastian McKenzie
4df1b6700b
remove acorn node patching
2015-02-11 00:37:59 +11:00
Sebastian McKenzie
50f903caf7
proper optional builder keys
2015-02-11 00:13:27 +11:00
Sebastian McKenzie
0c1e1e757c
default optional builder keys to false
2015-02-11 00:02:51 +11:00
Sebastian McKenzie
ac098255be
fix allowPartial in t.buildMatchMemberExpression
2015-02-10 18:34:16 +11:00
Sebastian McKenzie
6266f5b924
finish minification.removeConsoleCall transformer #740
2015-02-10 17:56:31 +11:00
Sebastian McKenzie
b6d708caf2
add SpreadProperty to t.getBindingIdentifiers - fixes #734
2015-02-10 09:04:27 +11:00
Sebastian McKenzie
4ccbee4639
fix linting errors
2015-02-08 20:59:48 +11:00
Sebastian McKenzie
de6b608dda
add _declarations and _scopeInfo to t.inherits
2015-02-08 20:23:21 +11:00
Sebastian McKenzie
9afa3f6b58
add opts param to t.isReferencedIdentifier
2015-02-08 09:31:41 +11:00
Sebastian McKenzie
eb1ae70bfa
Merge pull request #701 from RReverser/master
...
Add tail recursion optimization.
2015-02-07 23:37:43 +11:00
Sebastian McKenzie
e06aac4783
Revert "make export { foo as default }; trigger common interop"
...
This reverts commit 07c7b5b419a99802e2949b72c5cbf6ee4010929a.
2015-02-07 19:40:49 +11:00
Sebastian McKenzie
07c7b5b419
make export { foo as default }; trigger common interop
2015-02-07 19:29:59 +11:00
Sebastian McKenzie
a051a47048
reorder types requires
2015-02-07 08:11:42 +11:00
Ingvar Stepanyan
5b2216b348
Add tail recursion optimization.
...
As per ES6, VMs should perform tail call optimization and prevent growth of call stack.
This adds tail call optimization for recursion case (when function has explicit name and calls itself in `return`).
Cross-function optimization is not currently performed as it's more complicated and requires value tracking.
2015-02-06 16:34:35 +02:00
Sebastian McKenzie
7d950cd60a
i made the javascripts faster with a transformer prepass to check what transformers actually have to be ran
2015-02-04 12:56:34 +11:00
Sebastian McKenzie
c35f041091
simplify to.isFalsyExpression method
2015-02-04 08:25:40 +11:00
Sebastian McKenzie
239369314c
more scope refactoring - fixes #676
2015-02-03 20:06:27 +11:00
Sebastian McKenzie
630f1717f0
clean up scope collision tracking and constants transformer - fixes #331
2015-02-03 13:20:52 +11:00
Sebastian McKenzie
b2ad79cf88
rename t.getDeclarations to the WAY more reflective t.getBindingIdentifiers
2015-02-03 12:03:21 +11:00
Sebastian McKenzie
0b33a62032
fix linting errors
2015-02-02 10:48:18 +11:00
Sebastian McKenzie
18b836c16a
add allowPartial option to t.buildMatchMemberExpression, fix t.isReferenced on Property nodes - fixes #656
2015-02-02 10:44:56 +11:00
Sebastian McKenzie
9fe1e37ca7
fix t.buildMatchMemberExpression
2015-02-02 01:41:39 +11:00
Sebastian McKenzie
8a9aac3e68
fix linting errors
2015-02-02 01:37:27 +11:00
Sebastian McKenzie
27138abd29
simplify member expression checking, flesh out react component optimiser #653
2015-02-02 01:30:06 +11:00
Sebastian McKenzie
456b2d3910
remove unused keys declaration in types
2015-01-31 10:12:32 +11:00
Sebastian McKenzie
f5ccb9c0ba
clean up types, add missing jsdoc parameters, add some descriptions
2015-01-30 21:48:32 +11:00
Sebastian McKenzie
055dd5d2c3
simplify t.getDeclarations keys
2015-01-30 21:42:24 +11:00
Sebastian McKenzie
0fea437536
rename t.getIds to t.getDeclarations and remove dead code
2015-01-30 21:36:51 +11:00
Stefan Penner
9ddf411f2c
cleanup: require explicit lodash modules needed
2015-01-28 23:52:17 -05:00
Sebastian McKenzie
962eeed252
clean up t.getIds
2015-01-28 23:41:42 +11:00
Sebastian McKenzie
3d98364adb
in types.getIds make sure the declaration inside of ExportDeclaration is actually a Declaration, clean up types.isReferenced - fixes #614
2015-01-28 23:12:53 +11:00
Sebastian McKenzie
3affa543ef
add yes/no comments to describe what we're actually testing for in types.isReferenced
2015-01-28 20:21:25 +11:00
Sebastian McKenzie
2a47afebde
more accurate types.isReferenced comment
2015-01-28 20:09:37 +11:00
Sebastian McKenzie
968db67d0a
add in pattern support to t.isReferenced
2015-01-28 20:06:49 +11:00
Sebastian McKenzie
b22ef22e36
add missing semicolon
2015-01-28 20:03:29 +11:00
Sebastian McKenzie
69f2a0d3f1
better t.toIdentifier behaviour that doesn't camelcase on underscores - fixes #610
2015-01-28 20:01:55 +11:00
Sebastian McKenzie
4b66dcb738
more reliable t.isReferenced - fixes #610
2015-01-28 19:58:20 +11:00
Sebastian McKenzie
5477a990bc
construct null object for types.getIds
2015-01-28 18:09:38 +11:00
Sebastian McKenzie
3db7811f00
add missing use strict declarations
2015-01-26 15:53:24 +11:00
Sebastian McKenzie
8243a34b69
change the way modules handle default exports and function declaration exports
2015-01-26 15:53:17 +11:00