Argument.index
Returns the index of the argument.
Query Example
from glider import *
def query():
functions = Functions().with_arg_count(5).exec(1)
function_with_args = []
for f in functions:
# For each of its arguments...
for arg in f.arguments().list():
# ...return the data of the argument
print(arg.source_code() + '\n\n' + str(arg.index))
return functionsExample Output
Last updated