| 573 | } |
| 574 | |
| 575 | void |
| 576 | Reader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 577 | assert(collectComments_); |
| 578 | const std::string& normalized = normalizeEOL(begin, end); |
| 579 | if (placement == commentAfterOnSameLine) { |
| 580 | assert(lastValue_ != 0); |
| 581 | lastValue_->setComment(normalized, placement); |
| 582 | } else { |
| 583 | commentsBefore_ += normalized; |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | bool Reader::readCStyleComment() { |
| 588 | while (current_ != end_) { |
nothing calls this directly
no test coverage detected