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

Method writeCommentAfterValueOnSameLine

vrclient_x64/jsoncpp.cpp:4627–4636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected