VarValue.get_defining_points()
Returns the points which define the variable.
get_defining_points() →
APIList
[
Point
]
Query Example
from glider import *
def query():
instructions = Instructions().exec(1, 2)
for instruction in instructions:
components = instruction.get_components()
for component in components:
if isinstance(component, VarValue):
defining_points = component.get_defining_points()
print(defining_points)
if len(defining_points):
print(defining_points[0].source_code())
return instructions
Output Example

Last updated