diff --git a/js-assembler/package.rkt b/js-assembler/package.rkt index 8112519..4da1e45 100644 --- a/js-assembler/package.rkt +++ b/js-assembler/package.rkt @@ -237,6 +237,8 @@ MACHINE.modules[~s] = ;; Record the use of resources on source module visitation... (set! resources (set-union resources (list->set (source-resources src)))) + + (fprintf op "\n// ** Visiting ~a\n" (source-name src)) (cond [(UninterpretedSource? src) (fprintf op "~a" (UninterpretedSource-datum src))] diff --git a/make/make-structs.rkt b/make/make-structs.rkt index 94a9604..e0e5597 100644 --- a/make/make-structs.rkt +++ b/make/make-structs.rkt @@ -31,6 +31,23 @@ +(: source-name (Source -> String)) +(define (source-name a-source) + (cond + [(StatementsSource? a-source) + ""] + [(UninterpretedSource? a-source) + ""] + [(MainModuleSource? a-source) + ""] + [(SexpSource? a-source) + ""] + [(ModuleSource? a-source) + (format "" + (ModuleSource-path a-source))])) + + + (define-struct: Configuration ([wrap-source : (Source -> Source)] [should-follow-children? : (Source -> Boolean)] diff --git a/make/make.rkt b/make/make.rkt index 0cdcb47..003a44d 100644 --- a/make/make.rkt +++ b/make/make.rkt @@ -34,20 +34,6 @@ (make-parameter (lambda: ([s : Source]) s))) -(: source-name (Source -> String)) -(define (source-name a-source) - (cond - [(StatementsSource? a-source) - ""] - [(UninterpretedSource? a-source) - ""] - [(MainModuleSource? a-source) - ""] - [(SexpSource? a-source) - ""] - [(ModuleSource? a-source) - (format "" - (ModuleSource-path a-source))]))