| 3839 | } |
| 3840 | |
| 3841 | void Value::Comments::set(CommentPlacement slot, String comment) { |
| 3842 | if (slot >= CommentPlacement::numberOfCommentPlacement) |
| 3843 | return; |
| 3844 | if (!ptr_) |
| 3845 | ptr_ = std::unique_ptr<Array>(new Array()); |
| 3846 | (*ptr_)[slot] = std::move(comment); |
| 3847 | } |
| 3848 | |
| 3849 | void Value::setComment(String comment, CommentPlacement placement) { |
| 3850 | if (!comment.empty() && (comment.back() == '\n')) { |
no outgoing calls