Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Oct 21, 2024
1 parent 44e4591 commit b201e88
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions compiler/lib/source_map.ml
Original file line number Diff line number Diff line change
Expand Up @@ -394,15 +394,16 @@ module Standard = struct
; names = List.rev_append sm.names acc_rev.names
; sources_content =
(match acc_rev.sources_content with
| Some acc_rev -> (
match sm.sources_content with
| Some x -> Some (List.rev_append x acc_rev)
| None _ ->
Some
(List.rev_append
(List.map sm.sources ~f:(fun _ -> None))
acc_rev)
| None -> None))
| Some acc_rev ->
let contents =
match sm.sources_content with
| Some x ->
assert (List.length x = List.length sm.sources);
x
| None -> List.map sm.sources ~f:(fun _ -> None)
in
Some (List.rev_append contents acc_rev)
| None -> None)
; mappings = Mappings.empty
}
, List.rev_append_map
Expand Down

0 comments on commit b201e88

Please sign in to comment.