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

Method PushInherited

checker/scopes.go:50–55  ·  view source on GitHub ↗

PushInherited creates a new Scopes value which references the current Scope as its inherited parent.

()

Source from the content-addressed store, hash-verified

48
49// PushInherited creates a new Scopes value which references the current Scope as its inherited parent.
50func (s *Scopes) PushInherited() *Scopes {
51 return &Scopes{
52 inherited: s,
53 scopes: newGroup(),
54 }
55}
56
57// Pop returns the parent Scopes value for the current scope, or the current scope if the parent
58// is nil.

Callers 1

NewEnvFunction · 0.80

Calls 1

newGroupFunction · 0.85

Tested by

no test coverage detected