show scopes info
This commit is contained in:
parent
d2b85fb453
commit
308727c657
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user