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

Method Pop

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

Pop returns the parent Scopes value for the current scope, or the current scope if the parent is nil.

()

Source from the content-addressed store, hash-verified

57// Pop returns the parent Scopes value for the current scope, or the current scope if the parent
58// is nil.
59func (s *Scopes) Pop() *Scopes {
60 if s.parent != nil {
61 return s.parent
62 }
63 // TODO: Consider whether this should be an error / panic.
64 return s
65}
66
67// AddIdent adds the ident Decl in the current scope.
68// Note: If the name collides with an existing identifier in the scope, the Decl is overwritten.

Callers 3

exitScopeMethod · 0.45
ExecMethod · 0.45
ExecMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected