MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

Source/JSON/jsoncpp.cpp:4216–4225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4214}
4215
4216void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4217 if (root.hasComment(commentAfterOnSameLine))
4218 document_ += " " + root.getComment(commentAfterOnSameLine);
4219
4220 if (root.hasComment(commentAfter)) {
4221 document_ += "\n";
4222 document_ += root.getComment(commentAfter);
4223 document_ += "\n";
4224 }
4225}
4226
4227bool StyledWriter::hasCommentForValue(const Value& value) {
4228 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.45
getCommentMethod · 0.45

Tested by

no test coverage detected