| 119 | } |
| 120 | |
| 121 | void Node::MergeAttr(Node* orig) |
| 122 | { |
| 123 | auto ir = orig->dict_map_.begin(); |
| 124 | const auto end = orig->dict_map_.end(); |
| 125 | |
| 126 | while(ir != end) |
| 127 | { |
| 128 | dict_map_[ir->first].swap(orig->dict_map_[ir->first]); |
| 129 | ir++; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /* code for attr get/set/add */ |
| 134 |
no test coverage detected