MCPcopy Create free account
hub / github.com/ActiveState/code / convert

Method convert

recipes/Python/579019_Python_AST_to_XML/recipe-579019.py:31–33  ·  view source on GitHub ↗
(self, tree)

Source from the content-addressed store, hash-verified

29 self.root = etree.Element('ast')
30 self.celement = self.root
31 def convert(self, tree):
32 self.visit(tree)
33 return etree.tostring(self.root)
34 def generic_visit(self, node):
35 node_name = type(node).__name__
36 self.path.append(node_name)

Callers 7

mainFunction · 0.45
reduce_opacityFunction · 0.45
watermarkFunction · 0.45
recipe-580702.pyFile · 0.45
GetRgbFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45

Calls 2

tostringMethod · 0.80
visitMethod · 0.45

Tested by

no test coverage detected