prettier/tests/flow/incremental_duplicate_delete
Christopher Chedeau df831d7b59 Fix files with only comments on the flow parser (#598)
Babylon has a two top level nodes: File and Program whereas flow just has Program. This causes two things two happen that prevents comments from being displayed:

1) Because there's a single node, none of following/preceding/enclosing exist. We ran into a TOOD case that we now need to fill. We just need to attach comments to the only node we have: the ast.

2) Both the raw comments and the computed comments are set on the `.comments` field of the object, however, it is being reset after calling `attach`, so we lose the computed comments :( The fix is to use a local variable and delete the comments before calling `attach`.
2017-02-04 21:36:29 -05:00
..
__snapshots__ Fix files with only comments on the flow parser (#598) 2017-02-04 21:36:29 -05:00
A.js Move tests around (#454) 2017-01-24 14:35:37 -08:00
jsfmt.spec.js Move tests around (#454) 2017-01-24 14:35:37 -08:00