| 381 | } |
| 382 | |
| 383 | void Reader::addComment(Location begin, |
| 384 | Location end, |
| 385 | CommentPlacement placement) { |
| 386 | assert(collectComments_); |
| 387 | const JSONCPP_STRING& normalized = normalizeEOL(begin, end); |
| 388 | if (placement == commentAfterOnSameLine) { |
| 389 | assert(lastValue_ != nullptr); |
| 390 | lastValue_->setComment(normalized, placement); |
| 391 | } else { |
| 392 | commentsBefore_ += normalized; |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | bool Reader::readCStyleComment() { |
| 397 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected