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

Function get_func_ranges_c

persper/graphs/call_graph/c.py:140–150  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

138
139
140def get_func_ranges_c(root):
141 func_names, func_ranges = [], []
142 for func_node in root.findall('./srcml:function', namespaces=ns):
143
144 func_name, start_line, end_line = handle_function(func_node)
145 if not (func_name and start_line and end_line):
146 continue
147
148 func_ranges.append([start_line, end_line])
149 func_names.append(func_name)
150 return func_names, func_ranges

Callers 4

update_graphMethod · 0.90
parseMethod · 0.90
_first_phaseMethod · 0.90
_second_phaseMethod · 0.90

Calls 1

handle_functionFunction · 0.70

Tested by

no test coverage detected