| 539 | } |
| 540 | |
| 541 | void OurReader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 542 | assert(collectComments_); |
| 543 | auto normalized = normalizeEOL(begin, end); |
| 544 | if (placement == commentAfterOnSameLine) { |
| 545 | assert(lastValue_ != nullptr); |
| 546 | lastValue_->setComment(normalized, placement); |
| 547 | } else { |
| 548 | commentsBefore_ += normalized; |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | bool OurReader::readCStyleComment(bool* containsNewLineResult) { |
| 553 | *containsNewLineResult = false; |
nothing calls this directly
no test coverage detected