| 607 | } |
| 608 | |
| 609 | void |
| 610 | Reader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 611 | assert(collectComments_); |
| 612 | const JSONCPP_STRING& normalized = normalizeEOL(begin, end); |
| 613 | if (placement == commentAfterOnSameLine) { |
| 614 | assert(lastValue_ != 0); |
| 615 | lastValue_->setComment(normalized, placement); |
| 616 | } else { |
| 617 | commentsBefore_ += normalized; |
| 618 | } |
| 619 | } |
| 620 | |
| 621 | bool Reader::readCStyleComment() { |
| 622 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected