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

Function makeParamVar

repl/evaluator.go:129–135  ·  view source on GitHub ↗
(env *cel.Env, id string, t *envlib.TypeDesc)

Source from the content-addressed store, hash-verified

127}
128
129func makeParamVar(env *cel.Env, id string, t *envlib.TypeDesc) (*decls.VariableDecl, error) {
130 rt, err := t.AsCELType(env.CELTypeProvider())
131 if err != nil {
132 return nil, err
133 }
134 return decls.NewVariable(id, rt), nil
135}
136
137func (l *letFunction) updateImpl(env *cel.Env) error {
138 // declaration but no binding.

Callers 1

updateImplMethod · 0.85

Calls 3

NewVariableFunction · 0.92
AsCELTypeMethod · 0.80
CELTypeProviderMethod · 0.80

Tested by

no test coverage detected