Callables.with_callee_names()

Adds a filter to get functions/modifiers having specified callee names.

with_callee_names(names: List[str], sensitivity: bool = True) → Callables

Adds a filter to get callables that have all of the specified callees (functions that are being called within a function/modifier). Returns a filtered Callables child object.

This method can be called on all Callables child classes: Functions and Modifiers.

Function Example

from glider import *

def query():
  # Retrieve all the modifiers with the signature `nonReentrant()`
  functions = Functions().with_callee_names(["owner", "msgSender"]).exec(1)

  # Return the first five modifiers
  return functions

Output

Modifier Example

from glider import *

def query():
  # Retrieve all the modifiers with the signature `nonReentrant()`
  modifiers = Modifiers().with_callee_names(["owner", "msgSender"]).exec(1)

  # Return the first five modifiers
  return modifiers

Output

Last updated