MCPcopy Create free account
hub / github.com/Illumina/paragraph / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

external/jsoncpp/jsoncpp.cpp:4748–4757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4746}
4747
4748void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4749 if (root.hasComment(commentAfterOnSameLine))
4750 document_ += " " + root.getComment(commentAfterOnSameLine);
4751
4752 if (root.hasComment(commentAfter)) {
4753 document_ += "\n";
4754 document_ += root.getComment(commentAfter);
4755 document_ += "\n";
4756 }
4757}
4758
4759bool StyledWriter::hasCommentForValue(const Value& value) {
4760 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected