| 1401 | } |
| 1402 | |
| 1403 | void Value::Comments::set(CommentPlacement slot, String comment) { |
| 1404 | if (slot >= CommentPlacement::numberOfCommentPlacement) |
| 1405 | return; |
| 1406 | if (!ptr_) |
| 1407 | ptr_ = std::unique_ptr<Array>(new Array()); |
| 1408 | (*ptr_)[slot] = std::move(comment); |
| 1409 | } |
| 1410 | |
| 1411 | void Value::setComment(String comment, CommentPlacement placement) { |
| 1412 | if (!comment.empty() && (comment.back() == '\n')) { |