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

Method create

interpreter/frame.go:337–343  ·  view source on GitHub ↗
(parent, child Activation)

Source from the content-addressed store, hash-verified

335}
336
337func (pool *activationStackPool) create(parent, child Activation) Activation {
338 h := pool.Get().(*hierarchicalActivation)
339 h.child = child
340 h.parent = parent
341 h.poolAllocated = true
342 return h
343}
344
345func (pool *activationStackPool) release(activation Activation) {
346 h, ok := activation.(*hierarchicalActivation)

Callers 4

TestTrackerPoolShrinkFunction · 0.45
NewExecutionFrameFunction · 0.45
SetContextMethod · 0.45
PushMethod · 0.45

Calls 1

GetMethod · 0.65

Tested by 1

TestTrackerPoolShrinkFunction · 0.36