For the complete documentation index, see llms.txt. This page is also available as Markdown.

LocalVariable.index

Returns the index of the local variable in relation to the function scope.

Query Example

from glider import *


def query():
  functions = (
    Functions()
    .with_name("communityMint")
    .exec(1)
  )

  for func in functions:
    local_vars = func.local_variables().list()
    for local_var in local_vars:
      print(local_var.source_code())
      print(local_var.index)

  return functions

Example Output

Last updated