MCPcopy Create free account
hub / github.com/Samsung/ONE / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

runtime/3rdparty/jsoncpp/jsoncpp.cpp:5097–5108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5095}
5096
5097void StyledWriter::writeCommentAfterValueOnSameLine(const Value &root)
5098{
5099 if (root.hasComment(commentAfterOnSameLine))
5100 document_ += " " + root.getComment(commentAfterOnSameLine);
5101
5102 if (root.hasComment(commentAfter))
5103 {
5104 document_ += '\n';
5105 document_ += root.getComment(commentAfter);
5106 document_ += '\n';
5107 }
5108}
5109
5110bool StyledWriter::hasCommentForValue(const Value &value)
5111{

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected