show scopes info

This commit is contained in:
Ryan Culpepper 2015-09-15 02:04:32 -04:00
parent d2b85fb453
commit 308727c657

View File

@ -264,9 +264,14 @@
;; display-marks : syntax -> void ;; display-marks : syntax -> void
(define/private (display-marks stx) (define/private (display-marks stx)
(display "Marks: " key-sd) (for ([phase '(0 1 -1)])
(display (format "~s\n" (get-marks stx)) #f) (define info (syntax-debug-info stx phase))
(display "\n" #f)) (define ctx (hash-ref info 'context null))
(when (pair? ctx)
(display (format "Scopes at phase ~s:\n" phase) key-sd)
(for ([scope (in-list ctx)])
(display (format "~s\n" scope) #f))
(display "\n" #f))))
;; display-taint : syntax -> void ;; display-taint : syntax -> void
(define/private (display-taint stx) (define/private (display-taint stx)