prettier/tests/flow/libflow-typed
Davy Duperron 1415040263 [WIP] Fix Flow DeclareTypeAlias (#669)
* Inject source text into printAstToDoc function.

* Add getNodeSource helper function.

* Fix Flow drawback with missing DeclareTypeAlias by checking the node source.

* Add new test.

* Fix getNodeSource helper function.

* Revert text injection.

* Refactor DeclareTypeAlias printing.

* Drop expensive getNodeSource helper function 🗑️.

* Refactor declareTypeAlias case in printer.

* Update tests.

* Implement the same logic for DeclareInterface.

* Update the tests.

* Fix missing semicolons and typo.

* Put Flow specific node detection code into own helper function 🚀.

* Refactor isFlowNodeStartingWithDeclare helper function.

* Simplify isFlowNodeStartingWithDeclare helper function.

* Rename test spec.

* Update tests.
2017-02-13 09:17:20 -08:00
..
__snapshots__ Move tests around (#454) 2017-01-24 14:35:37 -08:00
flow-typed [WIP] Fix Flow DeclareTypeAlias (#669) 2017-02-13 09:17:20 -08:00
jsfmt.spec.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
libtest.js Move tests around (#454) 2017-01-24 14:35:37 -08:00