aboutsummaryrefslogtreecommitdiff
path: root/lib/control_flow.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/control_flow.nom')
-rw-r--r--lib/control_flow.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/control_flow.nom b/lib/control_flow.nom
index b7b5f19..7658ae1 100644
--- a/lib/control_flow.nom
+++ b/lib/control_flow.nom
@@ -31,10 +31,10 @@ compile [go to %label] to code: ".."
rule [tree %tree has function call %call] =:
lua> ".."
- local target = (\(%call)).value;
+ local target = (\(%call)).stub;
for subtree,_ in coroutine.wrap(function() nomsu:walk_tree(\(%tree)); end) do
if type(subtree) == 'table' and subtree.type == "FunctionCall"
- and nomsu.utils.equivalent(subtree.value, target, 2) then
+ and subtree.stub == target then
return true;
end
end