Make submodule detection more robust.
This commit is contained in:
parent
af7583700d
commit
8f50e4a519
|
@ -150,7 +150,11 @@
|
|||
'()))))
|
||||
|
||||
(define nodes->typed?
|
||||
(for/hash ([n nodes])
|
||||
(for/hash ([n nodes]
|
||||
;; Needs to be either a file or a submodule.
|
||||
;; I've seen 'unit and 'not-enough-info-for-blame go by here,
|
||||
;; and we can't do anything with either.
|
||||
#:when (or (path? n) (pair? n)))
|
||||
;; typed modules have a #%type-decl submodule
|
||||
(define submodule? (not (path? n)))
|
||||
(define filename (if submodule? (car n) n))
|
||||
|
|
Loading…
Reference in New Issue
Block a user