Reduce for-template imports in environment code.
This commit is contained in:
parent
4537b52b6a
commit
7a31c966c8
|
@ -1,8 +1,8 @@
|
|||
#lang racket/base
|
||||
|
||||
(require syntax/parse
|
||||
"annotate-classes.rkt"
|
||||
(for-template racket/base))
|
||||
(for-template (only-in racket/base quote))
|
||||
"annotate-classes.rkt")
|
||||
|
||||
(provide (all-defined-out))
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
(pattern (~and c (var:optionally-annotated-name seq-expr:expr))
|
||||
#:with (expand ...) #`(#,(syntax/loc #'c
|
||||
(var.ann-name seq-expr)))
|
||||
#:with (expand* ...) #'(expand ... #:when #t))
|
||||
#:with (expand* ...) #'(expand ... #:when '#t))
|
||||
;; multi-valued seq-expr
|
||||
;; currently disabled because it triggers an internal error in the typechecker
|
||||
;; (pattern (~and c (((v:optionally-annotated-name) ...) seq-expr:expr))
|
||||
|
|
|
@ -10,10 +10,6 @@
|
|||
"mvar-env.rkt"
|
||||
(rename-in racket/private/sort [sort raw-sort])
|
||||
(rep type-rep object-rep filter-rep rep-utils free-variance)
|
||||
(for-template (rep type-rep object-rep filter-rep)
|
||||
(types union abbrev)
|
||||
racket/shared (except-in racket/base sort)
|
||||
(rename-in racket/private/sort [sort raw-sort]))
|
||||
(for-syntax syntax/parse racket/base)
|
||||
(types abbrev union)
|
||||
racket/syntax racket/dict racket/list
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
;; Maintain mapping of type variables introduced by literal Alls in type annotations.
|
||||
|
||||
(require "../utils/utils.rkt"
|
||||
(for-template racket/base)
|
||||
(private syntax-properties)
|
||||
syntax/parse
|
||||
syntax/id-table
|
||||
|
@ -28,7 +27,7 @@
|
|||
(hash-update! tvar-stx-mapping stx (lambda (old-vars) (cons vars old-vars)) null))
|
||||
(let loop ((stx stx))
|
||||
(syntax-parse stx
|
||||
#:literals (#%expression #%plain-lambda let-values case-lambda)
|
||||
#:literal-sets (kernel-literals)
|
||||
[(#%expression e) (loop #'e)]
|
||||
[(~or (case-lambda formals . body) (#%plain-lambda formals . body))
|
||||
(add-vars stx)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user