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

Struct Env

checker/env.go:71–78  ·  view source on GitHub ↗

Env is the environment for type checking. The Env is comprised of a container, type provider, declarations, and other related objects which can be used to assist with type-checking.

Source from the content-addressed store, hash-verified

69// The Env is comprised of a container, type provider, declarations, and other related objects
70// which can be used to assist with type-checking.
71type Env struct {
72 container *containers.Container
73 provider types.Provider
74 declarations *Scopes
75 aggLitElemType aggregateLiteralElementType
76 filteredOverloadIDs map[string]struct{}
77 jsonFieldNames bool
78}
79
80// NewEnv returns a new *Env with the given parameters.
81func NewEnv(container *containers.Container, provider types.Provider, opts ...Option) (*Env, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected