| 535 | } |
| 536 | |
| 537 | void |
| 538 | Reader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 539 | assert(collectComments_); |
| 540 | const std::string& normalized = normalizeEOL(begin, end); |
| 541 | if (placement == commentAfterOnSameLine) { |
| 542 | assert(lastValue_ != 0); |
| 543 | lastValue_->setComment(normalized, placement); |
| 544 | } else { |
| 545 | commentsBefore_ += normalized; |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | bool Reader::readCStyleComment() { |
| 550 | while (current_ != end_) { |
nothing calls this directly
no test coverage detected