add a little more info in the syntax check printouts for drdr
This commit is contained in:
parent
1bf4bf1872
commit
484f512965
|
@ -1470,7 +1470,10 @@
|
|||
(when extra-info?
|
||||
(printf "got-arrows\n")
|
||||
(pretty-print got-arrows)
|
||||
(newline))
|
||||
(newline)
|
||||
|
||||
(printf "'drracket:syncheck:show-arrows? ~s\n"
|
||||
(preferences:get 'drracket:syncheck:show-arrows?)))
|
||||
(compare-output (cond
|
||||
[(dir-test? test)
|
||||
(map (lambda (x)
|
||||
|
|
|
@ -101,7 +101,24 @@
|
|||
(list 'require-for-templates require-for-templates)
|
||||
(list 'require-for-labels require-for-templates)
|
||||
(list 'sub-identifier-binding-directives
|
||||
sub-identifier-binding-directives)))))]
|
||||
sub-identifier-binding-directives)))
|
||||
(define vars (set))
|
||||
(let loop ([thing (list phase-to-varrefs phase-to-binders)])
|
||||
(cond
|
||||
[(pair? thing) (loop (car thing)) (loop (cdr thing))]
|
||||
[(hash? thing) (for ([(k v) (in-hash thing)])
|
||||
(loop k)
|
||||
(loop v))]
|
||||
[(free-identifier-mapping? thing)
|
||||
(free-identifier-mapping-for-each
|
||||
thing
|
||||
(λ (k v) (loop v)))]
|
||||
[(syntax? thing) (set! vars (set-add vars thing))]))
|
||||
(printf "--- vars\n")
|
||||
(for ([x (in-set vars)])
|
||||
(for ([y (in-set vars)])
|
||||
(printf " ~s\n ~s\n ~s\n" x y (free-identifier=? x y))))
|
||||
(printf "--- vars\n\n")))]
|
||||
[else
|
||||
(annotate-basic sexp
|
||||
user-namespace user-directory
|
||||
|
|
Loading…
Reference in New Issue
Block a user