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

Method capture

interpreter.go:241–247  ·  view source on GitHub ↗

Build a binding frame containing specified variables.

(freeVars ast.Identifiers)

Source from the content-addressed store, hash-verified

239
240// Build a binding frame containing specified variables.
241func (s *callStack) capture(freeVars ast.Identifiers) bindingFrame {
242 env := make(bindingFrame, len(freeVars))
243 for _, fv := range freeVars {
244 env[fv] = s.lookUpVarOrPanic(fv)
245 }
246 return env
247}
248
249func makeCallStack(limit int) callStack {
250 return callStack{

Callers 2

getCurrentEnvMethod · 0.95
rawevaluateMethod · 0.80

Calls 1

lookUpVarOrPanicMethod · 0.95

Tested by

no test coverage detected