Pop returns the parent frame, releasing the current frame back to the pool.
()
| 224 | |
| 225 | // Pop returns the parent frame, releasing the current frame back to the pool. |
| 226 | func (f *ExecutionFrame) Pop() *ExecutionFrame { |
| 227 | if f.parent == nil { |
| 228 | return f |
| 229 | } |
| 230 | parent := f.parent |
| 231 | f.scope = nil |
| 232 | f.parent = nil |
| 233 | f.functions = nil |
| 234 | f.ctx = nil |
| 235 | f.costTracker = nil |
| 236 | if f.vars != nil { |
| 237 | f.vars = nil |
| 238 | clear(f.lazyVars) |
| 239 | } |
| 240 | frameStack.Put(f) |
| 241 | return parent |
| 242 | } |
| 243 | |
| 244 | // ResolveName implements the Activation interface by proxying to the internal activation. |
| 245 | func (f *ExecutionFrame) ResolveName(name string) (any, bool) { |
no outgoing calls