LocalVariables.with_type()

Returns the list of local variables having specified type.

with_type(var_type: str) → APIList[LocalVariable]

Query Example

from glider import *

def query():

  local_variables = (
    Functions()
    .exec(1, 17)
    .local_variables()
    )

  print(local_variables[0].with_type("address").source_code())

  return []

Output Example

Last updated