Skip to content
Snippets Groups Projects
Commit 0d98db98 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni
Browse files

Fixes minor typo in ScopeFunctionCollector

parent a2b18211
No related branches found
No related tags found
2 merge requests!426Discussion: kernel_callables_v3-edit2,!246WIP: Kernel Callables
Pipeline #
......@@ -682,7 +682,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
ScopedFunction(self.expr_to_new_names[expr]),
tuple(self.rec(child)
for child in expr.parameters))
elif expanded_expr in self.expr_to_names:
elif expanded_expr in self.expr_to_new_names:
return type(expr)(
ScopedFunction(self.expr_to_new_names[expanded_expr]),
tuple(self.rec(child)
......@@ -703,7 +703,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
(key, self.rec(val, expn_state))
for key, val in six.iteritems(expr.kw_parameters))
)
elif expanded_expr in self.expr_to_names:
elif expanded_expr in self.expr_to_new_names:
return type(expr)(
ScopedFunction(self.expr_to_new_names[expanded_expr]),
tuple(self.rec(child, expn_state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment