MCPcopy
hub / github.com/pallets/jinja / generic_visit

Method generic_visit

src/jinja2/visitor.py:44–47  ·  view source on GitHub ↗

Called if no explicit visitor function exists for a node.

(self, node: Node, *args: t.Any, **kwargs: t.Any)

Source from the content-addressed store, hash-verified

42 return self.generic_visit(node, *args, **kwargs)
43
44 def generic_visit(self, node: Node, *args: t.Any, **kwargs: t.Any) -> t.Any:
45 """Called if no explicit visitor function exists for a node."""
46 for child_node in node.iter_child_nodes():
47 self.visit(child_node, *args, **kwargs)
48
49
50class NodeTransformer(NodeVisitor):

Callers 1

visitMethod · 0.95

Calls 2

visitMethod · 0.95
iter_child_nodesMethod · 0.80

Tested by

no test coverage detected