| 3514 | } |
| 3515 | |
| 3516 | void Value::dupMeta(const Value& other) { |
| 3517 | if (other.comments_) { |
| 3518 | comments_ = new CommentInfo[numberOfCommentPlacement]; |
| 3519 | for (int comment = 0; comment < numberOfCommentPlacement; ++comment) { |
| 3520 | const CommentInfo& otherComment = other.comments_[comment]; |
| 3521 | if (otherComment.comment_) |
| 3522 | comments_[comment].setComment( |
| 3523 | otherComment.comment_, strlen(otherComment.comment_)); |
| 3524 | } |
| 3525 | } else { |
| 3526 | comments_ = 0; |
| 3527 | } |
| 3528 | start_ = other.start_; |
| 3529 | limit_ = other.limit_; |
| 3530 | } |
| 3531 | |
| 3532 | // Access an object value by name, create a null member if it does not exist. |
| 3533 | // @pre Type of '*this' is object or null. |
nothing calls this directly
no test coverage detected