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

Method Pop

interpreter/frame.go:166–177  ·  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

164
165// Pop returns the parent frame, releasing the current frame back to the pool.
166func (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.
180func (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 1

releaseMethod · 0.45

Tested by 10

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