Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Sep 5, 2024
1 parent 52e4ac1 commit 1d6cda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/tests-sourcemap/dump_sourcemap.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let extract_sourcemap lines =
Some (Source_map.of_string content)
| _ -> None

let print_mapping lines ?(line_offset = 0) (sm : Source_map.t) =
let print_mapping lines ~line_offset (sm : Source_map.t) =
let lines = Array.of_list lines in
let sources = Array.of_list sm.sources in
let _names = Array.of_list sm.names in
Expand Down Expand Up @@ -72,7 +72,7 @@ let print_mapping lines ?(line_offset = 0) (sm : Source_map.t) =
| _ -> ()))

let print_sourcemap lines = function
| `Standard sm -> print_mapping lines sm
| `Standard sm -> print_mapping ~offset:0 lines sm
| `Index l ->
List.iter
l.Source_map.Index.sections
Expand Down

0 comments on commit 1d6cda1

Please sign in to comment.