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

Function get_func_ranges_c

persper/analytics/call_graph/c.py:107–117  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

105
106
107def get_func_ranges_c(root):
108 func_names, func_ranges = [], []
109 for func_node in root.findall('./srcml:function', namespaces=ns):
110
111 func_name, start_line, end_line = handle_function(func_node)
112 if not (func_name and start_line and end_line):
113 continue
114
115 func_ranges.append([start_line, end_line])
116 func_names.append(func_name)
117 return func_names, func_ranges

Callers

nothing calls this directly

Calls 1

handle_functionFunction · 0.70

Tested by

no test coverage detected