MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / _find_links

Function _find_links

code2flow/engine.py:413–429  ·  view source on GitHub ↗

Iterate through the calls on node_a to find everything the node links to. This will return a list of tuples of nodes and calls that were ambiguous. :param Node node_a: :param list[Node] all_nodes: :param BaseLanguage language: :rtype: list[(Node, Call)]

(node_a, all_nodes)

Source from the content-addressed store, hash-verified

411
412
413def _find_links(node_a, all_nodes):
414 """
415 Iterate through the calls on node_a to find everything the node links to.
416 This will return a list of tuples of nodes and calls that were ambiguous.
417
418 :param Node node_a:
419 :param list[Node] all_nodes:
420 :param BaseLanguage language:
421 :rtype: list[(Node, Call)]
422 """
423
424 links = []
425 for call in node_a.calls:
426 lfc = _find_link_for_call(call, node_a, all_nodes)
427 assert not isinstance(lfc, Group)
428 links.append(lfc)
429 return list(filter(None, links))
430
431
432def map_it(sources, extension, no_trimming, exclude_namespaces, exclude_functions,

Callers 1

map_itFunction · 0.85

Calls 1

_find_link_for_callFunction · 0.85

Tested by

no test coverage detected