diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-25 12:23:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-25 12:23:53 -0700 |
| commit | 42578872c72ec46b256a093f74482fb6e5b8e4b9 (patch) | |
| tree | f7a63897ec769151bae3bf52d860629cd55c4b94 /nomsu_compiler.moon | |
| parent | 4fd6d817c87fe3927c48a3c47440c92adb35065e (diff) | |
Added explicit return statements.
Diffstat (limited to 'nomsu_compiler.moon')
| -rw-r--r-- | nomsu_compiler.moon | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index c7105f3..fdadb67 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -354,7 +354,7 @@ with NomsuCompiler return repr(t) bits = [make_tree(bit) for bit in *t] return t.type.."("..repr(tostring t.source)..", "..table.concat(bits, ", ")..")" - LuaCode.Value tree.source, make_tree(tree[1]) + return LuaCode.Value tree.source, make_tree(tree[1]) when "Block" lua = LuaCode(tree.source) @@ -460,10 +460,10 @@ with NomsuCompiler return lua when "Number" - LuaCode.Value(tree.source, tostring(tree[1])) + return LuaCode.Value(tree.source, tostring(tree[1])) when "Var" - LuaCode.Value(tree.source, string.as_lua_id(tree[1])) + return LuaCode.Value(tree.source, string.as_lua_id(tree[1])) when "FileChunks" error("Cannot convert FileChunks to a single block of lua, since each chunk's ".. |
