Sebastian McKenzie
|
52f614dcdf
|
add better path execution status algo
|
2015-06-10 01:36:36 +01:00 |
|
Sebastian McKenzie
|
600367ae25
|
add t.COMPARISON_BINARY_OPERATORS
|
2015-06-10 01:34:51 +01:00 |
|
Sebastian McKenzie
|
b761cba135
|
split auxiliary comment option into before and after - fixes #1721
|
2015-06-10 01:34:44 +01:00 |
|
Sebastian McKenzie
|
947d3e262d
|
push newline after decorator when doing code gen - fixes #1713
|
2015-06-10 01:19:58 +01:00 |
|
Sebastian McKenzie
|
4061bea528
|
change execution order of module metadata visitor to resolve module source before building up metadata tree - fixes #1720
|
2015-06-10 01:15:11 +01:00 |
|
Sebastian McKenzie
|
fa670ac71e
|
visually split up inference inferer methods
|
2015-06-09 22:52:21 +01:00 |
|
Sebastian McKenzie
|
572261f9ce
|
add support for typecasts in path static evaluation
|
2015-06-09 22:52:00 +01:00 |
|
Sebastian McKenzie
|
f4d7cc55c1
|
split inference logic into separate folder
|
2015-06-09 14:02:57 +01:00 |
|
Sebastian McKenzie
|
eaaa279aa5
|
add let binding collision todo
|
2015-06-09 04:08:44 +01:00 |
|
Sebastian McKenzie
|
4cc844f410
|
take into consideration assignment expressions in loop heads when replacing let references - fixes #1707
|
2015-06-09 04:04:14 +01:00 |
|
Sebastian McKenzie
|
05b13b9ea3
|
fix mistyped parameter name of t.createTypeAnnotationBasedOnTypeof
|
2015-06-09 03:26:40 +01:00 |
|
Sebastian McKenzie
|
b7320ce400
|
add t.createTypeAnnotationBasedOnTypeof method
|
2015-06-09 03:23:28 +01:00 |
|
Sebastian McKenzie
|
0c37b7b973
|
add typeof conditional inference
|
2015-06-09 03:20:32 +01:00 |
|
Sebastian McKenzie
|
2dd8c40618
|
heavily simplify constants transformer
|
2015-06-09 00:31:18 +01:00 |
|
Sebastian McKenzie
|
33128b0ccf
|
remove unused declaration
|
2015-06-08 23:59:53 +01:00 |
|
Sebastian McKenzie
|
cf25424295
|
fix duplicate declaration
|
2015-06-08 23:49:00 +01:00 |
|
Sebastian McKenzie
|
7492074794
|
infer types of bindings inside of conditionals based on usage
|
2015-06-08 23:43:46 +01:00 |
|
Sebastian McKenzie
|
c4a491123e
|
disallow line terminator after async contextual keyword - fixes #1711
|
2015-06-08 21:25:16 +01:00 |
|
Sebastian McKenzie
|
55ad88fe4e
|
don't override types parameter
|
2015-06-08 14:59:19 +01:00 |
|
Sebastian McKenzie
|
b0971412a2
|
add inference for null, remove any type parameter from inferred arrays, add todo comment
|
2015-06-08 14:52:35 +01:00 |
|
Sebastian McKenzie
|
a6b374a681
|
save union type in _getTypeAnnotationBindingConstantViolations to prevent infinite recursion
|
2015-06-08 14:52:13 +01:00 |
|
Sebastian McKenzie
|
2d0355b3b9
|
merge previous bindings constantViolations and path onto new bindings constantViolations
|
2015-06-08 14:49:09 +01:00 |
|
Sebastian McKenzie
|
7fade101be
|
move down module TypeAlias check
|
2015-06-08 14:47:58 +01:00 |
|
Sebastian McKenzie
|
5899e9a0be
|
don't consider type aliases to be a default declaration - fixes #1705
|
2015-06-08 12:20:30 +01:00 |
|
Sebastian McKenzie
|
d41cb11545
|
fix registerDeclaration for FlowDeclarations
|
2015-06-08 01:46:05 +01:00 |
|
Sebastian McKenzie
|
6b02ca47c3
|
add missing semicolon
|
2015-06-08 01:27:02 +01:00 |
|
Sebastian McKenzie
|
ea1b85bffa
|
fix bug where templates were getting polluted with old traversal paths
|
2015-06-08 01:25:51 +01:00 |
|
Sebastian McKenzie
|
3cffe47eea
|
fix NodePath#isGenericType method name
|
2015-06-08 01:00:01 +01:00 |
|
Sebastian McKenzie
|
e5d5a9fb27
|
remove unused variable
|
2015-06-08 00:33:41 +01:00 |
|
Sebastian McKenzie
|
f4cc27bc0e
|
remove unused variable
|
2015-06-08 00:29:52 +01:00 |
|
Sebastian McKenzie
|
8cea575e2e
|
change NodePath#findParent to only call callback with path instead of node
|
2015-06-08 00:29:46 +01:00 |
|
Sebastian McKenzie
|
c91baee4d5
|
add support for flow declarations in scope tracking
|
2015-06-08 00:04:17 +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
|
75330304dc
|
fix linting errors
|
2015-06-07 20:04:30 +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 |
|