now fully typechecks
svn: r13582
This commit is contained in:
parent
7830091d42
commit
f5c60e9282
|
@ -17,7 +17,7 @@
|
||||||
[else (let: loop : (Listof Syntax)
|
[else (let: loop : (Listof Syntax)
|
||||||
([fst : Syntax (car ids)]
|
([fst : Syntax (car ids)]
|
||||||
[rst : (Listof Syntax) (cdr ids)])
|
[rst : (Listof Syntax) (cdr ids)])
|
||||||
(cond
|
(error 'foo) #;(cond
|
||||||
[(null? rst) (list fst)]
|
[(null? rst) (list fst)]
|
||||||
[else (if (and (eq? (syntax-source fst)
|
[else (if (and (eq? (syntax-source fst)
|
||||||
(syntax-source (car rst)))
|
(syntax-source (car rst)))
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
(: annotate-tail-position/last (Syntax (Listof Syntax) TailHT -> Void))
|
(: annotate-tail-position/last (Syntax (Listof Syntax) TailHT -> Void))
|
||||||
(define (annotate-tail-position/last orig-stx stxs tail-ht)
|
(define (annotate-tail-position/last orig-stx stxs tail-ht)
|
||||||
(unless (null? stxs)
|
(unless (null? stxs)
|
||||||
(annotate-tail-position orig-stx (car (last-pair stxs)) tail-ht)))
|
(annotate-tail-position orig-stx (car (#{last-pair @ Syntax} stxs)) tail-ht)))
|
||||||
|
|
||||||
;; annotate-tail-position : syntax -> void
|
;; annotate-tail-position : syntax -> void
|
||||||
;; colors the parens (if any) around the argument
|
;; colors the parens (if any) around the argument
|
||||||
|
@ -193,8 +193,6 @@
|
||||||
[prev (hash-ref ht #{key :: Any} (λ () #{null :: (Listof Any)}))])
|
[prev (hash-ref ht #{key :: Any} (λ () #{null :: (Listof Any)}))])
|
||||||
(hash-set! ht #{key :: Any} #{(cons var prev) :: (Listof Any)}))))
|
(hash-set! ht #{key :: Any} #{(cons var prev) :: (Listof Any)}))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#|
|
#|
|
||||||
;; annotate-basic : syntax
|
;; annotate-basic : syntax
|
||||||
;; namespace
|
;; namespace
|
||||||
|
|
Loading…
Reference in New Issue
Block a user