]> git.lizzy.rs Git - metalua.git/commitdiff
walk now also accepts `Local nodes without rhs
authorFabien Fleutot <fabien@macfabien.local>
Sun, 3 Feb 2008 12:18:24 +0000 (13:18 +0100)
committerFabien Fleutot <fabien@macfabien.local>
Sun, 3 Feb 2008 12:18:24 +0000 (13:18 +0100)
src/lib/walk.mlua

index 9f9e09ea50137ea8d8c9ddd4795d2197aaf6aa75..e8fa05cbadb7121cb9004947676a9bf2c537ea7c 100644 (file)
@@ -172,6 +172,7 @@ function walk.traverse.stat (cfg, x, ...)
    | `Set{ lhs, rhs }            -> EL(lhs); EL(rhs)\r
    | `While{ cond, body }        -> E(cond); B(body)\r
    | `Repeat{ body, cond }       -> B(body); E(cond)\r
+   | `Local{ lhs }               -> I(lhs)\r
    | `Local{ lhs, rhs }          -> EL(rhs); I(lhs)\r
    | `Localrec{ lhs, rhs }       -> I(lhs); EL(rhs)\r
    | `Fornum{ i, a, b, body }    -> E(a); E(b); I{i}; B(body)\r