Small bug fixes in traversal.hl.rkt and free-identifier-tree-equal.rkt
This commit is contained in:
parent
9814513b47
commit
dad01aa118
|
@ -62,12 +62,14 @@
|
|||
(rec=? (struct->list a)
|
||||
(struct->list b)))))]
|
||||
[(struct? a)
|
||||
(rec=? (vector->immutable-vector (struct->vector a)))]
|
||||
(and (struct? b)
|
||||
(rec=? (vector->immutable-vector (struct->vector a))
|
||||
(vector->immutable-vector (struct->vector b))))]
|
||||
[(null? a) (null? b)]
|
||||
[else (equal? a b)]))
|
||||
|
||||
(define/contract ((free-id-tree-hash default-hc) a [hc default-hc])
|
||||
(-> (-> any/c fixnum?) (-> isyntax/c (-> isyntax/c fixnum?) fixnum?))
|
||||
(-> (-> any/c fixnum?) (->* {isyntax/c} {(-> isyntax/c fixnum?)} fixnum?))
|
||||
(define rec-hash (free-id-tree-hash hc))
|
||||
(cond
|
||||
[(identifier? a) (hc (syntax-e #'a))]
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
values)
|
||||
(only-in racket/base values)
|
||||
(subtract-in racket/contract typed/racket/base)
|
||||
phc-toolkit
|
||||
(except-in phc-toolkit generate-temporary)
|
||||
phc-toolkit/untyped-only
|
||||
remember))
|
||||
@(unless-preexpanding
|
||||
|
|
Loading…
Reference in New Issue
Block a user