MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

src/jsoncpp.cpp:4628–4637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4626}
4627
4628void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4629 if (root.hasComment(commentAfterOnSameLine))
4630 document_ += " " + root.getComment(commentAfterOnSameLine);
4631
4632 if (root.hasComment(commentAfter)) {
4633 document_ += "\n";
4634 document_ += root.getComment(commentAfter);
4635 document_ += "\n";
4636 }
4637}
4638
4639bool StyledWriter::hasCommentForValue(const Value& value) {
4640 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected