MCPcopy Index your code
hub / github.com/nodejs/node / get_eval_context

Function get_eval_context

tools/inspector_protocol/jinja2/nodes.py:97–104  ·  view source on GitHub ↗
(node, ctx)

Source from the content-addressed store, hash-verified

95
96
97def get_eval_context(node, ctx):
98 if ctx is None:
99 if node.environment is None:
100 raise RuntimeError('if no eval context is passed, the '
101 'node must have an attached '
102 'environment.')
103 return EvalContext(node.environment)
104 return ctx
105
106
107class Node(with_metaclass(NodeType, object)):

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…