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