|
10 | 10 |
|
11 | 11 | (define (init-loc-wrapper e line column quoted?) |
12 | 12 | (if quoted? |
13 | | - (make-lw e line #f column #f #f #f) |
14 | | - (make-lw e line #f column #f #t #f))) |
| 13 | + (make-lw e line #f column #f #f #f #f) |
| 14 | + (make-lw e line #f column #f #t #f #f))) |
15 | 15 |
|
16 | 16 | (define (init-loc-wrapper/unquoted e line column) |
17 | 17 | (init-loc-wrapper e line column #f)) |
|
22 | 22 |
|
23 | 23 | ;; e : (union string symbol #f (listof lw)) |
24 | 24 | ;; line, line-span, column, column-span : number |
25 | | -(define-struct lw (e line line-span column column-span unq? metafunction?) |
| 25 | +;; pict-tag is used when making a rhombus pict; it ends up |
| 26 | +;; in the metadata of the pict generated from the elements |
| 27 | +;; of the list inside `e` (it shouldn't be there if there isn't a list) |
| 28 | +(define-struct lw (e line line-span column column-span unq? metafunction? pict-tag) |
26 | 29 | #:mutable |
27 | 30 | #:inspector (make-inspector)) |
28 | 31 |
|
29 | 32 | ;; build-lw is designed for external consumption |
30 | 33 | (define (build-lw e line line-span column column-span) |
31 | | - (make-lw e line line-span column column-span #f #f)) |
| 34 | + (make-lw e line line-span column column-span #f #f #f)) |
32 | 35 |
|
33 | 36 | (define curly-quotes-for-strings (make-parameter #t)) |
34 | 37 |
|
|
49 | 52 | (init-loc-wrapper/unquoted (loop e) (loop line) (loop column))] |
50 | 53 | [(vector 'make-lw e line line-span column column-span unq? metafunction?) |
51 | 54 | (make-lw (loop e) (loop line) (loop line-span) (loop column) |
52 | | - (loop column-span) (loop unq?) (loop metafunction?))] |
| 55 | + (loop column-span) (loop unq?) (loop metafunction?) #f)] |
53 | 56 | [(vector 'rewrite-quotes arg) |
54 | 57 | (rewrite-quotes (loop arg))] |
55 | 58 | [(vector 'list x ...) |
|
0 commit comments