MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / addComment

Method addComment

edrav2/eprj/jsoncpp/src/lib_json/json_reader.cpp:383–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void Reader::addComment(Location begin,
384 Location end,
385 CommentPlacement placement) {
386 assert(collectComments_);
387 const JSONCPP_STRING& normalized = normalizeEOL(begin, end);
388 if (placement == commentAfterOnSameLine) {
389 assert(lastValue_ != nullptr);
390 lastValue_->setComment(normalized, placement);
391 } else {
392 commentsBefore_ += normalized;
393 }
394}
395
396bool Reader::readCStyleComment() {
397 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 2

setCommentMethod · 0.80
assertClass · 0.50

Tested by

no test coverage detected