$ ocamlmerlin single locate -position 10:18 -look-for implementation -filename test.ml < /tmp/test.ml | jq .value
{
"file": "test.ml",
"pos": {
"line": 2,
"col": 6
}
}
$ ocamlmerlin single locate -position 13:16 -look-for implementation -filename test.ml < /tmp/test.ml | jq .value
{
"file": "test.ml",
"pos": {
"line": 4,
"col": 6
}
}