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

Method Push

checker/scopes.go:54–59  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

52
53// Push creates a new Scopes value which references the current Scope as its parent.
54func (s *Scopes) Push() *Scopes {
55 return &Scopes{
56 parent: s,
57 scopes: newGroup(),
58 }
59}
60
61// Pop returns the parent Scopes value for the current scope, or the current scope if the parent
62// is nil.

Callers 4

NewEnvFunction · 0.45
enterScopeMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45

Calls 1

newGroupFunction · 0.85

Tested by

no test coverage detected