Skip to content

Refine hash table's type. #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions scribble-lib/scribble/blueboxes.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
(define plain-strs (fetch-strs-for-single-tag tag cache))
(cond
[(and plain-strs (definition-tag? tag))
(define constructor-strs
(define constructor-strs
(fetch-strs-for-single-tag
(class/interface-tag->constructor-tag
(definition-tag->class/interface-tag tag))
Expand Down Expand Up @@ -119,9 +119,9 @@
(set-blueboxes-cache-method->tags! cache mtd-table)
(set-blueboxes-cache-info-or-paths! cache the-cache)))

(: compute-methods-table : (Listof Bluebox-Info) -> (HashTable Symbol (Listof Method-Tag)))
(: compute-methods-table : (Listof Bluebox-Info) -> (Mutable-HashTable Symbol (Listof Method-Tag)))
(define (compute-methods-table lst)
(: meth-ht : (HashTable Symbol (Listof Method-Tag)))
(: meth-ht : (Mutable-HashTable Symbol (Listof Method-Tag)))
(define meth-ht (make-hash))
(for ([a-bluebox-info (in-list lst)])
(match a-bluebox-info
Expand Down Expand Up @@ -163,7 +163,7 @@
(port-count-lines! port)
(define first-line (read-line port))
(define pos (file-position port))
(define desed
(define desed
(with-handlers ([exn:fail? (λ ([x : exn:fail])
(log-warning "Failed to deserialize ~a: ~a"
x
Expand Down Expand Up @@ -195,4 +195,3 @@
Tag
(Listof (Pairof Natural
Natural))))