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

Method getCurrentEnv

interpreter.go:233–238  ·  view source on GitHub ↗
(ast ast.Node)

Source from the content-addressed store, hash-verified

231}
232
233func (s *callStack) getCurrentEnv(ast ast.Node) environment {
234 return makeEnvironment(
235 s.capture(ast.FreeVariables()),
236 s.getSelfBinding(),
237 )
238}
239
240// Build a binding frame containing specified variables.
241func (s *callStack) capture(freeVars ast.Identifiers) bindingFrame {

Callers 1

rawevaluateMethod · 0.80

Calls 4

captureMethod · 0.95
getSelfBindingMethod · 0.95
makeEnvironmentFunction · 0.85
FreeVariablesMethod · 0.65

Tested by

no test coverage detected