(commentLines, indentationCount)
| 566 | }; |
| 567 | |
| 568 | const stringifyComments = (commentLines, indentationCount) => { |
| 569 | const indent = indentation.repeat(indentationCount); |
| 570 | const comments = commentLines?.map((line) => line.value.trim()) ?? []; |
| 571 | return comments.length === 0 |
| 572 | ? "" |
| 573 | : comments.length === 1 |
| 574 | ? `${indent}/* ${comments[0]} */${"\n"}` |
| 575 | : `${indent}/*${"\n"}${indent} ${comments.join("\n" + indent + " ")}${"\n"}${indent}*/${"\n"}`; |
| 576 | }; |
| 577 | |
| 578 | const stringifyCssProperty = (cssProperty, indentationCount = 1) => { |
| 579 | const property = `${indentation.repeat(indentationCount)}${cssProperty.property}: ${cssProperty.value};`; |
no outgoing calls
no test coverage detected