Pop returns the parent frame, releasing the current frame back to the pool.
()
| 164 | |
| 165 | // Pop returns the parent frame, releasing the current frame back to the pool. |
| 166 | func (f *ExecutionFrame) Pop() *ExecutionFrame { |
| 167 | if f.parent == nil { |
| 168 | return f |
| 169 | } |
| 170 | parent := f.parent |
| 171 | activationStack.release(f.Activation) |
| 172 | f.Activation = nil |
| 173 | f.parent = nil |
| 174 | f.ctx = nil |
| 175 | frameStack.Put(f) |
| 176 | return parent |
| 177 | } |
| 178 | |
| 179 | // ResolveName implements the Activation interface by proxying to the internal activation. |
| 180 | func (f *ExecutionFrame) ResolveName(name string) (any, bool) { |