Skip to content
Merged
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
10 changes: 9 additions & 1 deletion analysis/identifier/reference.sls
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@
(mutable parents)
;; each type-expression is an alist consists of identifier-references and 'or 'something? 'void? ...
;; NOTE: it must be index-node's type expression collection, because of case-lambda
(mutable type-expressions)))
(mutable type-expressions)
(mutable top-environment))
(protocol
(lambda (new)
(case-lambda
[(identifier document index-node initialization-index-node library-identifier type parents type-expressions)
(new identifier document index-node initialization-index-node library-identifier type parents type-expressions 'r6rs)]
[(identifier document index-node initialization-index-node library-identifier type parents type-expressions top-environment)
(new identifier document index-node initialization-index-node library-identifier type parents type-expressions top-environment)]))))

(define (is-ancestor-of? identifier-reference0 identifier-reference1)
(if (equal? identifier-reference0 identifier-reference1)
Expand Down