MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / generic_visit

Method generic_visit

tools/python-3.11.9-amd64/Lib/ast.py:420–428  ·  view source on GitHub ↗

Called if no explicit visitor function exists for a node.

(self, node)

Source from the content-addressed store, hash-verified

418 return visitor(node)
419
420 def generic_visit(self, node):
421 """Called if no explicit visitor function exists for a node."""
422 for field, value in iter_fields(node):
423 if isinstance(value, list):
424 for item in value:
425 if isinstance(item, AST):
426 self.visit(item)
427 elif isinstance(value, AST):
428 self.visit(value)
429
430 def visit_Constant(self, node):
431 value = node.value

Callers 5

visit_ConstantMethod · 0.95
visit_FunctionDefMethod · 0.45
visit_ClassDefMethod · 0.45
visit_ClassDefMethod · 0.45
visit_FunctionDefMethod · 0.45

Calls 2

visitMethod · 0.95
iter_fieldsFunction · 0.70

Tested by

no test coverage detected