MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / _visit_node

Method _visit_node

aura/analyzers/python/nodes.py:569–588  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

567 return d
568
569 def _visit_node(self, context):
570 if isinstance(self.value, ASTNode) and self.value._taint_class != Taints.UNKNOWN:
571 self._taint_class = self.value._taint_class
572
573 if type(self.value) == list and self.value == []:
574 self.typing = "list"
575
576 context.visit_child(
577 node=self.var_name,
578 replace=partial(self.__replace_name, visitor=context.visitor),
579 )
580
581 context.visit_child(
582 node=self.value,
583 replace=partial(self.__replace_value, visitor=context.visitor),
584 stack=context.stack.copy(),
585 )
586
587 if self.var_type == "assign" and type(self.var_name) == str:
588 context.stack[self.var_name] = self
589
590 def __replace_value(self, value, visitor):
591 visitor.modified = True

Callers 2

traverseMethod · 0.45
_visit_nodeMethod · 0.45

Calls 2

visit_childMethod · 0.80
copyMethod · 0.45

Tested by 1

traverseMethod · 0.36