LocalVariables.with_memory_type()
Returns the list of local variables having specified memory type.
with_memory_type(memory_type: str) → APIList[LocalVariable]
Query Example
from glider import *
def query():
functions = (
Functions()
.with_name("functionCallWithValue")
.exec(3)
)
for func in functions:
local_vars = func.local_variables().with_memory_type("memory")
for local_var in local_vars:
print(local_var.source_code())
return functionsExample Output

Last updated