Returns a list of VarValue objects of current value whose corresponding object is a StateVariable.
Last updated 1 month ago
get_state_vars() ->APIList[VarValue]
get_state_vars() ->
APIList
[
VarValue
]
The function returns all the state variables used (read/written) inside the Value.
from glider import * def query(): instructions = ( Functions() .with_one_property([MethodProp.HAS_STATE_VARIABLES_READ,MethodProp.HAS_STATE_VARIABLES_WRITTEN]) .instructions() .exec(1,2) ) for instruction in instructions: print(instruction.get_components().get_state_vars().expression) return instructions