MCPcopy Create free account
hub / github.com/SOUI2/soui / addComment

Method addComment

third-part/jsoncpp/src/lib_json/json_reader.cpp:391–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void
392Reader::addComment(Location begin, Location end, CommentPlacement placement) {
393 assert(collectComments_);
394 const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
395 if (placement == commentAfterOnSameLine) {
396 assert(lastValue_ != 0);
397 lastValue_->setComment(normalized, placement);
398 } else {
399 commentsBefore_ += normalized;
400 }
401}
402
403bool Reader::readCStyleComment() {
404 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected