File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 2020 [syntax-path-add (-> syntax-path? exact-nonnegative-integer? syntax-path?)]
2121 [syntax-path-remove-prefix (-> syntax-path? syntax-path? syntax-path?)]
2222 [syntax-path-neighbors? (-> syntax-path? syntax-path? boolean?)]
23- [syntax-path->string (-> syntax-path? string?)]
23+ [syntax-path->string (-> syntax-path? immutable- string?)]
2424 [string->syntax-path (-> string? syntax-path?)]
2525 [syntax-ref (-> syntax? syntax-path? syntax?)]
2626 [syntax-set (-> syntax? syntax-path? syntax? syntax?)]
3838 racket/syntax)
3939 data/order
4040 guard
41+ racket/mutability
4142 racket/sequence
4243 racket/string
4344 racket/struct
218219
219220
220221(define (syntax-path->string path)
221- (string-join
222- (for/list ([elem (in-treelist (syntax-path-elements path))])
223- (number->string elem))
224- "/ "
225- #:before-first "/ " ))
222+ (string->immutable-string
223+ (string-join
224+ (for/list ([elem (in-treelist (syntax-path-elements path))])
225+ (number->string elem))
226+ "/ "
227+ #:before-first "/ " )))
226228
227229
228230(module+ test
You can’t perform that action at this time.
0 commit comments