| 3478 | } |
| 3479 | |
| 3480 | void StyledWriter::writeCommentAfterValueOnSameLine(const Value &root) { |
| 3481 | if (root.hasComment(commentAfterOnSameLine)) |
| 3482 | document_ += " " + normalizeEOL(root.getComment(commentAfterOnSameLine)); |
| 3483 | |
| 3484 | if (root.hasComment(commentAfter)) { |
| 3485 | document_ += "\n"; |
| 3486 | document_ += normalizeEOL(root.getComment(commentAfter)); |
| 3487 | document_ += "\n"; |
| 3488 | } |
| 3489 | } |
| 3490 | |
| 3491 | bool StyledWriter::hasCommentForValue(const Value &value) { |
| 3492 | return value.hasComment(commentBefore) || |
nothing calls this directly
no test coverage detected