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

Function update_call_graph_java

persper/graphs/call_graph/java.py:374–383  ·  view source on GitHub ↗
(G, roots, modified_func, env=None)

Source from the content-addressed store, hash-verified

372
373
374def update_call_graph_java(G, roots, modified_func, env=None):
375 for fid in modified_func:
376 if fid in G:
377 remove_edges_of_node(G, fid, in_edges=False)
378 G.node[fid]['num_lines'] += modified_func[fid]
379
380 # here roots should be constructed from the more recent commit
381 # new functions and their sizes are stored in new_func dictionary
382 _, new_func, _, _ = build_call_graph_java(roots, G, env=env)
383 return new_func
384
385
386def get_func_ranges_java(root):

Callers 1

_first_phaseMethod · 0.90

Calls 2

remove_edges_of_nodeFunction · 0.90
build_call_graph_javaFunction · 0.70

Tested by

no test coverage detected