Dynamically created trailers need a parent, otherwise it can lead to crashes.
This commit is contained in:
1 parent
b59fc04432
commit
bb02f99de3
2 files changed
+2
-1
No files matched your search
@@ -53,9 +53,9 @@ def search_params(evaluator, param):
|
||||
"""
|
||||
if not settings.dynamic_params:
|
||||
return []
|
||||
debug.dbg('Dynamic param search for %s', param)
|
||||
|
||||
func = param.get_parent_until(tree.Function)
|
||||
debug.dbg('Dynamic param search for %s in %s.', param, str(func.name))
|
||||
# Compare the param names.
|
||||
names = [n for n in search_function_call(evaluator, func)
|
||||
if n.value == param.name.value]
|
||||
|
||||
Reference in new issue
Block a user