File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
drracket-tool-test/tests/check-syntax
drracket-tool-text-lib/drracket/private/syncheck Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 929
929
(add-syntax (expand stx))
930
930
(done)))
931
931
932
+ ;; ensure that the submodules argument gets correctly sent along
933
+ ;; in a syncheck:add-jump-to-definition/phase-level+space call
934
+ (let ()
935
+ (define root-dir (make-temporary-file "test-from-syncheck-direct-rkt~a " 'directory ))
936
+ (define src (build-path root-dir "a.rkt " ))
937
+ (call-with-output-file src
938
+ (λ (port)
939
+ (displayln "#lang racket/base\n " port)
940
+ (writeln '(require (submod "b.rkt " the-mod)) port)
941
+ (writeln 'the-name port)))
942
+ (call-with-output-file (build-path root-dir "b.rkt " )
943
+ (λ (port)
944
+ (displayln "#lang racket/base\n " port)
945
+ (writeln '(module the-mod racket (provide the-name) (define the-name 1 )) port)))
946
+
947
+ (define content
948
+ (parameterize ([current-directory root-dir])
949
+ (show-content "a.rkt " )))
950
+
951
+ (check-true
952
+ (for/or ([item (in-list content)])
953
+ (match item
954
+ [(vector 'syncheck:add-jump-to-definition/phase-level+space _ _ 'the-name _ '(the-mod) _ )
955
+ #t ]
956
+ [_ #f ])))
957
+ (delete-directory/files root-dir))
958
+
932
959
;; make sure that `make-traversal` is called with
933
960
;; the containing directory by `show-content`
934
961
(let ()
Original file line number Diff line number Diff line change 1274
1274
pos-right
1275
1275
id
1276
1276
filename
1277
- (map submodule-name submods)
1277
+ submods
1278
1278
phase-level+space)))))
1279
1279
1280
1280
;; annotate-require-open : namespace string -> (stx -> void)
You can’t perform that action at this time.
0 commit comments