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

Function handle_name_node

persper/graphs/call_graph/java.py:21–34  ·  view source on GitHub ↗
(name_node)

Source from the content-addressed store, hash-verified

19
20
21def handle_name_node(name_node):
22 return transform_node_to_src(name_node).strip()
23
24 """
25 child_nodes = name_node.getchildren()
26 text_of_itself = name_node.text or ''
27 if len(child_nodes) == 0:
28 return text_of_itself
29 else:
30 child_names = []
31 for child_node in child_nodes:
32 child_names.append(handle_name_node(child_node))
33 return text_of_itself + ''.join(child_names)
34 """
35
36
37def get_name(node):

Callers 4

get_nameFunction · 0.70
get_typeFunction · 0.70
handle_decl_nodeFunction · 0.70
handle_decl_stmt_nodeFunction · 0.70

Calls 1

transform_node_to_srcFunction · 0.90

Tested by

no test coverage detected