MCPcopy Create free account
hub / github.com/EQEmu/EQEmu / addComment

Method addComment

common/json/jsoncpp.cpp:609–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

normalizeEOLFunction · 0.85
setCommentMethod · 0.80

Tested by

no test coverage detected