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

Function new_func

tools/inspector_protocol/jinja2/compiler.py:64–70  ·  view source on GitHub ↗
(self, node, frame, **kwargs)

Source from the content-addressed store, hash-verified

62
63def optimizeconst(f):
64 def new_func(self, node, frame, **kwargs):
65 # Only optimize if the frame is not volatile
66 if self.optimized and not frame.eval_ctx.volatile:
67 new_node = self.optimizer.visit(node, frame.eval_ctx)
68 if new_node != node:
69 return self.visit(new_node, frame)
70 return f(self, node, frame, **kwargs)
71 return update_wrapper(new_func, f)
72
73

Callers

nothing calls this directly

Calls 2

fFunction · 0.50
visitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…