@debug.increase_indent
def search_params(evaluator, param):
 if (not settings.dynamic_params):
  return set()
 evaluator.dynamic_params_depth += 1
 try:
  func = param.get_parent_until(tree.Function)
  debug.dbg('Dynamic param search for %s in %s.', param, str(func.name), color='MAGENTA')
  names = [n for n in search_function_call(evaluator, func) if (n.value == param.name.value)]
  result = set(chain.from_iterable((n.parent.eval(evaluator) for n in names)))
  debug.dbg('Dynamic param result %s', result, color='MAGENTA')
  return result
 finally:
  evaluator.dynamic_params_depth -= 1

@ debug . increase_indent def search_params ( evaluator , param ) : if ( not settings . dynamic_params ) : return set ( ) evaluator . dynamic_params_depth += 1 try : func = param . get_parent_until ( tree . Function ) debug . dbg ( 'Dynamic param search for %s in %s.' , param , str ( func . name ) , color = 'MAGENTA' ) names = [ n for n in search_function_call ( evaluator , func ) if ( n . value == param . name . value ) ] result = set ( chain . from_iterable ( ( n . parent . eval ( evaluator ) for n in names ) ) ) debug . dbg ( 'Dynamic param result %s' , result , color = 'MAGENTA' ) return result finally : evaluator . dynamic_params_depth -= 1
a dynamic search for param values .