MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / visit_child

Method visit_child

aura/analyzers/python/nodes.py:1488–1497  ·  view source on GitHub ↗
(self, node, stack=None, replace=lambda x: None, closure=None)

Source from the content-addressed store, hash-verified

1486 )
1487
1488 def visit_child(self, node, stack=None, replace=lambda x: None, closure=None):
1489 if type(node) in (str, int, type(...)) or node is None or node == ...:
1490 return
1491
1492 new_context = self.as_child(node, replace=replace)
1493 if stack is not None:
1494 new_context.stack = stack
1495 if closure is not None:
1496 new_context.scope_closure = closure
1497 new_context.visitor.push(new_context)
1498
1499
1500def to_json(element):

Callers 15

__visit_dictMethod · 0.80
__visit_listMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80
_visit_nodeMethod · 0.80

Calls 2

as_childMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected