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