MCPcopy Create free account
hub / github.com/Illumina/hap.py / addComment

Method addComment

external/jsoncpp/jsoncpp.cpp:536–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void
537Reader::addComment(Location begin, Location end, CommentPlacement placement) {
538 assert(collectComments_);
539 if (placement == commentAfterOnSameLine) {
540 assert(lastValue_ != 0);
541 lastValue_->setComment(std::string(begin, end), placement);
542 } else {
543 if (!commentsBefore_.empty())
544 commentsBefore_ += "\n";
545 commentsBefore_ += std::string(begin, end);
546 }
547}
548
549bool Reader::readCStyleComment() {
550 while (current_ != end_) {

Callers

nothing calls this directly

Calls 2

setCommentMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected