| 4796 | } |
| 4797 | |
| 4798 | void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) { |
| 4799 | if (root.hasComment(commentAfterOnSameLine)) |
| 4800 | document_ += " " + root.getComment(commentAfterOnSameLine); |
| 4801 | |
| 4802 | if (root.hasComment(commentAfter)) { |
| 4803 | document_ += '\n'; |
| 4804 | document_ += root.getComment(commentAfter); |
| 4805 | document_ += '\n'; |
| 4806 | } |
| 4807 | } |
| 4808 | |
| 4809 | bool StyledWriter::hasCommentForValue(const Value& value) { |
| 4810 | return value.hasComment(commentBefore) || |
nothing calls this directly
no test coverage detected