MCPcopy Create free account
hub / github.com/cinder/Cinder / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

src/jsoncpp/jsoncpp.cpp:3462–3471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3460}
3461
3462void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
3463 if (root.hasComment(commentAfterOnSameLine))
3464 document_ += " " + root.getComment(commentAfterOnSameLine);
3465
3466 if (root.hasComment(commentAfter)) {
3467 document_ += "\n";
3468 document_ += root.getComment(commentAfter);
3469 document_ += "\n";
3470 }
3471}
3472
3473bool StyledWriter::hasCommentForValue(const Value& value) {
3474 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected