Modifier.placer_instructions()

placer_instructions() → Instructions

Returns placeholder instructions of the modifier.

The placeholder or placer instruction is the "_" (underline) instruction which defines where the function code must be inline in the modifier.

Return type

→ List[Instruction]

An example of a query which can analyze placeholder instructions is:

from glider import *

def query():
  modifierlist = (
      Modifiers()
      .with_name_prefix("lock")
      .exec(3)
  )
  
  results =  []

  for modd in modifierlist:
    for placers in modd.placer_instructions().exec():
      results.append(placers)

  return results

Output

Last updated