Call.get_args()
Returns the arguments of the call, or empty array if the call has no arguments.
get_args() ->
APIList
[Union[
Value
,
NoneObject
]]
Query Example
from glider import *
def query():
instructions = (
Instructions()
.exec(100)
.filter(lambda x: x.is_call())
)
for ins in instructions:
call = ins.get_value()
if isinstance(call, Call):
print(call.get_args().expression)
return instructions
Output

Last updated