| 3528 | } |
| 3529 | |
| 3530 | void Value::dupMeta(const Value& other) { |
| 3531 | if (other.comments_) { |
| 3532 | comments_ = new CommentInfo[numberOfCommentPlacement]; |
| 3533 | for (int comment = 0; comment < numberOfCommentPlacement; ++comment) { |
| 3534 | const CommentInfo& otherComment = other.comments_[comment]; |
| 3535 | if (otherComment.comment_) |
| 3536 | comments_[comment].setComment(otherComment.comment_, |
| 3537 | strlen(otherComment.comment_)); |
| 3538 | } |
| 3539 | } else { |
| 3540 | comments_ = 0; |
| 3541 | } |
| 3542 | start_ = other.start_; |
| 3543 | limit_ = other.limit_; |
| 3544 | } |
| 3545 | |
| 3546 | // Access an object value by name, create a null member if it does not exist. |
| 3547 | // @pre Type of '*this' is object or null. |
nothing calls this directly
no test coverage detected