We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1170565 commit cab8f03Copy full SHA for cab8f03
ppx_regexp.ml
@@ -124,7 +124,8 @@ let transform_cases ~loc e cases =
124
| {pc_lhs = {ppat_desc = Ppat_any}; pc_rhs} :: cases ->
125
(cases, pc_rhs)
126
| cases ->
127
- let pos = loc.loc_start in
+ let open Lexing in
128
+ let pos = loc.Location.loc_start in
129
let e0 = Exp.constant (Const.string pos.pos_fname) in
130
let e1 = Exp.constant (Const.int pos.pos_lnum) in
131
let e2 = Exp.constant (Const.int (pos.pos_cnum - pos.pos_bol)) in
0 commit comments