| 35 | } |
| 36 | |
| 37 | void OperationStack::push(RYWMutation entry) { |
| 38 | if (defaultConstructed) { |
| 39 | singletonOperation = entry; |
| 40 | defaultConstructed = false; |
| 41 | } else if (hasVector()) |
| 42 | optionalOperations.get().push_back(entry); |
| 43 | else { |
| 44 | optionalOperations = std::vector<RYWMutation>(); |
| 45 | optionalOperations.get().push_back(entry); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | bool OperationStack::isDependent() const { |
| 50 | if (!size()) |
no test coverage detected