@@ -13,6 +13,8 @@ Trying them all:
1313 " notifications" : []
1414 }
1515
16+ FIXME we would expect 3 : 13
17+
1618 $ $ MERLIN single locate -look-for ml -position 7 : 17 -filename . /test. ml < . /test. ml
1719 {
1820 " class" : " return" ,
@@ -54,14 +56,16 @@ FIXME this should say "Already at definition point" (we're defining the label):
5456 " notifications" : []
5557 }
5658
59+ We expect 1 : 5
60+
5761 $ $ MERLIN single locate -look-for ml -position 13 : 16 -filename . /test. ml < . /test. ml
5862 {
5963 " class" : " return" ,
6064 " value" : {
6165 " file" : " $ TESTCASE_ROOT /test.ml" ,
6266 " pos" : {
6367 " line" : 1 ,
64- " col" : 0
68+ " col" : 5
6569 }
6670 },
6771 " notifications" : []
@@ -89,14 +93,16 @@ FIXME we failed to parse/reconstruct the ident, that's interesting
8993 " notifications" : []
9094 }
9195
96+ We expect 1 : 5
97+
9298 $ $ MERLIN single locate -look-for ml -position 16 : 20 -filename . /test. ml < . /test. ml
9399 {
94100 " class" : " return" ,
95101 " value" : {
96102 " file" : " $ TESTCASE_ROOT /test.ml" ,
97103 " pos" : {
98104 " line" : 1 ,
99- " col" : 0
105+ " col" : 5
100106 }
101107 },
102108 " notifications" : []
@@ -115,6 +121,8 @@ FIXME we failed to parse/reconstruct the ident, that's interesting
115121 " notifications" : []
116122 }
117123
124+ FIXME unprecise, we expect 11 : 11
125+
118126 $ $ MERLIN single locate -look-for ml -position 18 : 15 -filename . /test. ml < . /test. ml
119127 {
120128 " class" : " return" ,
@@ -144,14 +152,16 @@ FIXME this should jump to line 11:
144152 " notifications" : []
145153 }
146154
155+ FIXME unprecise, we want 13 : 12
156+
147157 $ $ MERLIN single locate -look-for ml -position 23 : 13 -filename . /test. ml < . /test. ml
148158 {
149159 " class" : " return" ,
150160 " value" : {
151161 " file" : " $ TESTCASE_ROOT /test.ml" ,
152162 " pos" : {
153163 " line" : 13 ,
154- " col" : 0
164+ " col" : 5
155165 }
156166 },
157167 " notifications" : []
@@ -177,7 +187,7 @@ FIXME this should jump to line 11:
177187 " file" : " $ TESTCASE_ROOT /test.ml" ,
178188 " pos" : {
179189 " line" : 13 ,
180- " col" : 0
190+ " col" : 5
181191 }
182192 },
183193 " notifications" : []
0 commit comments