MCPcopy Create free account
hub / github.com/PlayFab/gsdk / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

cpp/cppsdk/jsoncpp.cpp:4798–4807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4796}
4797
4798void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4799 if (root.hasComment(commentAfterOnSameLine))
4800 document_ += " " + root.getComment(commentAfterOnSameLine);
4801
4802 if (root.hasComment(commentAfter)) {
4803 document_ += '\n';
4804 document_ += root.getComment(commentAfter);
4805 document_ += '\n';
4806 }
4807}
4808
4809bool StyledWriter::hasCommentForValue(const Value& value) {
4810 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected