MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / addComment

Method addComment

Source/JSON/jsoncpp.cpp:528–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void Reader::addComment(Location begin, Location end, CommentPlacement placement) {
529 assert(collectComments_);
530 const std::string& normalized = normalizeEOL(begin, end);
531 if (placement == commentAfterOnSameLine) {
532 assert(lastValue_ != 0);
533 lastValue_->setComment(normalized, placement);
534 } else {
535 commentsBefore_ += normalized;
536 }
537}
538
539bool Reader::readCStyleComment() {
540 while (current_ != end_) {

Callers

nothing calls this directly

Calls 2

normalizeEOLFunction · 0.70
setCommentMethod · 0.45

Tested by

no test coverage detected