prettier/tests/classes
Christopher Chedeau 3b66af3d60 Remove the concept of globalPrecedingNode (#561)
The original motivation for this change is trying to fix #560 where the comment was attached to the JSXText node instead of the JSXExpressionContainer because it used the globalPrecedingNode. In general, I don't think that it is very safe to attach a comment to a random node just because it happened to be before.

I tried to delete the globalPrecedingNode codepath and I think that it actually improves the results. I'll add inline comments in the pull request to explain the various changes.

Fixes #560
2017-02-03 13:56:06 -08:00
..
__snapshots__ Remove the concept of globalPrecedingNode (#561) 2017-02-03 13:56:06 -08:00
binary.js Fix class inside of binary expression missing parenthesis (#397) 2017-01-22 14:33:04 -08:00
break.js Add break points for class declaration (#466) 2017-01-25 16:36:55 -05:00
call.js Add parenthesis around class expression when left side of call expression (#409) 2017-01-22 16:22:49 -08:00
empty.js Support dangling comments in ClassBody (#570) 2017-02-03 16:16:32 -05:00
jsfmt.spec.js Add testing 2016-12-23 19:51:53 +00:00
member.js Add parenthesis for class expression on left of member expression (#421) 2017-01-22 19:05:46 -08:00
ternary.js Add parenthesis when class expressions are left of a ternary (#428) 2017-01-22 20:32:17 -08:00