MCPcopy Create free account
hub / github.com/Kitware/VTK / writeCommentAfterValueOnSameLine

Method writeCommentAfterValueOnSameLine

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:4722–4731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4720}
4721
4722void StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {
4723 if (root.hasComment(commentAfterOnSameLine))
4724 document_ += " " + root.getComment(commentAfterOnSameLine);
4725
4726 if (root.hasComment(commentAfter)) {
4727 document_ += '\n';
4728 document_ += root.getComment(commentAfter);
4729 document_ += '\n';
4730 }
4731}
4732
4733bool StyledWriter::hasCommentForValue(const Value& value) {
4734 return value.hasComment(commentBefore) ||

Callers

nothing calls this directly

Calls 2

hasCommentMethod · 0.80
getCommentMethod · 0.80

Tested by

no test coverage detected