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

Method visit

tools/inspector_protocol/jinja2/visitor.py:34–39  ·  view source on GitHub ↗

Visit a node.

(self, node, *args, **kwargs)

Source from the content-addressed store, hash-verified

32 return getattr(self, method, None)
33
34 def visit(self, node, *args, **kwargs):
35 """Visit a node."""
36 f = self.get_visitor(node)
37 if f is not None:
38 return f(node, *args, **kwargs)
39 return self.generic_visit(node, *args, **kwargs)
40
41 def generic_visit(self, node, *args, **kwargs):
42 """Called if no explicit visitor function exists for a node."""

Callers 15

generic_visitMethod · 0.95
optimizeFunction · 0.45
new_funcFunction · 0.45
generateFunction · 0.45
find_undeclaredFunction · 0.45
blockvisitMethod · 0.45
signatureMethod · 0.45
pull_dependenciesMethod · 0.45
macro_bodyMethod · 0.45
visit_ExtendsMethod · 0.45
visit_IncludeMethod · 0.45

Calls 3

get_visitorMethod · 0.95
generic_visitMethod · 0.95
fFunction · 0.50

Tested by

no test coverage detected