We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109f7c3 commit bf2ba33Copy full SHA for bf2ba33
drracket-tool-text-lib/drracket/private/syncheck/traversals.rkt
@@ -1394,11 +1394,14 @@
1394
1395
;; add-origins : syntax? id-set exact-integer? -> void
1396
(define (add-origins stx id-set level-of-enclosing-module collect-general-info)
1397
+ (define did-already (make-hasheq))
1398
(let loop ([ct (syntax-property stx 'origin)])
1399
(match ct
1400
[(cons hd tl)
- (loop hd)
1401
- (loop tl)]
+ (unless (hash-ref did-already ct #f)
1402
+ (hash-set! did-already ct #t)
1403
+ (loop hd)
1404
+ (loop tl))]
1405
[(? identifier?)
1406
(collect-general-info ct)
1407
(add-id id-set ct level-of-enclosing-module)]
0 commit comments