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

Method writeCommentAfterValueOnSameLine

external/jsoncpp/jsoncpp.cpp:4690–4699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4688}
4689
4690void StyledWriter::writeCommentAfterValueOnSameLine(const Value &root) {
4691 if (root.hasComment(commentAfterOnSameLine))
4692 document_ += " " + root.getComment(commentAfterOnSameLine);
4693
4694 if (root.hasComment(commentAfter)) {
4695 document_ += '\n';
4696 document_ += root.getComment(commentAfter);
4697 document_ += '\n';
4698 }
4699}
4700
4701bool StyledWriter::hasCommentForValue(const Value &value) {
4702 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected