Skip to content

Commit

Permalink
make sure info returns the module name as well as the deps
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Wilberding <diginux@gmail.com>
  • Loading branch information
ericbmerritt authored and jwilberding committed Mar 7, 2012
1 parent 63c1a33 commit 8f53cda
Show file tree
Hide file tree
Showing 3 changed files with 1,193 additions and 1,176 deletions.
18 changes: 9 additions & 9 deletions src/joxa/compiler.jxa
Original file line number Diff line number Diff line change
Expand Up @@ -4125,15 +4125,15 @@
(case (parse ctx input)
({:error _}
[])
({(:module . rest) _}
(lists/flatten (lists/foldl (fn (form acc)
(case form
((:require . req-rest)
((get-require req-rest []) . acc))
((:use . use-rest)
((get-use use-rest []) . acc))
(_
acc))) [] rest)))))))
({(:module . (module-name . rest)) _}
{module-name (lists/flatten (lists/foldl (fn (form acc)
(case form
((:require . req-rest)
((get-require req-rest []) . acc))
((:use . use-rest)
((get-use use-rest []) . acc))
(_
acc))) [] rest))})))))

(defn info (ctx binary options)
(set-context-all-ctx ctx [{:options (convert-options options [])}])
Expand Down
Loading

0 comments on commit 8f53cda

Please sign in to comment.