|
704 | 704 | (loop (car prop)) |
705 | 705 | (loop (cdr prop))] |
706 | 706 | [(mouse-over-tooltip-prop? prop) |
707 | | - (add-mouse-over/loc (find-source-editor (vector-ref prop 0)) |
708 | | - (vector-ref prop 1) |
709 | | - (vector-ref prop 2) |
710 | | - (vector-ref prop 3))]))) |
| 707 | + (define src (find-source-editor (vector-ref prop 0))) |
| 708 | + (when src |
| 709 | + (add-mouse-over/loc src |
| 710 | + (vector-ref prop 1) |
| 711 | + (vector-ref prop 2) |
| 712 | + (vector-ref prop 3)))]))) |
711 | 713 |
|
712 | 714 | ;; add-disappeared-bindings : syntax id-set integer -> void |
713 | 715 | (define (add-disappeared-bindings stx |
|
1208 | 1210 | (define source (find-source-editor binder)) |
1209 | 1211 | (define pos (syntax-position binder)) |
1210 | 1212 | (define span (syntax-span binder)) |
1211 | | - (when (and pos span) |
| 1213 | + (when (and source pos span) |
1212 | 1214 | (define pos-left (sub1 pos)) |
1213 | 1215 | (define pos-right (+ pos-left span)) |
1214 | 1216 | (define connections-start |
|
1344 | 1346 | [_ #f])) |
1345 | 1347 | (when prefix |
1346 | 1348 | (define prefix-source (find-source-editor prefix)) |
1347 | | - (define prefix-start (and prefix-source |
1348 | | - (syntax-position prefix) |
1349 | | - (- (syntax-position prefix) 1))) |
1350 | | - (define prefix-end (and prefix-start |
1351 | | - (syntax-span prefix) |
1352 | | - (+ prefix-start (syntax-span prefix)))) |
1353 | | - (send defs-text syncheck:add-prefixed-require-reference req-source start end |
1354 | | - (syntax-e prefix) prefix-source prefix-start prefix-end))))))) |
| 1349 | + (when prefix-source |
| 1350 | + (define prefix-start (and (syntax-position prefix) |
| 1351 | + (- (syntax-position prefix) 1))) |
| 1352 | + (define prefix-end (and prefix-start |
| 1353 | + (syntax-span prefix) |
| 1354 | + (+ prefix-start (syntax-span prefix)))) |
| 1355 | + (send defs-text syncheck:add-prefixed-require-reference req-source start end |
| 1356 | + (syntax-e prefix) prefix-source prefix-start prefix-end)))))))) |
1355 | 1357 |
|
1356 | 1358 | ;; get-require-filename : sexp-or-module-path-index namespace string[directory] -> filename or #f |
1357 | 1359 | ;; finds the filename corresponding to the require in stx |
|
0 commit comments