| 608 | } |
| 609 | |
| 610 | void Reader::addComment(Location begin, Location end, |
| 611 | CommentPlacement placement) { |
| 612 | assert(collectComments_); |
| 613 | const String& normalized = normalizeEOL(begin, end); |
| 614 | if (placement == commentAfterOnSameLine) { |
| 615 | assert(lastValue_ != nullptr); |
| 616 | lastValue_->setComment(normalized, placement); |
| 617 | } else { |
| 618 | commentsBefore_ += normalized; |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | bool Reader::readCStyleComment() { |
| 623 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected