| 526 | } |
| 527 | |
| 528 | void Reader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 529 | assert(collectComments_); |
| 530 | const std::string& normalized = normalizeEOL(begin, end); |
| 531 | if (placement == commentAfterOnSameLine) { |
| 532 | assert(lastValue_ != 0); |
| 533 | lastValue_->setComment(normalized, placement); |
| 534 | } else { |
| 535 | commentsBefore_ += normalized; |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | bool Reader::readCStyleComment() { |
| 540 | while (current_ != end_) { |
nothing calls this directly
no test coverage detected