Sebastian McKenzie
c91baee4d5
add support for flow declarations in scope tracking
2015-06-08 00:04:17 +01:00
Sebastian McKenzie
4596ae48b8
remove acorn jsx tests as the jsx parser is no longer embedded
2015-06-07 23:57:11 +01:00
Sebastian McKenzie
6c268cdf21
split out path comment methods into a separate file
2015-06-07 23:49:29 +01:00
Sebastian McKenzie
fce977f1d7
update TraversalContext#shouldVisit to check for existence of visitor keys
2015-06-07 23:38:39 +01:00
Sebastian McKenzie
a298075949
check for loc value on comments before attempting to adjust it
2015-06-07 23:37:47 +01:00
Sebastian McKenzie
66599c3779
use scope paths hub instead of manually passing the hub to the scope
2015-06-07 23:37:33 +01:00
Sebastian McKenzie
60340244b1
when constructing a NodePath, inherit parent paths hub if one wasn't passed to us
2015-06-07 23:36:32 +01:00
Sebastian McKenzie
eb72ea3e5a
rename path verification methods to introspection and add NodePath#getSource method
2015-06-07 23:36:12 +01:00
Sebastian McKenzie
ede6237b6f
add NodePath#addComment method
2015-06-07 23:35:46 +01:00
Sebastian McKenzie
e91e10aae6
add FlowStatement and FlowDeclaration alias keys
2015-06-07 23:35:35 +01:00
Sebastian McKenzie
9c3cca0d25
rename NodePath#isTypeAnnotationGeneric to isTypeAnnotation
2015-06-07 23:35:09 +01:00
Sebastian McKenzie
8eee5367f3
add Noop node
2015-06-07 23:34:35 +01:00
Sebastian McKenzie
40d55a3d44
update makefile browser build filename
2015-06-07 20:24:21 +01:00
Sebastian McKenzie
75330304dc
fix linting errors
2015-06-07 20:04:30 +01:00
Sebastian McKenzie
776c508418
add node build to Makefile
2015-06-07 19:41:28 +01:00
Sebastian McKenzie
e804741632
add module metadata - closes #1601
2015-06-07 19:41:20 +01:00
Sebastian McKenzie
3d3cb4be4f
completely rework type inferrence, support coercing to union types and be more reliable in the inferrence and always be cautious
2015-06-07 19:39:53 +01:00
Sebastian McKenzie
64f4209119
recurse into type casts when trying to get it's expression - fixes #facebook/react-native#1526
2015-06-07 02:45:06 +01:00
Sebastian McKenzie
2ede226ef9
remove unused variables
2015-06-06 16:35:28 +01:00
Sebastian McKenzie
f5cf641c0a
add support for async generators to type inferrence
2015-06-06 16:17:55 +01:00
Sebastian McKenzie
1abd3419f6
simplify NodePath.getScope
2015-06-06 16:17:43 +01:00
Sebastian McKenzie
75699db716
clean up options normalisation and add more comments
2015-06-06 16:17:30 +01:00
Sebastian McKenzie
7c3572f08c
fix linting errors
2015-06-06 03:38:12 +01:00
Sebastian McKenzie
9dacde6d07
further implement the concept of a "Hub" that all traversal paths get access to, also add in some assertions to confirm path state when performing manipulation
2015-06-06 03:34:08 +01:00
Sebastian McKenzie
8c3aab9a26
add support for async functions to type inferrence
2015-06-06 03:33:32 +01:00
Sebastian McKenzie
ba4550c953
switch some node-parent based stuff to path-based
2015-06-06 03:33:22 +01:00
Sebastian McKenzie
d0ac65a934
add _paths in t.inherits
2015-06-06 03:32:35 +01:00
Sebastian McKenzie
a4c70bb029
this commit makes the following changes to the way paths are handled:
...
- store paths on parents instead of containers
- implement one central hub that all traversal paths and scopes get access to in order to abstract out access to common functions
2015-06-06 03:32:22 +01:00
Sebastian McKenzie
795cf0c0b1
add ignore/only tests to ensure #1693 never happens again
2015-06-05 23:11:10 +01:00
Sebastian McKenzie
e64b90e322
5.5.4
2015-06-05 23:07:27 +01:00
Sebastian McKenzie
d69b0973e1
v5.5.4
v5.5.4
2015-06-05 23:03:55 +01:00
Sebastian McKenzie
6296f49653
update minification.constantFolding transformer to deopt bindings that are reassigned in a different function scope
2015-06-05 23:01:31 +01:00
Sebastian McKenzie
9f2b739046
improve Scope#dump to print binding info
2015-06-05 23:00:50 +01:00
Sebastian McKenzie
da1d5e5577
simplify unary resolution and move operators to types
2015-06-05 23:00:06 +01:00
Sebastian McKenzie
7333b4e392
move staticPropBody class concat to after className check in es6.classes transformer
2015-06-05 22:44:03 +01:00
Sebastian McKenzie
b0442d0784
add back shouldIgnore check that went missing around 32f19aff99559e36c3d4fbb946af378a8126b8bf - closes #1696 , fixes #1693
2015-06-05 22:43:32 +01:00
Sebastian McKenzie
295e69f8f8
fix auxiliaryComment option name for istanbul interop - fixes #1695
2015-06-05 22:40:28 +01:00
Sebastian McKenzie
cfe844fa39
add boolean type to experimental option
2015-06-05 22:36:16 +01:00
Sebastian McKenzie
0f4ea2d2a6
use file.log.deprecate instead of throwing an error - fixes #1694
2015-06-05 22:35:46 +01:00
Sebastian McKenzie
4b85b05839
use actual parameter reference for non-last default parameters - fixes #1690
2015-06-05 14:08:18 +01:00
Sebastian McKenzie
2539d08dce
5.5.3
2015-06-05 14:07:34 +01:00
Sebastian McKenzie
c26fd7a819
fix regenerator version
2015-06-05 14:07:27 +01:00
Sebastian McKenzie
2053610429
v5.5.3
v5.5.3
2015-06-05 12:20:22 +01:00
Sebastian McKenzie
cd4f83b299
fix linting errors
2015-06-05 12:19:32 +01:00
Sebastian McKenzie
ec29ba19a9
add 5.5.3 changelog
2015-06-05 12:18:43 +01:00
Sebastian McKenzie
9dc03e0978
traverse over ClassProperty path rather than node
2015-06-05 12:17:55 +01:00
Sebastian McKenzie
bc4258eca9
add type inferrence for template literals
2015-06-05 12:17:45 +01:00
Sebastian McKenzie
b0e58f9770
add completion statement test and enable experimental option on deadCodeElimination tests
2015-06-05 12:17:36 +01:00
Sebastian McKenzie
a1e2641c91
5.5.2
2015-06-05 12:17:18 +01:00
Sebastian McKenzie
9108422f99
v5.5.2
v5.5.2
2015-06-05 12:03:38 +01:00