Skip to content

Commit

Permalink
update to current gospel (locations in patterns)
Browse files Browse the repository at this point in the history
  • Loading branch information
backtracking committed Nov 9, 2021
1 parent b9e8cff commit aa4513e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/trans.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type gdecl = Gdecl of decl | Gmodule of Loc.position * ident * gdecl list

let location { loc_start = b; loc_end = e } = Loc.extract (b, e)
let dummy_loc = Loc.dummy_position
let map_opt_default f d = function None -> d | Some x -> f x

let mk_id ?(id_ats = []) ?(id_loc = Loc.dummy_position) id_str =
let id_str =
Expand Down Expand Up @@ -75,7 +74,7 @@ module Term = struct
| Tt.Tlambda -> Dterm.DTlambda

let rec pattern pat =
let loc = map_opt_default location dummy_loc pat.Tt.p_loc in
let loc = location pat.Tt.p_loc in
let mk_pattern pat_desc = mk_pattern pat_desc loc in
let p_node = function
| Tt.Pwild -> Pwild
Expand Down

0 comments on commit aa4513e

Please sign in to comment.