now traverses from the bound occurrences to the binding ones for contract annotations
This commit is contained in:
parent
e7bd94f2d2
commit
b9ff546e83
|
@ -91,12 +91,12 @@
|
||||||
(identifier? #'id)
|
(identifier? #'id)
|
||||||
(if (known-predicate? #'id)
|
(if (known-predicate? #'id)
|
||||||
(base-color #'id polarity coloring-plans)
|
(base-color #'id polarity coloring-plans)
|
||||||
(begin
|
(let ([binders (module-identifier-mapping-get low-binders #'id (λ () #f))])
|
||||||
|
(if binders
|
||||||
(for ((binder (in-list (module-identifier-mapping-get low-binders #'id))))
|
(for ((binder (in-list (module-identifier-mapping-get low-binders #'id))))
|
||||||
(printf "~s => ~s\n"
|
(for ((rhs (in-list (module-identifier-mapping-get binding-inits binder))))
|
||||||
#'id
|
(ploop rhs polarity)))
|
||||||
(module-identifier-mapping-get binding-inits binder)))
|
(give-up start-stx coloring-plans))))]
|
||||||
(give-up start-stx coloring-plans)))]
|
|
||||||
[(#%plain-lambda formals expr ...)
|
[(#%plain-lambda formals expr ...)
|
||||||
(give-up start-stx coloring-plans)]
|
(give-up start-stx coloring-plans)]
|
||||||
[(case-lambda [formals expr] ...)
|
[(case-lambda [formals expr] ...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user