a little more extra info for drdr
This commit is contained in:
parent
d3057da2ac
commit
e0351c07fc
|
@ -1689,7 +1689,25 @@
|
||||||
(define (click-check-syntax-button drs extra-info?)
|
(define (click-check-syntax-button drs extra-info?)
|
||||||
(test:run-one (lambda () (send drs syncheck:button-callback #:print-extra-info? extra-info?))))
|
(test:run-one (lambda () (send drs syncheck:button-callback #:print-extra-info? extra-info?))))
|
||||||
|
|
||||||
(main)
|
(let ()
|
||||||
|
(define ns (make-base-namespace))
|
||||||
|
(define stx
|
||||||
|
(parameterize ([current-namespace ns])
|
||||||
|
(expand #'(module m racket/base
|
||||||
|
(define red 1)
|
||||||
|
(module+ tests red)))))
|
||||||
|
(define ids '())
|
||||||
|
(let loop ([stx stx])
|
||||||
|
(cond
|
||||||
|
[(pair? stx) (loop (car stx)) (loop (cdr stx))]
|
||||||
|
[(identifier? stx)
|
||||||
|
(when (equal? (syntax-e stx) 'red) (set! ids (cons stx ids)))]
|
||||||
|
[(syntax? stx) (loop (syntax-e stx))]))
|
||||||
|
(for ([x (in-list ids)])
|
||||||
|
(for ([y (in-list ids)])
|
||||||
|
(printf " ~s\n ~s\n ~s\n\n" x y (free-identifier=? x y)))))
|
||||||
|
|
||||||
|
(main)
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
|
|
Loading…
Reference in New Issue
Block a user