Instruction.source_lines()

Returns the corresponding source line numbers of a instruction

Query

from glider import *
def query():
  #fetch a list of instructions
  instructions = Instructions().exec(1) 
  #print the corresponding source line numbers of the instruction
  print(instructions[0].source_lines())
  return []

Output

{
  "print_output": [
    "[19, 20, 21]"
  ]
}

Last updated