reset clears any state associated with folder evaluation.
()
| 1644 | |
| 1645 | // reset clears any state associated with folder evaluation. |
| 1646 | func (f *folder) reset() { |
| 1647 | f.evalFold = nil |
| 1648 | f.frame.Pop() |
| 1649 | f.frame = nil |
| 1650 | f.accuVal = nil |
| 1651 | f.iterVar1Val = nil |
| 1652 | f.iterVar2Val = nil |
| 1653 | |
| 1654 | f.initialized = false |
| 1655 | f.mutableValue = false |
| 1656 | f.interrupted = false |
| 1657 | f.computeResult = false |
| 1658 | } |
| 1659 | |
| 1660 | // InterruptError is a specialized error type used to signal that program evaluation should check |
| 1661 | // whether a context cancellation is responsible for the error. |