MCPcopy
hub / github.com/google/go-jsonnet / evaluate

Method evaluate

thunks.go:96–100  ·  view source on GitHub ↗
(i *interpreter, sb selfBinding, origBindings bindingFrame, fieldName string)

Source from the content-addressed store, hash-verified

94}
95
96func (f *codeUnboundField) evaluate(i *interpreter, sb selfBinding, origBindings bindingFrame, fieldName string) (value, error) {
97 env := makeEnvironment(origBindings, sb)
98 val, err := i.EvalInCleanEnv(&env, f.body, false)
99 return val, err
100}
101
102func (f *codeUnboundField) loc() *ast.LocationRange {
103 return f.body.Loc()

Callers

nothing calls this directly

Calls 2

makeEnvironmentFunction · 0.85
EvalInCleanEnvMethod · 0.80

Tested by

no test coverage detected