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

Class EvalContext

tools/inspector_protocol/jinja2/nodes.py:76–94  ·  view source on GitHub ↗

Holds evaluation time information. Custom attributes can be attached to it in extensions.

Source from the content-addressed store, hash-verified

74
75
76class EvalContext(object):
77 """Holds evaluation time information. Custom attributes can be attached
78 to it in extensions.
79 """
80
81 def __init__(self, environment, template_name=None):
82 self.environment = environment
83 if callable(environment.autoescape):
84 self.autoescape = environment.autoescape(template_name)
85 else:
86 self.autoescape = environment.autoescape
87 self.volatile = False
88
89 def save(self):
90 return self.__dict__.copy()
91
92 def revert(self, old):
93 self.__dict__.clear()
94 self.__dict__.update(old)
95
96
97def get_eval_context(node, ctx):

Callers 4

__init__Method · 0.90
call_filterMethod · 0.90
visit_TemplateMethod · 0.90
get_eval_contextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…