Skip to content

Commit 329d657

Browse files
committed
fix missing dump function for -T
1 parent c689acc commit 329d657

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/moonc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ local parse = require "moonscript.parse"
44
local compile = require "moonscript.compile"
55
local util = require "moonscript.util"
66

7+
local dump_tree = require"moonscript.dump".tree
8+
79
require "alt_getopt"
810
require "lfs"
911

@@ -117,7 +119,7 @@ function compile_file(text, fname)
117119

118120
if opts.T then
119121
opts.p = true
120-
dump.tree(tree)
122+
dump_tree(tree)
121123
return ""
122124
else
123125
local compile_time = gettime()

0 commit comments

Comments
 (0)