MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Pop

Method Pop

interpreter/frame.go:226–242  ·  view source on GitHub ↗

Pop returns the parent frame, releasing the current frame back to the pool.

()

Source from the content-addressed store, hash-verified

224
225// Pop returns the parent frame, releasing the current frame back to the pool.
226func (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.
245func (f *ExecutionFrame) ResolveName(name string) (any, bool) {

Callers 11

resetMethod · 0.45
TestFrameResolveNameFunction · 0.45
TestFrameParentFunction · 0.45
TestFrameUnwrapFunction · 0.45
TestFramePushPopFunction · 0.45
TestFramePopBaseFrameFunction · 0.45

Calls

no outgoing calls

Tested by 10

TestFrameResolveNameFunction · 0.36
TestFrameParentFunction · 0.36
TestFrameUnwrapFunction · 0.36
TestFramePushPopFunction · 0.36
TestFramePopBaseFrameFunction · 0.36