Call.get_arg()
Returns the i-th argument of called function
get_arg(i: int) -> Union[
Value
,
NoneObject
]
Query Example
from glider import *
def query():
instructions = (
Instructions()
.exec(1, 89)
.filter(lambda x: x.is_call())
)
for ins in instructions:
call = ins.get_value()
if isinstance(call, Call):
print(call.get_arg(0).expression)
print(call.get_arg(1).expression)
print(call.get_arg(2).expression)
return instructions
Output Example

Last updated