schemify: fix srcloc marshaling
Partly fix it, anyway. More is needed in general to reduce recording build-time paths in compiled code.
This commit is contained in:
parent
19e709d27b
commit
f47f685af9
|
@ -16,6 +16,7 @@
|
|||
[(impersonator? q) #t] ; i.e., strip impersonators when serializaing
|
||||
[(path? q) #t]
|
||||
[(regexp? q) #t]
|
||||
[(srcloc? q) #t]
|
||||
[(byte-regexp? q) #t]
|
||||
[(keyword? q) #t]
|
||||
[(hash? q) #t]
|
||||
|
|
|
@ -153,6 +153,13 @@
|
|||
',(path-convention-type q))]
|
||||
[(regexp? q)
|
||||
`(,(if (pregexp? q) 'pregexp 'regexp) ,(object-name q))]
|
||||
[(srcloc? q)
|
||||
`(#%app srcloc
|
||||
,(make-construct (srcloc-source q))
|
||||
,(make-construct (srcloc-line q))
|
||||
,(make-construct (srcloc-column q))
|
||||
,(make-construct (srcloc-position q))
|
||||
,(make-construct (srcloc-span q)))]
|
||||
[(byte-regexp? q)
|
||||
`(,(if (byte-pregexp? q) 'byte-pregexp 'byte-regexp) ,(object-name q))]
|
||||
[(keyword? q)
|
||||
|
|
Loading…
Reference in New Issue
Block a user