| 389 | } |
| 390 | |
| 391 | void |
| 392 | Reader::addComment(Location begin, Location end, CommentPlacement placement) { |
| 393 | assert(collectComments_); |
| 394 | const JSONCPP_STRING& normalized = normalizeEOL(begin, end); |
| 395 | if (placement == commentAfterOnSameLine) { |
| 396 | assert(lastValue_ != 0); |
| 397 | lastValue_->setComment(normalized, placement); |
| 398 | } else { |
| 399 | commentsBefore_ += normalized; |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | bool Reader::readCStyleComment() { |
| 404 | while ((current_ + 1) < end_) { |
nothing calls this directly
no test coverage detected