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

Function newScopes

checker/scopes.go:34–38  ·  view source on GitHub ↗

newScopes creates a new, empty Scopes. Some operations can't be safely performed until a Group is added with Push.

()

Source from the content-addressed store, hash-verified

32// newScopes creates a new, empty Scopes.
33// Some operations can't be safely performed until a Group is added with Push.
34func newScopes() *Scopes {
35 return &Scopes{
36 scopes: newGroup(),
37 }
38}
39
40// Copy creates a copy of the current Scopes values, including a copy of its parent if non-nil.
41func (s *Scopes) Copy() *Scopes {

Callers 2

NewEnvFunction · 0.85
CopyMethod · 0.85

Calls 1

newGroupFunction · 0.85

Tested by

no test coverage detected