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

Method Pop

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

145
146// Pop returns the parent frame, releasing the current frame back to the pool.
147func (f *ExecutionFrame) Pop() *ExecutionFrame {
148 if f.parent == nil {
149 return f
150 }
151 parent := f.parent
152 activationStack.release(f.Activation)
153 f.Activation = nil
154 f.parent = nil
155 f.ctx = nil
156 frameStack.Put(f)
157 return parent
158}
159
160// ResolveName implements the Activation interface by proxying to the internal activation.
161func (f *ExecutionFrame) ResolveName(name string) (any, bool) {

Callers 8

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 7

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