MCPcopy Create free account
hub / github.com/nodejs/node / get_eval_context

Function get_eval_context

deps/v8/third_party/jinja2/nodes.py:92–100  ·  view source on GitHub ↗
(node: "Node", ctx: t.Optional[EvalContext])

Source from the content-addressed store, hash-verified

90
91
92def get_eval_context(node: "Node", ctx: t.Optional[EvalContext]) -> EvalContext:
93 if ctx is None:
94 if node.environment is None:
95 raise RuntimeError(
96 "if no eval context is passed, the node must have an"
97 " attached environment."
98 )
99 return EvalContext(node.environment)
100 return ctx
101
102
103class Node(metaclass=NodeType):

Callers 15

as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70
as_constMethod · 0.70

Calls 1

EvalContextClass · 0.70

Tested by

no test coverage detected