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

Function optimize

tools/inspector_protocol/jinja2/optimizer.py:23–27  ·  view source on GitHub ↗

The context hint can be used to perform an static optimization based on the context given.

(node, environment)

Source from the content-addressed store, hash-verified

21
22
23def optimize(node, environment):
24 """The context hint can be used to perform an static optimization
25 based on the context given."""
26 optimizer = Optimizer(environment)
27 return optimizer.visit(node)
28
29
30class Optimizer(NodeTransformer):

Callers

nothing calls this directly

Calls 2

OptimizerClass · 0.70
visitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…