@@ -71,8 +71,8 @@ Completable: Cpath Value[MyList, m]
71
71
}]
72
72
73
73
Complete tests/src/Completion.res 3:9
74
- posCursor:[3:9] posNoWhite:[3:8] Found expr:[3:3->8:6 ]
75
- Pexp_ident Array.:[3:3->8:6 ]
74
+ posCursor:[3:9] posNoWhite:[3:8] Found expr:[3:3->3:9 ]
75
+ Pexp_ident Array.:[3:3->3:9 ]
76
76
Completable: Cpath Value[Array, ""]
77
77
[{
78
78
"label": "fold_left",
@@ -617,8 +617,8 @@ Completable: Cpath Value[no]["x"]["y"][""]
617
617
}]
618
618
619
619
Complete tests/src/Completion.res 110:5
620
- posCursor:[110:5] posNoWhite:[110:4] Found expr:[110:3->116:3 ]
621
- Pexp_field [110:3->110:4] _:[116:0->116:3 ]
620
+ posCursor:[110:5] posNoWhite:[110:4] Found expr:[110:3->110:5 ]
621
+ Pexp_field [110:3->110:4] _:[116:0->110:5 ]
622
622
Completable: Cpath Value[r].""
623
623
[{
624
624
"label": "x",
@@ -635,8 +635,8 @@ Completable: Cpath Value[r].""
635
635
}]
636
636
637
637
Complete tests/src/Completion.res 113:21
638
- posCursor:[113:21] posNoWhite:[113:20] Found expr:[113:3->116:3 ]
639
- Pexp_field [113:3->113:20] _:[116:0->116:3 ]
638
+ posCursor:[113:21] posNoWhite:[113:20] Found expr:[113:3->113:21 ]
639
+ Pexp_field [113:3->113:20] _:[116:0->113:21 ]
640
640
Completable: Cpath Value[Obj, Rec, recordVal].""
641
641
[{
642
642
"label": "xx",
@@ -697,8 +697,8 @@ Completable: Cpath Module[O, ""]
697
697
}]
698
698
699
699
Complete tests/src/Completion.res 157:8
700
- posCursor:[157:8] posNoWhite:[157:7] Found expr:[157:3->165:6 ]
701
- Pexp_field [157:3->157:7] _:[165:0->165:6 ]
700
+ posCursor:[157:8] posNoWhite:[157:7] Found expr:[157:3->157:8 ]
701
+ Pexp_field [157:3->157:7] _:[165:0->157:8 ]
702
702
Completable: Cpath Value[q].aa.""
703
703
[{
704
704
"label": "x",
@@ -822,8 +822,8 @@ Completable: Cpath Module[For]
822
822
}]
823
823
824
824
Complete tests/src/Completion.res 190:11
825
- posCursor:[190:11] posNoWhite:[190:10] Found expr:[190:3->193:6 ]
826
- Pexp_ident Private.:[190:3->193:6 ]
825
+ posCursor:[190:11] posNoWhite:[190:10] Found expr:[190:3->190:11 ]
826
+ Pexp_ident Private.:[190:3->190:11 ]
827
827
Completable: Cpath Value[Private, ""]
828
828
[{
829
829
"label": "b",
@@ -882,8 +882,8 @@ Completable: Cpath Value[FAO, forAutoObject][""]
882
882
}]
883
883
884
884
Complete tests/src/Completion.res 224:37
885
- posCursor:[224:37] posNoWhite:[224:36] Found expr:[224:3->233:3 ]
886
- Pexp_field [224:3->224:36] _:[233:0->233:3 ]
885
+ posCursor:[224:37] posNoWhite:[224:36] Found expr:[224:3->224:37 ]
886
+ Pexp_field [224:3->224:36] _:[233:0->224:37 ]
887
887
Completable: Cpath Value[FAO, forAutoObject]["forAutoLabel"].""
888
888
[{
889
889
"label": "forAuto",
@@ -956,11 +956,10 @@ Completable: Cnone
956
956
957
957
Complete tests/src/Completion.res 243:8
958
958
posCursor:[243:8] posNoWhite:[243:7] Found expr:[241:8->246:1]
959
- posCursor:[243:8] posNoWhite:[243:7] Found expr:[242:14->245:8]
960
- posCursor:[243:8] posNoWhite:[243:7] Found expr:[242:14->245:1]
961
- Pexp_apply ...[243:3->243:4] (...[242:14->242:15], ...[243:5->245:1])
962
- posCursor:[243:8] posNoWhite:[243:7] Found expr:[243:5->245:1]
963
- Pexp_field [243:5->243:7] _:[245:0->245:1]
959
+ posCursor:[243:8] posNoWhite:[243:7] Found expr:[242:14->243:8]
960
+ Pexp_apply ...[243:3->243:4] (...[242:14->242:15], ...[243:5->243:8])
961
+ posCursor:[243:8] posNoWhite:[243:7] Found expr:[243:5->243:8]
962
+ Pexp_field [243:5->243:7] _:[245:0->243:8]
964
963
Completable: Cpath Value[_z].""
965
964
[{
966
965
"label": "x",
@@ -1088,8 +1087,8 @@ Found type for function (~name: string) => unit
1088
1087
}]
1089
1088
1090
1089
Complete tests/src/Completion.res 296:11
1091
- posCursor:[296:11] posNoWhite:[296:10] Found expr:[296:3->299:3 ]
1092
- Pexp_field [296:3->296:10] _:[299:0->299:3 ]
1090
+ posCursor:[296:11] posNoWhite:[296:10] Found expr:[296:3->296:11 ]
1091
+ Pexp_field [296:3->296:10] _:[299:0->296:11 ]
1093
1092
Completable: Cpath Value[retAA](Nolabel).""
1094
1093
[{
1095
1094
"label": "x",
@@ -1431,3 +1430,61 @@ Completable: Cpath Value[AndThatOther, T]
1431
1430
"documentation": null
1432
1431
}]
1433
1432
1433
+ Complete tests/src/Completion.res 378:24
1434
+ posCursor:[378:24] posNoWhite:[378:23] Found expr:[378:12->378:26]
1435
+ Pexp_apply ...__ghost__[0:-1->0:-1] (...[378:12->378:16], ...[378:16->378:24])
1436
+ posCursor:[378:24] posNoWhite:[378:23] Found expr:[378:16->378:24]
1437
+ Pexp_ident ForAuto.:[378:16->378:24]
1438
+ Completable: Cpath Value[ForAuto, ""]
1439
+ [{
1440
+ "label": "abc",
1441
+ "kind": 12,
1442
+ "tags": [],
1443
+ "detail": "(t, int) => t",
1444
+ "documentation": null
1445
+ }, {
1446
+ "label": "abd",
1447
+ "kind": 12,
1448
+ "tags": [],
1449
+ "detail": "(t, int) => t",
1450
+ "documentation": null
1451
+ }]
1452
+
1453
+ Complete tests/src/Completion.res 381:38
1454
+ posCursor:[381:38] posNoWhite:[381:37] Found expr:[381:12->381:41]
1455
+ Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:19], ...[381:19->381:39])
1456
+ posCursor:[381:38] posNoWhite:[381:37] Found expr:[381:19->381:39]
1457
+ Pexp_send [381:38->381:38] e:[381:19->381:36]
1458
+ Completable: Cpath Value[FAO, forAutoObject][""]
1459
+ [{
1460
+ "label": "age",
1461
+ "kind": 4,
1462
+ "tags": [],
1463
+ "detail": "int",
1464
+ "documentation": null
1465
+ }, {
1466
+ "label": "forAutoLabel",
1467
+ "kind": 4,
1468
+ "tags": [],
1469
+ "detail": "FAR.forAutoRecord",
1470
+ "documentation": null
1471
+ }]
1472
+
1473
+ Complete tests/src/Completion.res 384:24
1474
+ posCursor:[384:24] posNoWhite:[384:23] Found expr:[384:11->384:26]
1475
+ Pexp_field [384:14->384:23] _:[384:24->384:24]
1476
+ Completable: Cpath Value[funRecord].""
1477
+ [{
1478
+ "label": "someFun",
1479
+ "kind": 5,
1480
+ "tags": [],
1481
+ "detail": "someFun: (~name: string) => unit\n\ntype funRecord = {\n someFun: (~name: string) => unit,\n stuff: string,\n}",
1482
+ "documentation": null
1483
+ }, {
1484
+ "label": "stuff",
1485
+ "kind": 5,
1486
+ "tags": [],
1487
+ "detail": "stuff: string\n\ntype funRecord = {\n someFun: (~name: string) => unit,\n stuff: string,\n}",
1488
+ "documentation": null
1489
+ }]
1490
+
0 commit comments