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

Function make_calls

code2flow/ruby.py:75–86  ·  view source on GitHub ↗

Given a list of lines, find all calls in this list. :param body_el ast: :rtype: list[Call]

(body_el)

Source from the content-addressed store, hash-verified

73
74
75def make_calls(body_el):
76 """
77 Given a list of lines, find all calls in this list.
78
79 :param body_el ast:
80 :rtype: list[Call]
81 """
82 calls = []
83 for el in walk(body_el):
84 if el[0] == 'send':
85 calls.append(get_call_from_send_el(el))
86 return calls
87
88
89def process_assign(assignment_el):

Callers 2

make_nodesMethod · 0.70
make_root_nodeMethod · 0.70

Calls 2

get_call_from_send_elFunction · 0.85
walkFunction · 0.70

Tested by

no test coverage detected