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

Method as_child

aura/analyzers/python/nodes.py:1476–1486  ·  view source on GitHub ↗
(self, node: NodeType, replace=lambda x: None)

Source from the content-addressed store, hash-verified

1474 return f"{self.visitor.normalized_path}:{self.node.line_no}"
1475
1476 def as_child(self, node: NodeType, replace=lambda x: None) -> Context:
1477 return Context(
1478 parent=self,
1479 node=node,
1480 depth=self.depth + 1,
1481 visitor=self.visitor,
1482 replace=replace,
1483 stack=self.stack,
1484 shared_state=self.shared_state,
1485 scope_closure=self.scope_closure
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 == ...:

Callers 1

visit_childMethod · 0.95

Calls 1

ContextClass · 0.70

Tested by

no test coverage detected