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

Method Unwrap

interpreter/frame.go:327–335  ·  view source on GitHub ↗

Unwrap returns the local activation scope if present, or the parent frame.

()

Source from the content-addressed store, hash-verified

325
326// Unwrap returns the local activation scope if present, or the parent frame.
327func (f *ExecutionFrame) Unwrap() Activation {
328 if f.scope != nil {
329 return f.scope
330 }
331 if f.parent != nil {
332 return f.parent
333 }
334 return nil
335}
336
337// IsLocalVariable reports whether the variable name is locally bound in the frame.
338func (f *ExecutionFrame) IsLocalVariable(name string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected