| 128 | |
| 129 | |
| 130 | MutableArray MutableHashTree::getMutableArray(slice key) { |
| 131 | MutableArray result; |
| 132 | insert(key, [&](Value value) -> Value { |
| 133 | auto array = value.asArray(); |
| 134 | result = array.asMutable(); |
| 135 | if (!result) |
| 136 | result = array.mutableCopy(); |
| 137 | return result; |
| 138 | }); |
| 139 | return result; |
| 140 | } |
| 141 | |
| 142 | MutableDict MutableHashTree::getMutableDict(slice key) { |
| 143 | MutableDict result; |
nothing calls this directly
no test coverage detected