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

Function make_calls

code2flow/php.py:131–144  ·  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

129
130
131def make_calls(body_el):
132 """
133 Given a list of lines, find all calls in this list.
134
135 :param body_el ast:
136 :rtype: list[Call]
137 """
138 calls = []
139 for expr in walk(body_el):
140 call = get_call_from_expr(expr)
141 calls.append(call)
142 ret = list(filter(None, calls))
143
144 return ret
145
146
147def process_assign(assignment_el):

Callers 2

make_nodesMethod · 0.70
make_root_nodeMethod · 0.70

Calls 2

get_call_from_exprFunction · 0.85
walkFunction · 0.70

Tested by

no test coverage detected