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