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

Method _visit_node

aura/analyzers/python/jinja.py:95–105  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

93 return getattr(self.jinja_node, item)
94
95 def _visit_node(self, context):
96 try:
97 for name, node in self.jinja_node.iter_fields():
98 context.visit_child(
99 node=node,
100 replace=partial(
101 self.__replace_field, attr=name, visitor=context.visitor
102 ),
103 )
104 except AttributeError:
105 pass
106
107 def __replace_field(self, value, attr, visitor):
108 setattr(self.jinja_node, attr, value)

Callers 1

_visit_nodeMethod · 0.45

Calls 1

visit_childMethod · 0.80

Tested by

no test coverage detected