MCPcopy Create free account
hub / github.com/Persper/code-analytics / transform_node_to_src

Function transform_node_to_src

persper/graphs/call_graph/utils.py:7–17  ·  view source on GitHub ↗

Print out the source code of a xml node

(node, s=None)

Source from the content-addressed store, hash-verified

5
6
7def transform_node_to_src(node, s=None):
8 """Print out the source code of a xml node"""
9 if s is None:
10 s = ""
11 if node.text:
12 s += node.text
13 for child in node:
14 s = transform_node_to_src(child, s)
15 if node.tail:
16 s += node.tail
17 return s
18
19
20def remove_edges_of_node(G, n, in_edges=True, out_edges=True):

Callers 1

handle_name_nodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected