| 370 | } |
| 371 | |
| 372 | void Reader::addComment(Location begin, Location end, |
| 373 | CommentPlacement placement) { |
| 374 | assert(collectComments_); |
| 375 | const String& normalized = normalizeEOL(begin, end); |
| 376 | if (placement == commentAfterOnSameLine) { |
| 377 | assert(lastValue_ != nullptr); |
| 378 | lastValue_->setComment(normalized, placement); |
| 379 | } else { |
| 380 | commentsBefore_ += normalized; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | bool Reader::readCStyleComment() { |
| 385 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected