| 56 | } |
| 57 | |
| 58 | void initInSlot(MValue *slot, MCollection *parent, bool isMutable) { |
| 59 | assert(slot); |
| 60 | assert(_context == MContext::gNullContext); |
| 61 | _slot = slot; |
| 62 | _parent = parent; |
| 63 | _mutable = isMutable; |
| 64 | _mutableChildren = isMutable; |
| 65 | _mutated = _slot->isMutated(); |
| 66 | if (_slot->value()) |
| 67 | setContext(_parent->_context); |
| 68 | } |
| 69 | |
| 70 | void initAsCopyOf(const MCollection &original, bool isMutable) { |
| 71 | assert(_context == MContext::gNullContext); |