reset clears any state associated with folder evaluation.
()
| 1706 | |
| 1707 | // reset clears any state associated with folder evaluation. |
| 1708 | func (f *folder) reset() { |
| 1709 | f.evalFold = nil |
| 1710 | f.frame.Pop() |
| 1711 | f.frame = nil |
| 1712 | f.accuVal = nil |
| 1713 | f.iterVar1Val = nil |
| 1714 | f.iterVar2Val = nil |
| 1715 | |
| 1716 | f.initialized = false |
| 1717 | f.mutableValue = false |
| 1718 | f.interrupted = false |
| 1719 | f.computeResult = false |
| 1720 | } |
| 1721 | |
| 1722 | // InterruptError is a specialized error type used to signal that program evaluation should check |
| 1723 | // whether a context cancellation is responsible for the error. |