Move phase-of-enclosing-module to a private syntax/parse module.
This commit is contained in:
parent
d836a427cc
commit
5ee37920f5
|
@ -1,6 +1,5 @@
|
|||
#lang racket/base
|
||||
(require racket/stxparam
|
||||
unstable/syntax
|
||||
syntax/parse/private/residual ;; keep abs. path
|
||||
(for-syntax racket/base
|
||||
racket/list
|
||||
|
@ -141,6 +140,10 @@ residual.rkt.
|
|||
(define-syntax name (make-syntax-mapping 'depth (quote-syntax stmp)))
|
||||
...)))]))
|
||||
|
||||
(define-syntax-rule (phase-of-enclosing-module)
|
||||
(variable-reference->module-base-phase
|
||||
(#%variable-reference)))
|
||||
|
||||
;; (check-literal id phase-level-expr ctx) -> void
|
||||
(define-syntax (check-literal stx)
|
||||
(syntax-case stx ()
|
||||
|
|
Loading…
Reference in New Issue
Block a user