Skip to content

Commit ff9be66

Browse files
committed
Added get-json-comments to src/results-generator
1 parent 8e3be80 commit ff9be66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DiffBackend/src/results-generator.lisp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
("new-ver" . ,(gen-stats-ht-for-json 2))))
2020
stream))
2121

22+
(defun get-json-comments (comment-table stream)
23+
(encode-json
24+
(with-ht
25+
(loop :for line-num :being :the :hash-key :in comment-table :using (:hash-value val)
26+
:do (add-to-ht line-num (alexandria:plist-hash-table val))))
27+
stream))
28+
2229
(defgeneric gener-res-object (obj))
2330

2431
(defmacro add-to-ht (key value)

0 commit comments

Comments
 (0)