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