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

Function handle_name

persper/graphs/call_graph/c.py:37–44  ·  view source on GitHub ↗

Given an node, return its text content and position (line)

(name_node)

Source from the content-addressed store, hash-verified

35
36
37def handle_name(name_node):
38 """Given an <name> node,
39 return its text content and position (line)"""
40 text, line = None, None
41 if name_node is not None:
42 text = name_node.text
43 line = int(name_node.attrib[line_attr])
44 return text, line
45
46
47def handle_call(call_node):

Callers 1

handle_functionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected