MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / addComment

Method addComment

Sources/Dependencies/jsoncpp/reader.cpp:541–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539 }
540
541 void OurReader::addComment(Location begin, Location end, CommentPlacement placement) {
542 assert(collectComments_);
543 auto normalized = normalizeEOL(begin, end);
544 if (placement == commentAfterOnSameLine) {
545 assert(lastValue_ != nullptr);
546 lastValue_->setComment(normalized, placement);
547 } else {
548 commentsBefore_ += normalized;
549 }
550 }
551
552 bool OurReader::readCStyleComment(bool* containsNewLineResult) {
553 *containsNewLineResult = false;

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected