prettier/tests/comments
Christopher Chedeau 5a9bea1c2f Fix comments inside of template literals (#1713)
We completely butcher comments inside of template literals. The fix is to not be able to attach comments to TemplateExpression nodes and to avoid comments that are ine one expression to be moved to another expression. We now have the boundary to prevent outputting invalid code.

Fixes #1617
2017-05-24 13:19:56 -07:00
..
__snapshots__ Fix comments inside of template literals (#1713) 2017-05-24 13:19:56 -07:00
assignment-pattern.js Fix unprinted comments in destructuring (#898) 2017-03-05 14:40:03 -08:00
before-comma.js Fix comment detection before comma (#1127) 2017-04-10 11:03:35 -07:00
blank.js Fix files with comments only (#813) 2017-03-07 11:02:45 -08:00
call_comment.js Fix comment for `call( // comment` (#858) 2017-03-03 16:47:13 -05:00
dangling.js Fix missing dangling comment in exports (#741) 2017-02-19 14:39:09 -08:00
dangling_array.js Fix missing dangling comments in arrays (#744) 2017-02-19 17:25:18 -08:00
dangling_for.js Fix missing dangling comments in for loop (#742) 2017-02-20 09:17:10 -05:00
export.js Fix broken export comment (#899) 2017-03-05 21:49:07 -08:00
first-line.js Remove first line special case (#597) 2017-02-04 21:36:48 -05:00
flow_union.js Unrestrict flow union comments check (#1040) 2017-03-20 12:33:42 -04:00
function-declaration.js Do not put parens for single argument with end of line comment (#1518) 2017-05-05 21:44:42 -07:00
if.js Stabilize else comments (#1177) 2017-04-10 10:46:44 -07:00
issues.js Fix closing call expression commented out (#530) 2017-01-31 06:52:53 -08:00
jsfmt.spec.js Feature/verify against same snapshot (#1087) 2017-03-25 08:10:17 -07:00
jsx.js Print line/mixed comments on new lines inside JSXEmptyExpression (#985) 2017-03-10 18:23:11 -08:00
last-arg.js Preserve inline comment as last argument (#1390) 2017-05-01 14:29:03 -07:00
preserve-new-line-last.js Fix trailing new lines preservation (#724) 2017-02-16 09:56:12 -05:00
return-statement.js Fix leading comment inside returned SequenceExpression (#1133) 2017-04-05 13:41:35 -07:00
switch.js Fix trailing comment on switch case (#1136) 2017-04-05 16:27:14 -07:00
template-literal.js [WIP] Fix comments in template literals (#643) 2017-02-23 09:23:56 -08:00
try.js Better support try/catch comments (#607) 2017-02-04 21:25:29 -05:00
variable_declarator.js Stabilize VariableDeclarator comments (#1130) 2017-04-07 07:57:44 -07:00