MCPcopy Create free account
hub / github.com/Illumina/paragraph / addComment

Method addComment

external/jsoncpp/jsoncpp.cpp:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void
606Reader::addComment(Location begin, Location end, CommentPlacement placement) {
607 assert(collectComments_);
608 const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
609 if (placement == commentAfterOnSameLine) {
610 assert(lastValue_ != 0);
611 lastValue_->setComment(normalized, placement);
612 } else {
613 commentsBefore_ += normalized;
614 }
615}
616
617bool Reader::readCStyleComment() {
618 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected