| 3829 | } |
| 3830 | |
| 3831 | void Value::Comments::set(CommentPlacement slot, String comment) { |
| 3832 | if (!ptr_) { |
| 3833 | ptr_ = std::unique_ptr<Array>(new Array()); |
| 3834 | } |
| 3835 | (*ptr_)[slot] = std::move(comment); |
| 3836 | } |
| 3837 | |
| 3838 | void Value::setComment(String comment, CommentPlacement placement) { |
| 3839 | if (!comment.empty() && (comment.back() == '\n')) { |
no outgoing calls