MCPcopy Create free account
hub / github.com/Kitware/VTK / addComment

Method addComment

ThirdParty/jsoncpp/vtkjsoncpp/jsoncpp.cpp:610–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

setCommentMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected