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

Method __visit_dict

aura/analyzers/python/visitor.py:279–290  ·  view source on GitHub ↗
(self, key: str, context: Context)

Source from the content-addressed store, hash-verified

277 context.node._visit_node(context)
278
279 def __visit_dict(self, key: str, context: Context):
280 value = context.node[key]
281
282 if type(value) == dict and len(value) == 1 and value.get("_type") == "Load":
283 return
284 elif type(value) in (tuple, list) and len(value) == 0:
285 return
286
287 context.visit_child(
288 node=context.node[key],
289 replace=partial(self._replace_generic, key=key, context=context),
290 )
291
292 def __visit_list(self, idx: int, item, context: Context):
293 context.visit_child(

Callers 1

__process_contextMethod · 0.95

Calls 2

getMethod · 0.80
visit_childMethod · 0.80

Tested by

no test coverage detected