Skip to content

Commit 1393eba

Browse files
committed
remove debug
1 parent 9cdf84f commit 1393eba

8 files changed

+0
-107
lines changed

Diff for: analysis/src/Commands.ml

-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ let completionWithParser ~debug ~path ~pos ~currentFile ~textOpt =
1414
let line, col = pos in
1515
let offsetNoWhite = PartialParser.skipWhite text offset in
1616
let posNoWhite = (line, max 0 col - offset + offsetNoWhite) in
17-
Printf.printf
18-
"posNoWhite %s offset:%d offsetNoWhite:%d len:%d currentChar:%c / %d\n"
19-
(SemanticTokens.posToString posNoWhite)
20-
offset offsetNoWhite (String.length text) text.[offset]
21-
(Char.code text.[offset]);
2217

2318
if Filename.check_suffix path ".res" then (
2419
let parser =

Diff for: analysis/tests/src/expected/CompletePrioritize1.res.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Complete tests/src/CompletePrioritize1.res 4:2
2-
posNoWhite (5,3) offset:106 offsetNoWhite:105 len:110 currentChar:
3-
/ 10
42
Found expr:(5,2)->(5,4)
53
[{
64
"label": "Test.add",

Diff for: analysis/tests/src/expected/CompletePrioritize2.res.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Complete tests/src/CompletePrioritize2.res 8:2
2-
posNoWhite (9,3) offset:145 offsetNoWhite:144 len:146 currentChar:
3-
/ 10
42
Found expr:(9,2)->(9,4)
53
[{
64
"label": "Test.add",

Diff for: analysis/tests/src/expected/Completion.res.txt

-52
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
Complete tests/src/Completion.res 0:2
2-
posNoWhite (1,8) offset:35 offsetNoWhite:34 len:1968 currentChar:
3-
/ 10
42
Found expr:(1,1)->(1,9)
53
[{
64
"label": "mapReverse",
@@ -71,8 +69,6 @@ Found expr:(1,1)->(1,9)
7169
}]
7270

7371
Complete tests/src/Completion.res 1:2
74-
posNoWhite (2,6) offset:49 offsetNoWhite:48 len:1968 currentChar:
75-
/ 10
7672
Found expr:(2,1)->(6,6)
7773
[{
7874
"label": "Floatarray",
@@ -293,8 +289,6 @@ Found expr:(2,1)->(6,6)
293289
}]
294290

295291
Complete tests/src/Completion.res 2:2
296-
posNoWhite (3,7) offset:64 offsetNoWhite:63 len:1968 currentChar:
297-
/ 10
298292
Found expr:(3,1)->(3,8)
299293
[{
300294
"label": "mapi",
@@ -347,8 +341,6 @@ Found expr:(3,1)->(3,8)
347341
}]
348342

349343
Complete tests/src/Completion.res 12:2
350-
posNoWhite (13,14) offset:251 offsetNoWhite:250 len:1968 currentChar:
351-
/ 10
352344
Found expr:(13,10)->(13,15)
353345
[{
354346
"label": "customDouble",
@@ -359,8 +351,6 @@ Found expr:(13,10)->(13,15)
359351
}]
360352

361353
Complete tests/src/Completion.res 19:2
362-
posNoWhite (20,17) offset:400 offsetNoWhite:399 len:1968 currentChar:
363-
/ 10
364354
Found expr:(20,9)->(20,18)
365355
[{
366356
"label": "age",
@@ -377,8 +367,6 @@ Found expr:(20,9)->(20,18)
377367
}]
378368

379369
Complete tests/src/Completion.res 21:2
380-
posNoWhite (22,10) offset:419 offsetNoWhite:418 len:1968 currentChar:
381-
/ 10
382370
Found expr:(22,1)->(22,11)
383371
Found expr:(22,10)->(22,11)
384372
[{
@@ -396,8 +384,6 @@ Found expr:(22,10)->(22,11)
396384
}]
397385

398386
Complete tests/src/Completion.res 23:2
399-
posNoWhite (24,10) offset:438 offsetNoWhite:437 len:1968 currentChar:
400-
/ 10
401387
Found expr:(24,1)->(24,11)
402388
Found expr:(24,8)->(24,11)
403389
[{
@@ -409,8 +395,6 @@ Found expr:(24,8)->(24,11)
409395
}]
410396

411397
Complete tests/src/Completion.res 27:2
412-
posNoWhite (28,5) offset:470 offsetNoWhite:469 len:1968 currentChar:
413-
/ 10
414398
Found expr:(28,1)->(28,6)
415399
Found expr:(28,5)->(28,6)
416400
[{
@@ -428,8 +412,6 @@ Found expr:(28,5)->(28,6)
428412
}]
429413

430414
Complete tests/src/Completion.res 36:2
431-
posNoWhite (37,4) offset:604 offsetNoWhite:603 len:1968 currentChar:
432-
/ 10
433415
Found expr:(37,1)->(46,3)
434416
Found expr:(37,1)->(41,8)
435417
Found expr:(37,3)->(37,5)
@@ -448,8 +430,6 @@ Found expr:(37,3)->(37,5)
448430
}]
449431

450432
Complete tests/src/Completion.res 38:2
451-
posNoWhite (39,18) offset:631 offsetNoWhite:630 len:1968 currentChar:
452-
/ 10
453433
Found expr:(39,1)->(39,19)
454434
Found expr:(39,10)->(39,19)
455435
[{
@@ -467,8 +447,6 @@ Found expr:(39,10)->(39,19)
467447
}]
468448

469449
Complete tests/src/Completion.res 50:2
470-
posNoWhite (51,27) offset:845 offsetNoWhite:844 len:1968 currentChar:
471-
/ 10
472450
Found expr:(51,13)->(51,28)
473451
Found expr:(51,27)->(51,28)
474452
[{
@@ -480,8 +458,6 @@ Found expr:(51,27)->(51,28)
480458
}]
481459

482460
Complete tests/src/Completion.res 52:2
483-
posNoWhite (53,20) offset:874 offsetNoWhite:873 len:1968 currentChar:
484-
/ 10
485461
Found expr:(53,13)->(53,21)
486462
Found expr:(53,20)->(53,21)
487463
[{
@@ -687,8 +663,6 @@ DocumentSymbol tests/src/Completion.res
687663
]
688664

689665
Complete tests/src/Completion.res 56:2
690-
posNoWhite (57,5) offset:896 offsetNoWhite:895 len:1968 currentChar:
691-
/ 10
692666
XXX Not found!
693667
[{
694668
"label": "react.component",
@@ -699,8 +673,6 @@ XXX Not found!
699673
}]
700674

701675
Complete tests/src/Completion.res 58:2
702-
posNoWhite (59,7) offset:912 offsetNoWhite:911 len:1968 currentChar:
703-
/ 10
704676
Found expr:(0,-1)->(69,17)
705677
[{
706678
"label": "component",
@@ -711,8 +683,6 @@ Found expr:(0,-1)->(69,17)
711683
}]
712684

713685
Complete tests/src/Completion.res 60:2
714-
posNoWhite (61,24) offset:945 offsetNoWhite:944 len:1968 currentChar:
715-
/ 10
716686
Found expr:(61,9)->(61,25)
717687
[{
718688
"label": "age",
@@ -723,8 +693,6 @@ Found expr:(61,9)->(61,25)
723693
}]
724694

725695
Complete tests/src/Completion.res 62:2
726-
posNoWhite (63,23) offset:977 offsetNoWhite:976 len:1968 currentChar:
727-
/ 10
728696
Found expr:(63,9)->(63,24)
729697
[{
730698
"label": "name",
@@ -735,8 +703,6 @@ Found expr:(63,9)->(63,24)
735703
}]
736704

737705
Complete tests/src/Completion.res 64:2
738-
posNoWhite (65,29) offset:1015 offsetNoWhite:1014 len:1968 currentChar:
739-
/ 10
740706
Found expr:(65,9)->(65,30)
741707
[{
742708
"label": "name",
@@ -747,8 +713,6 @@ Found expr:(65,9)->(65,30)
747713
}]
748714

749715
Complete tests/src/Completion.res 67:2
750-
posNoWhite (68,1) offset:1049 offsetNoWhite:1048 len:1968 currentChar:
751-
/ 10
752716
Found expr:(67,8)->(69,17)
753717
[{
754718
"label": "age",
@@ -765,8 +729,6 @@ Found expr:(67,8)->(69,17)
765729
}]
766730

767731
Complete tests/src/Completion.res 72:2
768-
posNoWhite (73,10) offset:1126 offsetNoWhite:1125 len:1968 currentChar:
769-
/ 10
770732
Found expr:(73,8)->(75,18)
771733
[{
772734
"label": "age",
@@ -777,8 +739,6 @@ Found expr:(73,8)->(75,18)
777739
}]
778740

779741
Complete tests/src/Completion.res 76:2
780-
posNoWhite (77,21) offset:1212 offsetNoWhite:1211 len:1968 currentChar:
781-
/ 10
782742
Found expr:(77,20)->(80,10)
783743
[{
784744
"label": "age",
@@ -795,8 +755,6 @@ Found expr:(77,20)->(80,10)
795755
}]
796756

797757
Complete tests/src/Completion.res 79:2
798-
posNoWhite (80,4) offset:1257 offsetNoWhite:1256 len:1968 currentChar:
799-
/ 10
800758
Found expr:(80,2)->(82,20)
801759
[{
802760
"label": "age",
@@ -807,8 +765,6 @@ Found expr:(80,2)->(82,20)
807765
}]
808766

809767
Complete tests/src/Completion.res 83:2
810-
posNoWhite (84,14) offset:1355 offsetNoWhite:1354 len:1968 currentChar:
811-
/ 10
812768
Found expr:(84,13)->(101,20)
813769
[{
814770
"label": "name",
@@ -825,8 +781,6 @@ Found expr:(84,13)->(101,20)
825781
}]
826782

827783
Complete tests/src/Completion.res 88:3
828-
posNoWhite (89,2) offset:1437 offsetNoWhite:1436 len:1967 currentChar:
829-
/ 10
830784
Found expr:(89,1)->(93,3)
831785
[{
832786
"label": "x",
@@ -843,8 +797,6 @@ Found expr:(89,1)->(93,3)
843797
}]
844798

845799
Complete tests/src/Completion.res 90:3
846-
posNoWhite (91,18) offset:1465 offsetNoWhite:1464 len:1967 currentChar:
847-
/ 10
848800
Found expr:(91,1)->(93,3)
849801
[{
850802
"label": "xx",
@@ -861,8 +813,6 @@ Found expr:(91,1)->(93,3)
861813
}]
862814

863815
Complete tests/src/Completion.res 96:3
864-
posNoWhite (97,2) offset:1551 offsetNoWhite:1550 len:1967 currentChar:
865-
/ 10
866816
Found expr:(96,11)->(99,1)
867817
Found expr:(97,1)->(98,5)
868818
Found expr:(97,1)->(97,3)
@@ -875,8 +825,6 @@ Found expr:(97,1)->(97,3)
875825
}]
876826

877827
Complete tests/src/Completion.res 100:3
878-
posNoWhite (101,12) offset:1584 offsetNoWhite:1583 len:1967 currentChar:
879-
/ 10
880828
Found expr:(101,11)->(120,32)
881829
[{
882830
"label": "name",

Diff for: analysis/tests/src/expected/Cross.res.txt

-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ TypeDefinition tests/src/Cross.res 37:37
9494
{"uri": "DefinitionWithInterface.resi", "range": {"start": {"line": 3, "character": 0}, "end": {"line": 3, "character": 6}}}
9595

9696
Complete tests/src/Cross.res 39:2
97-
posNoWhite (40,25) offset:856 offsetNoWhite:855 len:857 currentChar:
98-
/ 10
9997
Found expr:(40,1)->(40,26)
10098
[]
10199

Diff for: analysis/tests/src/expected/Div.res.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ Hover tests/src/Div.res 1:10
22
{"contents": "```rescript\n(\n string,\n ~props: ReactDOMRe.domProps=?,\n array<React.element>,\n) => React.element\n```"}
33

44
Complete tests/src/Div.res 3:3
5-
posNoWhite (4,14) offset:53 offsetNoWhite:52 len:54 currentChar:
6-
/ 10
75
Found expr:(4,2)->(4,15)
86
Found expr:(4,6)->(4,15)
97
[{

0 commit comments

Comments
 (0)