Took collection path simplification out of this file.

svn: r17729
This commit is contained in:
Carl Eastlund 2010-01-19 03:38:55 +00:00
parent d57b5fff61
commit 9fbf023d90

View File

@ -45,24 +45,8 @@
(current-continuation-marks)
b)))
(define (simplify-source loc)
(let* ([loc (build-source-location loc)]
[src (srcloc-source loc)])
(if (path? src)
(let* ([rel (path->main-collects-relative src)])
(if (pair? rel)
(struct-copy srcloc loc
[source
(apply build-path
(bytes->path #"<collects>")
(map bytes->path-element (cdr rel)))])
loc))
loc)))
(define (default-blame-format b x custom-message)
(let* ([source-message (source-location->prefix
(simplify-source
(blame-source b)))]
(let* ([source-message (source-location->prefix (blame-source b))]
[guilty-message (show (blame-guilty b))]
[contract-message (show (blame-contract b))]
[value-message (if (blame-value b)