| 625 | } |
| 626 | |
| 627 | void Reader::addComment(Location begin, |
| 628 | Location end, |
| 629 | CommentPlacement placement) { |
| 630 | assert(collectComments_); |
| 631 | const JSONCPP_STRING& normalized = normalizeEOL(begin, end); |
| 632 | if (placement == commentAfterOnSameLine) { |
| 633 | assert(lastValue_ != 0); |
| 634 | lastValue_->setComment(normalized, placement); |
| 635 | } else { |
| 636 | commentsBefore_ += normalized; |
| 637 | } |
| 638 | } |
| 639 | |
| 640 | bool Reader::readCStyleComment() { |
| 641 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected