MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

src/share/jsoncpp/jsoncpp.cpp:4673–4682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4671}
4672
4673void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4674 if (root.hasComment(commentAfterOnSameLine))
4675 document_ += " " + root.getComment(commentAfterOnSameLine);
4676
4677 if (root.hasComment(commentAfter)) {
4678 document_ += "\n";
4679 document_ += root.getComment(commentAfter);
4680 document_ += "\n";
4681 }
4682}
4683
4684bool StyledWriter::hasCommentForValue(const Value& value) {
4685 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected