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

Method exitScope

checker/env.go:335–343  ·  view source on GitHub ↗

exitScope creates a new Env instance with the nearest outer declaration scope.

()

Source from the content-addressed store, hash-verified

333
334// exitScope creates a new Env instance with the nearest outer declaration scope.
335func (e *Env) exitScope() *Env {
336 parentDecls := e.declarations.Pop()
337 return &Env{
338 declarations: parentDecls,
339 container: e.container,
340 provider: e.provider,
341 aggLitElemType: e.aggLitElemType,
342 }
343}
344
345// errorMsg is a type alias meant to represent error-based return values which
346// may be accumulated into an error at a later point in execution.

Callers 1

checkComprehensionMethod · 0.45

Calls 1

PopMethod · 0.45

Tested by

no test coverage detected