MCPcopy Create free account
hub / github.com/Illumina/hap.py / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

external/jsoncpp/jsoncpp.cpp:3480–3489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3478}
3479
3480void StyledWriter::writeCommentAfterValueOnSameLine(const Value &root) {
3481 if (root.hasComment(commentAfterOnSameLine))
3482 document_ += " " + normalizeEOL(root.getComment(commentAfterOnSameLine));
3483
3484 if (root.hasComment(commentAfter)) {
3485 document_ += "\n";
3486 document_ += normalizeEOL(root.getComment(commentAfter));
3487 document_ += "\n";
3488 }
3489}
3490
3491bool StyledWriter::hasCommentForValue(const Value &value) {
3492 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected