From a9c4b78074d1cf4399e9e2bc9e98d6d0c772ec29 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 13 Feb 2018 15:17:45 -0800 Subject: Initial branch of switching to using immutable types. --- core/control_flow.nom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/control_flow.nom') diff --git a/core/control_flow.nom b/core/control_flow.nom index 4066a97..d40c349 100644 --- a/core/control_flow.nom +++ b/core/control_flow.nom @@ -88,7 +88,7 @@ immediately: locals: %body_lua's "locals" statements:".." for \(%subtree as lua expr) in coroutine.wrap(function() nomsu:walk_tree(\(%tree as lua expr)) end) do - if type(\(%subtree as lua expr)) == 'table' and \(%subtree as lua expr).type then + if Types.is_node(\(%subtree as lua expr)) then if \(%condition as lua expr) then \%body_statements break; -- cgit v1.2.3