VarValue.get_parent()

Returns parent function/modifier of the variable.

get_parent() → Callable

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):
        parent = component.get_parent()
        print(parent)
        
  return instructions

Output Example

Last updated