Brian Ng
3a27f49c57
Fix identation with empty leading ObjectTypeProperty ( #4862 )
2016-11-19 10:47:41 -05:00
Sam Pepose
db85bdc3fc
Added flowCommaSeparator option for object types ( #3547 )
2016-11-15 14:43:42 -05:00
Sam Goldman
7bb430aeea
Add variance node type and generate property variance annotations ( #4697 )
...
* Add variance node type and generate property variance annotations
babel/babylon#161 adds parsing support for property variance
annotations. This PR adds the necessary node type for the new Variance
node and generate support for all the positions where variance can now
appear.
* Variance is no longer a separate node type
This diff also adds tests to class properties and to the
flow-strip-types transform.
* Add test + fix for edge case with variance and class proeprties
2016-10-21 16:05:36 -04:00
Sam Goldman
15183078e6
Add EmptyTypeAnnotation ( #4724 )
...
Added to Flow in facebook/flow#c603505583993aa953904005f91c350f4b65d6bd
Parser support added in babel/babylon#171 .
2016-10-14 15:16:02 -04:00
sugargreenbean
c57e0e88a5
changed bool to boolean as well as updated tests ( #4646 )
2016-10-03 19:31:56 -04:00
Basil Hosmer
cb4b2b0744
flow plugin: generate exact object type annotations ( #3702 )
2016-09-20 11:10:55 +02:00
Paul O’Shannessy
55f37a1b1e
Use arrow syntax for ObjectTypeProperty FunctionTypeAnnotations ( #3663 )
...
This fixes an issue where optional properties would get transformed to
an invalid syntax. The easiest solution was to make all FunctionTypes
get transformed to the arrow syntax (previously everything went the
other way).
2016-08-20 10:37:56 -04:00
Daniel Tschinder
308de41992
Add support for the new declare module.exports of flow. ( #3570 )
2016-08-16 16:54:00 +02:00
Logan Smyth
5de7433147
Avoid calls to isUserWhitespacable by explicitly marking statement lists.
2016-07-17 21:51:00 -07:00
Sam Pepose
199a612131
Fixed incorrect printing of array of nullable flow type
2016-06-22 20:33:43 -07:00
Logan Smyth
df2c3f3d25
Use the common space helper everywhere to ensure we get the smallest output possible.
2016-06-16 22:00:24 -07:00
Logan Smyth
4286cb4f2a
Explicitly label standalone tokens and words.
2016-06-16 22:00:23 -07:00
Logan Smyth
e702e67233
Split all of the pushes into individual tokens.
2016-06-16 22:00:23 -07:00
Logan Smyth
8336aa52e8
Split all of the separators into functions.
2016-06-16 20:31:19 -07:00
Logan Smyth
3e1a661eb6
Use the general list handlers and the default separator.
2016-06-16 20:31:19 -07:00
Logan Smyth
528128f62d
Avoid looking for raw values for all nodes.
2016-06-16 20:31:19 -07:00
Henry Zhu
b567c02413
generator tests
2016-06-10 18:05:54 -04:00
Henry Zhu
ad0e1ba6de
Support changes in flow parsing
2016-06-08 13:07:58 -04:00
Amjad Masad
2fbe28cc88
Remove remaining @flow annotations
2016-03-03 15:10:59 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Sam Goldman
26c97c4069
Add support for "declare interface" Flow syntax
...
This has been a feature in Flow for a long time (couldn't easily find a
specific commit adding this). Interfaces are basically undocumented, though, so
it's easy to see how this was missed.
2016-01-04 11:50:12 -08:00
Sam Goldman
e764346d5f
Add support for "declare type" Flow syntax
...
See facebook/flow#1105
2016-01-04 11:42:43 -08:00
Sebastian McKenzie
5ca1cf0506
Merge pull request #3203 from samwgoldman/flow-mixins-6.x
...
Add support for mixins to Babel 6.x
2015-12-27 21:04:40 +00:00
Sam Goldman
e9c23ba7a1
Don't generate class mixins if prop doesn't exist
2015-12-23 16:37:14 -05:00
Sam Goldman
bb874a4e46
Add babel-generator support for mixins to Babel 6.x
2015-12-23 16:26:29 -05:00
Sam Goldman
32c03222bf
Add support for this type to Babel 6.x
2015-12-23 13:54:57 -05:00
Amjad Masad
9c20ace184
Add support for null literal type
2015-12-03 23:58:25 -08:00
Sebastian McKenzie
7dc1b4e7e9
add ExistentialTypeParam - fixes #2587
2015-11-03 13:48:03 +00:00
Sebastian McKenzie
e62a00df50
rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral
2015-11-03 01:19:35 +00:00
Sebastian McKenzie
f88cc9d509
clean up babel-generator - closes #2210
2015-10-05 16:37:37 +01:00
Sebastian McKenzie
227ed5638a
add flow type annotations
2015-09-23 16:10:44 +01:00
Sebastian McKenzie
c99a179401
var -> let
2015-09-18 18:45:55 +01:00
Sebastian McKenzie
15f73b4fc3
remove noisy comments/documentation
2015-09-01 04:56:03 +01:00
Sebastian McKenzie
a4a347b4f0
Merge branch 'master' into development
...
Conflicts:
packages/babel/src/generation/generators/flow.js
packages/babel/src/generation/generators/types.js
packages/babel/src/transformation/transformers/es6/for-of.js
packages/babel/src/traversal/path/inference/inferers.js
packages/babel/src/types/index.js
packages/babel/src/util.js
packages/babel/test/util.js
2015-08-15 19:50:34 -04:00
Sebastian McKenzie
3ef9bffcc2
split up babel core into multiple modules
2015-08-11 17:40:59 +01:00