Skip to content

Commit

Permalink
Remove exports of location accessors
Browse files Browse the repository at this point in the history
Make consistent with other usage.
  • Loading branch information
jbouwman committed Oct 1, 2024
1 parent 194bb2f commit caa41f0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/parser/types.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
(#:util #:coalton-impl/util))
(:export
#:ty ; STRUCT
#:ty-location ; ACCESSOR
#:ty-list ; TYPE
#:tyvar ; STRUCT
#:make-tyvar ; CONSTRUCTOR
Expand All @@ -32,13 +31,11 @@
#:make-ty-predicate ; CONSTRUCTOR
#:ty-predicate-class ; ACCESSOR
#:ty-predicate-types ; ACCESSOR
#:ty-predicate-location ; ACCESSOR
#:ty-predicate-list ; TYPE
#:qualified-ty ; STRUCT
#:make-qualified-ty ; CONSTRUCTOR
#:qualified-ty-predicates ; ACCESSOR
#:qualified-ty-type ; ACCESSOR
#:qualified-ty-location ; ACCESSOR
#:qualified-ty-list ; TYPE
#:parse-qualified-type ; FUNCTION
#:parse-type ; FUNCTION
Expand Down
2 changes: 1 addition & 1 deletion src/typechecker/parse-type.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
(let* ((tvar (partial-type-env-lookup-var
env
(parser:tyvar-name type)
(parser:ty-location type)))
type))
(kvar (tc:kind-of tvar)))

(setf kvar (tc:apply-ksubstitution ksubs kvar))
Expand Down
1 change: 0 additions & 1 deletion src/typechecker/partial-type-env.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
(defun partial-type-env-lookup-var (env var source)
(declare (type partial-type-env env)
(type symbol var)
(type source:location source)
(values tc:tyvar))
(let ((ty (gethash var (partial-type-env-ty-table env))))
(unless ty
Expand Down

0 comments on commit caa41f0

Please sign in to comment.